.identity {
  --scanner-mark-size:40px;
  position:relative;
  direction:ltr;
  display:grid;
  grid-template-columns:var(--scanner-mark-size) auto;
  grid-template-rows:var(--scanner-mark-size) auto;
  align-items:start;
  gap:1px 7px;
}
.identity::after {
  content:"";
  position:absolute;
  /* Extend the beam from the SVG's scan line at y=31 in its 40-unit viewBox. */
  inset-block-start:calc(var(--scanner-mark-size) * .775);
  inset-inline:calc(var(--scanner-mark-size) - .5px) 0;
  height:1px;
  transform:translateY(-50%);
  background:linear-gradient(90deg,#83ebd2,#498f84 28%,transparent 96%);
  pointer-events:none;
}
.scanner-mark {display:block;width:100%;height:auto}
.identity .logo-type {color:#f1f6f4;font:700 32px/1 Arial,sans-serif;letter-spacing:-.045em}
.identity .logo-type > span {color:#c9e4dd;letter-spacing:inherit}
.brand-credit {grid-column:2;display:flex;align-items:center;gap:6px;font:13px/1 Arial,sans-serif;color:#a9c3c0}
.parent-wordmark {display:block;width:112px;height:24px;filter:contrast(.5) brightness(2.04) saturate(.92)}
.first-look h1:first-child {margin-block-start:0}

/* The light sweep echoes the line crossing the score in the photograph. */
.shine-button {
  isolation:isolate;
  overflow:hidden;
  min-height:50px;
  min-width:190px;
  gap:12px;
  padding:11px 20px;
  border:1px solid #9be8d259;
  border-radius:11px;
  background:linear-gradient(135deg,#193039b3,#0b171dde);
  color:#e8fff7;
  text-shadow:none;
  box-shadow:inset 0 1px #c8fff013,0 5px 19px #0004;
}
.shine-button::after {inset:0;border:0;border-radius:10px;box-shadow:inset 0 0 14px #8ce7d00b}
.shine-button::before {
  content:"";
  position:absolute;
  z-index:-1;
  top:50%;
  left:-12%;
  width:124%;
  height:1px;
  opacity:.45;
  transform:rotate(-12deg);
  background:linear-gradient(90deg,transparent,#79e0d6 20%,#e0fffa 52%,#78dac9 80%,transparent);
  box-shadow:0 0 5px #88ffe4b3,0 0 15px 2px #53c9bd5c;
  pointer-events:none;
}
.button-icon {background:none;box-shadow:none;width:24px;height:24px;color:#c9f6e9}
.upload-action:hover .shine-button,
.upload-action:focus-within .shine-button,
.shine-button:hover:not(:disabled) {
  background:linear-gradient(135deg,#25434cbd,#12262de8);
  border-color:#b8ffeb99;
  box-shadow:inset 0 1px #c8fff024,0 5px 22px #0005,0 0 14px #9af7d816;
}
.upload-action:focus-within {border-radius:11px}
@media(prefers-reduced-motion:no-preference) {
  .shine-button:not(:disabled)::before {animation:button-scan 5.2s ease-in-out infinite}
  .upload-action:hover .shine-button::before,.shine-button:hover:not(:disabled)::before {animation-duration:2.9s}
}
@keyframes button-scan {
  0%,12% {top:-35%;opacity:0}
  24% {opacity:.65}
  57% {top:135%;opacity:.65}
  67%,100% {top:135%;opacity:0}
}
@media(max-width:600px) {
  .identity {--scanner-mark-size:34px;column-gap:6px}
  .identity .logo-type {font-size:26px}
  .brand-credit {font-size:12px}
  .parent-wordmark {width:103px;height:22px}
  .masthead {gap:8px 12px}
  .shine-button {min-height:50px;min-width:190px;font-size:18px;border-radius:11px}
  .first-look {min-height:840px;padding-top:18px}
  .first-look h1 {font-size:30px;line-height:1.3;margin-top:12px}
  .promise {margin-top:16px}
  .hero-actions {margin-top:20px}
  .outputs {margin-top:18px}
  body:has(#setup:not([hidden]) #scan-questions[hidden]) .world img {inset-block-start:400px;height:650px}
  body:has(#setup:not([hidden]) #scan-questions[hidden]) .world {height:1040px}
}
@media(max-width:360px) {
  .identity {--scanner-mark-size:30px;column-gap:5px}
  .identity .logo-type {font-size:22px}
  .masthead .language-switch>summary {padding-inline:7px}
  .first-look h1 {font-size:28px}
}
.identity {justify-self:end}

#scanner-email-login {
  display:grid;
  gap:10px;
  margin-block-start:18px;
  padding-block-start:16px;
  border-block-start:1px solid #92b2b450;
}
#scanner-email-login label {font-weight:600}
#scanner-email-login input {display:block;width:100%;min-height:44px;padding:9px 12px;
  border:1px solid #68828a;border-radius:8px;background:#0c1820;color:#f6f8fb}
#scanner-code-entry input {margin-block-start:7px;letter-spacing:.2em}
#scanner-email-submit,#scanner-code-resend {justify-self:start}
#scanner-email-notice {margin:0;color:#c7ddd8}

/* Transparent notation SVGs need their own paper inside the dark zoom dialog. */
#zoom-image {background:#fff;color-scheme:light;display:block}
#pdf-page-choice {margin-block:8px 16px}
#page-options .hint {font-size:15px;line-height:1.6}
.page-selection-actions {display:flex;gap:10px;flex-wrap:wrap;margin-block:12px}
.page-selection-list {display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:8px;max-height:330px;overflow:auto;padding:4px}
#scan-questions .page-selection-list label {border:1px solid #a8d5c04a;border-radius:10px;padding:6px 12px;background:#ffffff08;cursor:pointer;min-height:46px}
#scan-questions .page-selection-list label:has(input:checked) {background:#bfead81a;border-color:#c5efd885}

#page-list-status:empty {display:none}
#page-options > p.hint:first-child {background:none;border:0;padding:0;color:#c0cec9}
