/* Every FIFT ID screen to the passport's standard (FIFT_ID_SCREENS only: the root layout links this file only when the
   setting is on, so off it is never sent; no module imports it, so it is in no bundle. Its rules hang off what only the
   setting draws: .dc-on, the card, the foot, and the down page's one Get help line). Bianca's every-screen round 2 on the site's own tokens (globals.css), the card as the passport draws it
   (app/account/passport.css .pp-card). Desk: a 1080 column, the card beside the task; phone: the card above it. */

/* the top bar: the bare F, as on every page (#533; the tile only where a square is asked for), on the 1080 column */
.dc-on .top { max-width: calc(1080px + 2 * var(--s-4)); }

/* the door and the moments: the card beside the column */
.dc-on .task.dc-door { width: 100%; max-width: calc(1080px + 2 * var(--s-4)); margin: 0 auto; padding: 0 var(--s-4);
  flex-direction: row; align-items: center; justify-content: space-between; gap: 96px; }
.dc-on .dc-door > .auth, .dc-on .dc-door > .held { flex: 0 1 452px; min-width: 0; }
.dc-on .dc-door .auth { margin: 0; padding: var(--s-6) 0; max-width: 452px; text-align: start; }
.dc-on .dc-door .auth > h1 { font-size: 40px; margin-top: 0; }
.dc-on .dc-door .auth > .lockup { justify-content: flex-start; margin-bottom: var(--s-4); }
.dc-on .dc-door .auth > .lockup .tile { width: 32px; height: 32px; }
.dc-on .dc-door .sub { margin-bottom: var(--s-5); }
/* the task's own rows read from the start, as the column does (Bianca: code boxes, Open Mail, the two links) */
.dc-on .dc-door .code-boxes, .dc-on .dc-door .links, .dc-on .dc-door .openmail { justify-content: flex-start; }
[dir="rtl"] .dc-on .dc-door .code-boxes { justify-content: flex-end; }
[dir="rtl"] .dc-on .dc-door .sent-to { text-align: right; }
.dc-on .dc-new { color: var(--sec); font-size: var(--t-14); margin: var(--s-2) 0 0; text-wrap: balance; }

/* a screen with no card (an invite, an assistant, the letter): today's centred column, the foot below */
.dc-on .task.dc-plain > .auth { padding-bottom: var(--s-6); }

/* the foot: Privacy, Terms, Get help, at the bottom of every screen */
.dc-on { padding-bottom: 0; }
.dc-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-2) var(--s-5); padding: var(--s-5) var(--s-4) 0; font-size: var(--t-13); line-height: var(--lh-ui); }
.dc-foot a { color: var(--ter); text-decoration: none; }
.dc-foot a.dc-help { color: var(--cherryText); font-weight: 500; }
.dc-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct > .foot a.dc-help { color: var(--cherryText); }

/* the card */
.dc-stage { flex: 0 1 520px; min-width: 0; perspective: 1700px; padding: 10px 0 30px; }
.dc-card { position: relative; width: 100%; aspect-ratio: 1.586; border-radius: 26px; overflow: hidden; color: var(--card-ivory); container-type: inline-size;
  transform: rotateX(4deg) rotateY(-7deg);
  background: radial-gradient(120% 90% at 28% 18%, rgba(255, 255, 255, .067) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .105) 100%), var(--cherry);
  box-shadow: 11px 34px 60px -14px rgba(80, 3, 26, .34), 0 2px 3px rgba(80, 3, 26, .18); }
[dir="rtl"] .dc-card { transform: rotateX(4deg) rotateY(7deg); }
.dc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, 0) 30%, rgba(255, 240, 235, .06) 46%, rgba(255, 255, 255, 0) 60%); }
@media (prefers-color-scheme: dark) { .dc-card { box-shadow: 11px 30px 60px -10px rgba(0, 0, 0, .7); } }
/* she is in: the card turns to hers, once (none under reduced motion: globals.css stops every animation) */
.dc-card.dc-hers { animation: dc-turn var(--m-panel) var(--ease) both; animation-duration: 520ms; }
@keyframes dc-turn { from { transform: rotateX(4deg) rotateY(-90deg); } to { transform: rotateX(4deg) rotateY(-7deg); } }
[dir="rtl"] .dc-card.dc-hers { animation-name: dc-turn-rtl; }
@keyframes dc-turn-rtl { from { transform: rotateX(4deg) rotateY(90deg); } to { transform: rotateX(4deg) rotateY(7deg); } }
.dc-spine { position: absolute; top: 0; bottom: 0; inset-inline-start: 7%; width: 2px; background: rgba(0, 0, 0, .26); box-shadow: 1px 0 0 rgba(255, 255, 255, .05); }
.dc-hd { position: absolute; inset-inline-start: 13%; top: 8.5%; margin: 0; display: flex; align-items: center; gap: .6em; font: 600 max(9.5px, 2.4cqw)/1 var(--font-sans); letter-spacing: .18em; }
.dc-hd-mark { width: 5cqw; height: 5cqw; color: var(--card-ivory); fill: currentColor; }
.dc-press { position: absolute; inset-inline-end: 11%; top: 30%; width: 29%; aspect-ratio: 230 / 266; }
.dc-press-mark { width: 100%; height: 100%; color: rgba(36, 0, 10, .38); fill: currentColor; filter: drop-shadow(0 1px 0 rgba(255, 235, 240, .07)); }
.dc-hers .dc-press { width: 17%; top: auto; bottom: 10%; inset-inline-end: 7%; }
.dc-as { position: absolute; inset-inline-start: 13%; inset-inline-end: 8%; bottom: 12%; display: flex; flex-direction: column; gap: .35em; min-width: 0; z-index: 1; }
.dc-ln { font-size: max(11px, 2.6cqw); color: rgba(245, 239, 230, .74); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mail { font: 400 max(15px, 5.6cqw)/1.15 var(--font-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.dc-photo { position: absolute; inset-inline-start: 13%; top: 27%; width: 20%; aspect-ratio: .8; border-radius: 2.2cqw; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(245, 239, 230, .16), rgba(245, 239, 230, .05)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 6px 14px rgba(40, 0, 10, .35);
  font: 400 9cqw/1 var(--font-serif); color: rgba(245, 239, 230, .85); }
.dc-who { position: absolute; inset-inline-start: 37%; top: 28%; inset-inline-end: 8%; display: flex; flex-direction: column; gap: .5em; min-width: 0; }
.dc-who .dc-mail { font-size: max(13px, 4.4cqw); }
.dc-nm { font: 400 8.8cqw/1.05 var(--font-serif); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* a phone (and any narrow window): the card above the task, one column */
@media (max-width: 899px) {
  .dc-on .task.dc-door { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .dc-on .dc-door > .auth, .dc-on .dc-door > .held { flex: none; }
  .dc-on .dc-door .auth { max-width: 452px; margin: 0 auto; padding: var(--s-4) 0 var(--s-5); width: 100%; }
  .dc-on .dc-door .auth > h1 { font-size: 34px; }
  .dc-stage { flex: none; width: 100%; max-width: 300px; margin: var(--s-2) auto 0; padding: 0 0 var(--s-3); }
}
