/* ==========================================================================
   Two-step sign-in — study build v2
   --------------------------------------------------------------------------
   Every number below was measured on the live page at 1536×720 (DPR 1.25)
   and is written in CSS pixels. The layout is original; the brand and copy
   are placeholders. See NOTES.md for the measurement tables.

   Sections
     01  fonts
     02  tokens
     03  reset / base
     04  page + card
     05  header
     06  step content
     07  field (3 layers)
     08  links / helper
     09  buttons
     10  divider
     11  account row (step 2)
     12  card footer (locale)
     13  fixed legal footer
     14  loading layer
     15  step animations
     16  study controls + ruler
     17  reduced motion
   ========================================================================== */

/* 01 ── fonts -------------------------------------------------------------
   The live page uses PayPal Open (proprietary). It is loaded here from
   PayPal's public CDN for LOCAL STUDY ONLY. Do not redistribute or deploy.
   For production, license the face or fall back to Helvetica Neue / Arial.
   The three families are registered separately, exactly as the live page
   does: regular, medium and bold are distinct family names, and the medium
   face is used at weight 400 for links and 500 for buttons.               */
@font-face {
  font-family: "PP Open Regular";
  src: url("https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff2") format("woff2"),
       url("https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "PP Open Medium";
  src: url("https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Medium.woff2") format("woff2"),
       url("https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Medium.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "PP Open Bold";
  src: url("https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Bold.woff2") format("woff2"),
       url("https://www.paypalobjects.com/paypal-ui/fonts/PayPalOpen-Bold.woff") format("woff");
  font-display: swap;
}

/* 02 ── tokens ------------------------------------------------------------ */
:root {
  /* colour */
  --ink:              #001435;   /* body text                       */
  --muted:            #6C7378;   /* labels, "or", error body        */
  --muted-2:          #545D68;   /* footer links, locale            */
  --link:             #0070E0;
  --link-hover:       #73A5FF;
  --link-active:      #003087;

  --brand:            #0551B5;   /* primary button                  */
  --brand-hover:      #1161CA;
  --brand-active:     #003087;
  --brand-deep:       #003087;   /* wordmark + spinner              */

  --border-card:      #EAECED;
  --border-field:     #999999;
  --border-field-hover:#1040C1;
  --border-inner:     #CFD3D8;   /* password input's inner border   */
  --divider:          #CBD2D6;
  --error:            #D9360B;
  --footer-bg:        #F7F9FA;
  --focus:            #097FF5;

  /* type */
  --font-regular: "PP Open Regular", "Helvetica Neue", Arial, sans-serif;
  --font-medium:  "PP Open Medium",  "Helvetica Neue", Arial, sans-serif;
  --font-bold:    "PP Open Bold",    "Helvetica Neue", Arial, sans-serif;

  /* motion — one place to slow everything down */
  --dur-ui:   .2s;    /* label float, hovers, button colour          */
  --dur-step: .25s;   /* the measured rightToLeft slide              */
  --dur-spin: 1s;     /* one full turn of the 270° arc               */
  --ease-step: ease;

  /* geometry */
  --card-w:     460px;
  --field-h:    64px;
  --control-h:  48px;
  --radius-card:12px;
  --radius-field:4px;
}

/* 03 ── reset / base ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/18px var(--font-regular);
  -webkit-font-smoothing: auto;
}

button,
input { font: inherit; color: inherit; }

button { cursor: pointer; }

a {
  color: var(--link);
  font-family: var(--font-medium);
  font-weight: 400;
  text-decoration: none;
}
a:hover   { color: var(--link-hover); }
a:active  { color: var(--link-active); }
a:focus {
  border-radius: 4px;
  outline: 4px solid var(--focus);
  outline-offset: 1.6px;        /* measured on the live helper link */
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10001;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand-deep);
  color: #fff;
  font: 500 14px/1 var(--font-medium);
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip:focus-visible { transform: translateY(0); outline-color: #fff; }

/* 04 ── page + card -------------------------------------------------------
   Measured: card top margin 120px; width 460; padding 30px 46px 50px;
   0.8px #EAECED border; 12px radius; overflow hidden; NO shadow.
   46 + 46 + 366.4 content + 2 × 0.8 border = 460.
   The split-flow email step then lands at 579.1px naturally; no min-height. */
.page {
  padding-top: 120px;
}

.card {
  width: var(--card-w);
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 30px 46px 50px;
  border: 0.8px solid var(--border-card);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
}

.card__inner {
  width: 100%;
}

/* 05 ── header ------------------------------------------------------------
   The live page has NO visible h1: the only visible header is the wordmark,
   100×42, centred, followed by 13.116% of the content width (≈48px).
   The h1 exists for screen readers only.                                  */
.card__header {
  margin-bottom: 13.116%;      /* 48.06px at 366.4px content width */
}

/* the live h1 is 24/32 but clipped to 1×1 by .accessAid */
.card__title {
  font: 400 24px/32px var(--font-regular);
}

.signin-logo {
  background: transparent url("signin-logo.svg") top center no-repeat;
  width: 100px;
  height: 41.56px;
  display: block;
  margin: 0 auto;              /* centre the logo, same as the old .brand box */
}

/* 06 ── step content ------------------------------------------------------ */
.steps {
  position: relative;
}

.step[hidden] { display: none; }

.form { display: block; }

/* 07 ── field (3 layers) --------------------------------------------------
   layer 1  .field__box    draws the 0.8px border + 4px radius
   layer 2  .field__input  borderless, 64px tall, 20/12/8 padding
   layer 3  .field__label  absolutely positioned, floats on focus / fill

   Measured
     wrapper   366.4 × 65.6  (64 + 2×0.8 border), margin-bottom 16
     input     364.8 × 64, padding 20px 12px 8px, 16/24, letter-spacing -.02em
     label     left 10 / top 18, 16/18 → left 12 / top 8, 14/18
     hover     border #1040C1
     error     border #D9360B
   ---------------------------------------------------------------------- */
.field {
  margin-bottom: 0;
}

.field__box {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 16px;          /* measured fieldWrapper margin */
  border: 0.8px solid var(--border-field);
  border-radius: var(--radius-field);
  background: #fff;
  transition:
    border-color var(--dur-ui) ease-in-out,
    background-color var(--dur-ui) ease-in-out;
}

.field__box:hover { border-color: var(--border-field-hover); }

.field__input {
  display: block;
  width: 100%;
  height: var(--field-h);
  padding: 20px 12px 8px;
  border: 0;
  border-radius: var(--radius-field);
  background: transparent;
  color: #000;
  font: 400 16px/24px var(--font-regular);
  letter-spacing: -.02em;
  outline: none;
  overflow: clip;
}

/* the password variant is a flex row: input + Show button inside ONE border */
.field--password .field__box { display: flex; align-items: center; }
.field--password .field__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 20px 12px 8px;
  line-height: normal;
  border: 0;
}
.field--password .field__box:focus-within .field__input {
  padding-right: 8px;
}

.field__label {
  position: absolute;
  left: 10px;
  top: 18px;
  display: flex;
  align-items: center;
  width: 400px;                 /* measured label box, clipped by the card */
  height: 30px;
  overflow: hidden;
  color: var(--muted);
  font: 400 16px/18px var(--font-regular);
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: all var(--dur-ui) ease;
}

.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label {
  top: 8px;
  left: 12px;
  font-size: 14px;
}

/* focus — drawn on the shared .field__box so the input and Show button share
   one unified border and one unified blue / white-gap ring.                 */
.field__box:has(.field__input:focus) {
  border-color: var(--border-inner);
  outline: 1.6px solid var(--focus);
  outline-offset: 1.6px;
  box-shadow: 0 0 0 2px #fff;
}

/* study aid: a thicker ring for low-vision demos. The 1.6px ring is always
   on; this toggle enlarges it around the shared field box.                 */
:root[data-focus-ring="on"] .field__box:has(.field__input:focus) {
  outline-width: 3px;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #fff;
}

/* error
   Measured error flow: the wrapper loses its 16px bottom margin, the
   error block adds 4px + 29px, and the field gets a 2px bottom margin.
   Net push to the next control: 15px, not 29px.                       */
.field.is-invalid .field__box,
.field.is-invalid .field__box:hover,
.field.is-invalid .field__box:has(.field__input:focus) {
  margin-bottom: 0;
  border-color: var(--error);
}
.field.is-invalid {
  margin-bottom: 2px;
}

.field__error {
  display: block;
  position: relative;
  margin: 4px 0 0;
  padding: 5px 0 0;
  color: var(--muted-2);
  font: 400 14px/20px var(--font-regular);
  text-align: left;
}
.field__error[hidden] { display: none; }

.field__error > span {
  display: block;
  padding: 2px 0 2px 28px;      /* measured text inset, 24px line box */
}

.field__error-icon {
  position: absolute;
  left: 2px;
  top: 7px;
  width: 20px;
  height: 20px;
}

/* 07b ── 2FA / 6-digit OTP input ------------------------------------------
   Six single-digit cells sharing the exact field tokens: 0.8px #999 border,
   4px radius, #1040C1 hover, 1.6px #097FF5 + 2px white focus ring, #D9360B
   error border. Grid auto-fits any card width with zero overflow.          */
.otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.otp__digit {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 0.8px solid var(--border-field);
  border-radius: var(--radius-field);
  background: #fff;
  color: var(--ink);
  font: 400 22px/1 var(--font-medium);
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
  transition:
    border-color var(--dur-ui) ease-in-out,
    background-color var(--dur-ui) ease-in-out;
}
.otp__digit:hover { border-color: var(--border-field-hover); }
.otp__digit:focus {
  border-color: var(--border-inner);
  outline: 1.6px solid var(--focus);
  outline-offset: 1.6px;
  box-shadow: 0 0 0 2px #fff;
}

.otp.is-invalid .otp__digit,
.otp.is-invalid .otp__digit:hover,
.otp.is-invalid .otp__digit:focus {
  border-color: var(--error);
}

.step__heading {
  margin: 0 0 8px;
  color: var(--ink);
  font: 400 24px/32px var(--font-regular);
  text-align: center;
}

.step__sub {
  margin: 0 0 24px;
  color: var(--muted-2);
  font: 400 14px/20px var(--font-regular);
  text-align: center;
}

.otp__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 22px;
}

/* 08 ── helper link -------------------------------------------------------
   The password step's helper sits 16px above Log In. The email step's
   helper is 26px above Next — that 10px difference is why the two panels
   are 26px apart in height (605 vs 579).                              */
.helper {
  display: inline-block;
  margin-bottom: 16px;
  font: 400 16px/24px var(--font-medium);
  color: var(--link);
}

.step--email .helper { margin-bottom: 26px; }

/* 09 ── buttons -----------------------------------------------------------
   Measured: 48px tall, 1.6px border, 100px radius, padding 12px 32px,
   medium 16/21 weight 500, transition .2s ease.
   Primary  #0551B5 → hover #1161CA → active #003087
   Secondary transparent / 1.6px #000 → hover #1161CA → active #003087
   Focus    1.6px #097FF5 + 1.6px offset, no white shadow (measured)
   ---------------------------------------------------------------------- */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 6rem;
  height: var(--control-h);
  padding: 12px 32px;
  border: 1.6px solid var(--brand);
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font: 500 16px/21px var(--font-medium);
  text-align: center;
  text-decoration: none;
  transition:
    color var(--dur-ui) ease,
    background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease,
    box-shadow var(--dur-ui) ease;
  -webkit-font-smoothing: antialiased;
}

.btn:hover  { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { background: var(--brand-active); border-color: var(--brand-active); }
.btn:focus {
  outline: 1.6px solid var(--focus);
  outline-offset: 1.6px;
  box-shadow: none;
}

/* the transparent secondary button adds a white gap behind the ring */
.btn--secondary:focus {
  box-shadow: 0 0 0 2px #fff;
}

.btn--secondary {
  background: transparent;
  color: #000;
  border-color: #000;
  box-shadow: 0 0 0 1.6px transparent inset;
}
.btn--secondary:hover {
  background: transparent;
  color: var(--brand-hover);
  border-color: var(--brand-hover);
}
.btn--secondary:active {
  background: transparent;
  color: var(--brand-active);
  border-color: var(--brand-active);
}

/* 10 ── divider -----------------------------------------------------------
   Measured: 1px #CBD2D6 line; margins 8.72% / 4.895% of the 366px column
   (= 31.9px / 17.9px); box height 15px; "or" 15/18 #6C7378 on white,
   top -0.7em, padding 0 .5em.                                             */
.divider {
  position: relative;
  height: 15px;
  margin-top: 8.72%;
  margin-bottom: 4.895%;
  border-top: 1px solid var(--divider);
  text-align: center;
  font-size: 83.34%;
}

.divider span {
  position: relative;
  top: -.7em;
  display: inline-block;
  padding: 0 .5em;
  background: #fff;
  color: var(--muted);
  font: 400 15px/18px var(--font-regular);
}

/* 11 ── account row (step 2) ---------------------------------------------
   Exactly 36px tall — that is the measured offset between the top of the
   password panel and the top of the password field.                       */
.account {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
}

.account__email {
  max-width: calc(100% - 60px);
  padding-right: 10px;
  overflow: hidden;
  color: var(--ink);
  font: 400 16px/18px var(--font-regular);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-btn {
  flex: none;
  margin-left: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 400 16px/18px var(--font-medium);
}
.link-btn:hover  { color: var(--link-hover); }
.link-btn:active { color: var(--link-active); }
.link-btn:focus {
  border-radius: 4px;
  outline: 4px solid var(--focus);
  outline-offset: 1.6px;
}

/* Show / Hide, inside the field: 47.4 × 64, 13px bold family at weight 400,
   #0070E0. Hidden at rest; only displayed while the password field is active. */
.reveal {
  display: none;
  flex: 0 0 47.4px;
  width: 47.4px;
  height: var(--field-h);
  padding: 1px 6px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--link);
  font: 400 13px/normal var(--font-bold);
  outline: none;
}
.field--password .field__box:focus-within .reveal { display: block; }
.reveal:hover  { color: var(--link-hover); }
.reveal:active { color: var(--link-active); }
.reveal:focus  { outline: none; }
.reveal:focus-visible {
  outline: 1.6px solid var(--focus);
  outline-offset: -2px;
}

/* demo-only confirmation under Log In */
.demo-flash {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--footer-bg);
  color: var(--muted-2);
  font: 400 13px/18px var(--font-regular);
  text-align: center;
}
.demo-flash[hidden] { display: none; }

/* 12 ── card footer (locale) ---------------------------------------------
   PayPal's .intentFooter: margin-top 72px, then .localeSelector with 16px
   padding-top. Its line box is 27px, not 16: the 24px-tall inline-block
   picker button grows the 16px line box by its baseline leading. That
   43px total (16 + 27) is what makes the split email card 579.1px.        */
.card__foot {
  margin-top: 72px;
  padding-top: 16px;
  text-align: center;
  font: 400 12px/27px var(--font-regular);   /* 24px picker + baseline leading */
}
.card__foot[hidden] { display: none; }

.locale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 24px;                  /* measured picker button height */
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--muted-2);
  font: 400 12px/22px var(--font-regular);
  vertical-align: middle;
  outline: none;
}
.locale__flag {
  display: block;
  width: 24px;
  height: 16px;
  flex: none;
}
.locale__chevron {
  display: block;
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--muted-2);
  transition: color var(--dur-ui) ease;
}
.locale:hover .locale__chevron { color: var(--ink); }
.locale:focus { outline: none; }
.locale:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* 13 ── fixed legal footer ------------------------------------------------
   Measured: fixed bottom; 11px; 14px top padding on the outer footer;
   inner bar 14px padding + #F7F9FA; links #545D68, 10px gaps, 18px line.  */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 14px;
  font-size: 11px;
}

.footer__bar {
  padding: 14px;
  background: var(--footer-bg);
  text-align: center;
}

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

.footer__links li {
  display: inline-block;
  margin: 0 10px 0 0;
}
.footer__links li:last-child { margin-right: 0; }

.footer__links a {
  color: var(--muted-2);
  font: 400 11px/18px var(--font-medium);
  white-space: nowrap;
}
.footer__links a:hover { color: var(--muted-2); }

/* 14 ── loading layer -----------------------------------------------------
   Measured from the live page:
     fixed layer, top 43%, text-align center
     ::after = full-viewport white at 90% opacity, behind the ring
     ring = 96 × 96, 2px #003087, radius 50%, border-box
     clip-path removes a wedge from the top-right → 270° arc
     animation: rotation 1s linear infinite (0deg → 359deg)
   ---------------------------------------------------------------------- */
.loading {
  position: fixed;
  top: 43%;
  left: 0;
  right: 0;
  z-index: 9999;
  margin: 0;
  text-align: center;
}
.loading[hidden] { display: none; }

.loading::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: .9;
}

.loading__ring {
  display: block;
  width: 6rem;                 /* 96px */
  height: 6rem;
  margin: 0 auto 10px;
  border: 2px solid var(--brand-deep);   /* measured ring border */
  border-radius: 50%;
  box-sizing: border-box;
  clip-path: polygon(50% 0%, 50% 50%, 100% 50%, 100% 100%, 0 100%, 0 0);
  animation: rotation var(--dur-spin) linear infinite;
}

.loading__label {
  margin: 14px 0 0;
  color: var(--ink);
  font: 400 16px/22px var(--font-regular);
  letter-spacing: -.01em;
}
.loading__label[hidden] { display: none; }

/* Blank-screen server-check variant (Password → 2FA): true full-viewport
   solid white screen with a smaller 48×48 spinner + "One moment" centered.
   Uses inset: 0 + flex instead of transform (a transform on a parent traps
   position: fixed children like ::after inside the parent's own box).      */
.loading--blank {
  inset: 0;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.loading--blank::after { display: none; }
.loading--blank .loading__ring {
  width: 3rem;                 /* 48px — half the 96px step-1 ring */
  height: 3rem;
  margin: 0;
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to   { transform: rotate(359deg); }
}

/* 15 ── step animations ---------------------------------------------------
   The live page applies `animation: rightToLeft .25s ease` to the incoming
   panel: translateX(100%) → translateX(0). No opacity change. The loader
   hides the swap; by the time it disappears the panel is already moving.  */
@keyframes enter-from-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes enter-from-left {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.step--enter-right { animation: enter-from-right var(--dur-step) var(--ease-step); }
.step--enter-left  { animation: enter-from-left  var(--dur-step) var(--ease-step); }

/* 16 ── study controls + ruler ------------------------------------------- */
.lab {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;
  width: 218px;
  padding: 10px 12px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fff;
  color: #243b53;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow: 0 6px 24px rgba(0, 20, 53, .08);
}

.lab summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -.01em;
}

.lab__row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  cursor: pointer;
}
.lab__row input { accent-color: var(--brand); }

.lab__btn {
  width: 100%;
  margin-top: 10px;
  padding: 6px 8px;
  border: 1px solid #c9d2dc;
  border-radius: 6px;
  background: #f7f9fa;
  color: #243b53;
  font: inherit;
}
.lab__btn:hover { background: #eef3f8; }

.lab__link {
  display: block;
  margin-top: 8px;
  font: 400 11.5px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--link);
}
.lab__link:hover { text-decoration: underline; }

.lab__note {
  margin: 8px 0 0;
  color: #6b7c93;
  font-size: 10.5px;
  line-height: 1.4;
}

.ruler {
  position: fixed;
  left: 16px;
  top: 50%;
  z-index: 9998;
  width: 190px;
  padding: 10px 12px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  transform: translateY(-50%);
  box-shadow: 0 6px 24px rgba(0, 20, 53, .07);
}
.ruler[hidden] { display: none; }

.ruler__title {
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10px;
  color: #6b7c93;
}

.ruler__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
}
.ruler__row i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.ruler__row span { flex: 1 1 auto; }
.ruler__row b { font-weight: 600; }

.ruler__note {
  margin: 7px 0 0;
  color: #8899aa;
  font-size: 10px;
}

/* measure mode outlines */
:root[data-measure="on"] .card        { outline: 1px dashed #e5484d; }
:root[data-measure="on"] .card__inner{ outline: 1px dashed #2f80ed; }
:root[data-measure="on"] .field__box { outline: 1px dashed #27ae60; }
:root[data-measure="on"] .btn        { outline: 1px dashed #8e4ec6; }

/* 17 ── toast (study aid, not part of the replica) ------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 10000;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 400 13px/18px var(--font-regular);
  text-align: center;
  transform: translateX(-50%);
}
.toast[hidden] { display: none; }

/* 18 ── slow-motion study mode — set by script.js ------------------------- */
:root[data-slow="on"] {
  --dur-ui: 1s;
  --dur-step: 1.25s;
  --dur-spin: 5s;
}

/* 19 ── reduced motion (last, so it wins over slow mode) ------------------ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-ui: .001ms;
    --dur-step: .001ms;
  }
  .loading__ring { animation: none; }
  .step--enter-right,
  .step--enter-left { animation: none; }
}

/* small screens */
@media (max-width: 540px) {
  .page { padding-top: 56px; }
  .card {
    padding: 24px 24px 40px;
  }
  .lab { display: none; }
  .ruler { display: none; }
}
