/* The Manage sign-in: the graphite lock (owner, 11-14 1:43 PM EST: "I like this new graphite lock"; design-login Premium, frozen).
   door.mjs builds the DOM, lock3d.mjs draws the 3D lock under the form, the still image (assets/lock-graphite.png) is the same lock when 3D is not used.
   The plate (.plateui) is the reference: it is positioned by CSS alone, so the form never moves whatever the lock does. */
body[data-door] { min-height: 100vh; min-height: 100svh; --pmbg: radial-gradient(ellipse 80% 60% at 50% 38%, #fafbfc, #f2f3f5 78%); --pmhair: #e1e4e8; background: var(--pmbg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-door] { --pmbg: radial-gradient(ellipse 80% 60% at 50% 38%, #191a19, #0b0c0b 75%); --pmhair: rgba(255, 255, 255, .07); } }
:root[data-theme="dark"] body[data-door] { --pmbg: radial-gradient(ellipse 80% 60% at 50% 38%, #191a19, #0b0c0b 75%); --pmhair: rgba(255, 255, 255, .07); }
body[data-door] .top { border-bottom-color: var(--pmhair); }
body[data-door] .brand .mark { width: 0; margin-right: -10px; opacity: 0; }
body[data-door] main { max-width: 560px; padding-top: 0; padding-bottom: 0; }

/* FULL-VIEWPORT scene (owner 11-14: "it doesnt zoom in the entire page, it just animates the little div"): the stage is fixed behind everything, the plate is centred in it, the camera dollies through the whole page. */
.door { position: static; }
.door .stage3 { position: fixed; inset: var(--bar-h, 53px) 0 0 0; z-index: 1; overflow: clip; container-type: size; }
body[data-door] .top { position: relative; z-index: 3; }
body[data-door] { --bar-h: 53px; }   /* the top bar (padding 16 + 20 + 1 border); the stage starts under it so the lock sits where the sample puts it (design-login) */
@media (max-width: 400px) { body[data-door] { --bar-h: 45px; } }
.door .under { position: fixed; left: 0; right: 0; bottom: 40px; z-index: 3; display: flex; justify-content: center; margin: 0; }
/* the reveal: Manage is mounted UNDER the running scene, then opens over it from the middle (the sample's clip-path reveal); the scene is disposed only when it ends (console.mjs reveal()) */
body.revealing main { position: fixed; inset: 0; z-index: 4; overflow: hidden; background: var(--bg); max-width: none; margin: 0; padding: 0; }
body.revealing main { will-change: clip-path, opacity; contain: paint; } /* its own layer while it opens: the reveal repaints the clip, not the whole page under it */
body.revealing.framed .top { display: flex; position: relative; z-index: 3; }
.door.under-reveal .stage3 { z-index: 1; }
.door .gl, .door .lockstill { position: absolute; }
.door .gl { inset: 0; opacity: 0; transition: opacity .15s ease-out; } /* the 3D swap-in is a short crossfade of the same pose, never a second entrance (owner: "it animates in twice") */
.door.gl-on .gl { opacity: 1; }
.door .gl canvas { display: block; width: 100% !important; height: 100% !important; }
/* CENTRED (owner 11-17, TRACKER A3b: "move the login portion up... more centered"): the stage starts under the top bar, so the lock + plate block sat about half a bar plus its optical weight low. --lift raises the still and the plate together (the 3D camera is solved from the plate, so it follows) by half the bar + 10% of the stage (owner 11-17 again: "move the lock up more ... it feels too low"; the block centre now sits about 38% down a tall window, was 46%); the lift never takes the shackle (.985 pw above the stage centre) closer than 24 px to the top bar, so a short window keeps its margin and nothing is clipped. */
/* the still: the same graphite lock, 400 x 600 css px rendered with the plate (250 wide) centred 410 px down; --pw scales it with the plate */
.door .lockstill { --pw: min(clamp(232px, 44cqh, 250px), calc((50cqh - 14px) / 1.22)); --lift: min(calc(var(--bar-h, 53px) / 2 + 10cqh), max(0px, calc(50cqh - 24px - .985 * var(--pw)))); left: 50%; top: calc(50% - 1.188 * var(--pw) - var(--lift)); width: calc(1.6 * var(--pw)); height: calc(2.4 * var(--pw)); transform: translateX(-50%); pointer-events: none; user-select: none; }
.door .lockstill { opacity: 0; transition: opacity .5s ease-out; background: url("./assets/lock-graphite.png") center / 100% 100% no-repeat; }   /* the still fades in too: no pop when the PNG loads before the 3D's first frame (design-login, #4915) */
/* the light theme's still (owner 11-21): steel body, the dark theme's black shackle; lock3d.mjs LIGHT draws the same lock */
:root[data-theme="light"] .door .lockstill { background-image: url("./assets/lock-light.png"); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .door .lockstill { background-image: url("./assets/lock-light.png"); } }
.door.has-still .lockstill { opacity: 1; }
.door.gl-on .lockstill { visibility: hidden; transition: visibility 0s .2s; }

.door .plateui { --pw: min(clamp(232px, 44cqh, 250px), calc((50cqh - 14px) / 1.22)); --lift: min(calc(var(--bar-h, 53px) / 2 + 10cqh), max(0px, calc(50cqh - 24px - .985 * var(--pw)))); position: absolute; z-index: 2; left: 50%; top: calc(50% + .2975 * var(--pw) - var(--lift)); width: var(--pw); height: calc(var(--pw) * .935); transform: translate(-50%, -50%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; color: #eef0ee; --mut: rgba(238, 240, 238, .56); --hair: rgba(238, 240, 238, .22); transition: opacity .3s; }
.door .plateui::before { content: ""; position: absolute; inset: 0; border-radius: 22px; background: #1c1d1e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px -20px rgba(0, 0, 0, .6); z-index: -1; transition: opacity .5s; }
.door.has-still .plateui::before, .door.gl-on .plateui::before { opacity: 0; }
.door.gone-ui .plateui { opacity: 0; transition-duration: .5s; pointer-events: none; }
.door .pc { position: absolute; inset: 0; }
/* The lock's window is one flat colour (owner 11-17: "the background color difference above Logged out ... looks like crap"): the render has a lighter reflection band across the top of the glass (30,31,32 over 23,24,25); this fill sits over the still and the 3D alike, inside the black bezel. */
.door .pc::before { content: ""; position: absolute; inset: calc(var(--pw) * .008); border-radius: calc(var(--pw) * .04); background: rgb(23, 24, 25); z-index: -1; pointer-events: none; }

/* every step's content sits in a column on the plate; the email step has its fixed rows so the field never moves */
.door .pc { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 18px 20px; min-width: 0; }
.door .pc.swap { animation: pm-fade .35s ease-out both; }
.door h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.022em; line-height: 1.28; padding-bottom: 1px; text-align: center; text-wrap: balance; overflow-wrap: anywhere; color: #eef0ee; }
.door .ttl { display: flex; justify-content: center; }
.door form.signin { position: absolute; inset: 0; max-width: none; padding: 14px 20px 18px; display: grid; grid-template-rows: 58px 64px 1fr 40px; gap: 6px; align-items: stretch; }
.door form.signin > h2 { align-self: end; font-size: 22px; }
.door form.signin .f { align-self: center; position: relative; text-align: left; min-width: 0; }
.door form.signin label.field { display: block; font-size: 12px; font-weight: 500; font-variant: all-small-caps; letter-spacing: .09em; color: var(--mut); margin: 0 0 2px; }
.door form.signin input { width: 100%; display: block; height: 36px; border: 0; border-radius: 0; background: transparent; color: #f4f6f4; font: 400 16px/1 inherit; font-family: inherit; padding: 0 1px; box-shadow: none; outline: none; }
.door form.signin .hair { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); transition: background .4s; }
.door form.signin .f:focus-within .hair { background: rgba(238, 240, 238, .7); }
/* the error line takes the empty row under the field and never moves it; long text scrolls inside the row, nothing is cut off */
.door form.signin .banner { align-self: start; min-width: 0; margin: 0; padding: 0; background: none; color: #ffb4ae; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; overflow-y: auto; max-height: 100%; }
/* hidden, not removed: it keeps its grid row, so the Unlock button never moves when a line (the 6 s loading note, an error) appears (First-run 09:11Z: the button jumped 28 px under the pointer) */
.door form.signin .banner[hidden] { display: block !important; visibility: hidden; }
/* the one-line "still loading" note (boot.js): never a scroll box, never cut (owner rule: text never overflows its card) */
.door form.signin .banner.load { overflow: visible; max-height: none; white-space: normal; }
.door .btn { align-self: stretch; width: 100%; height: 40px; padding: 0; border-radius: 999px; font: 500 15px/1 inherit; font-family: inherit; letter-spacing: -.005em; box-shadow: none; transition: filter .3s; }
.door .btn:hover { filter: brightness(1.05); }
.door .btn:not(.pri) { background: transparent; color: #eef0ee; border: 1px solid var(--hair); }
.door .btn.pri { border: 0; }
.door .link.center { align-self: center; color: var(--mut); font-size: 12px; text-decoration-color: var(--hair); }
.door .timer, .door .msg, .door .alert { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mut); font-variant-numeric: tabular-nums; text-align: center; background: none; padding: 0; max-width: 220px; overflow-wrap: anywhere; }
.door .alert.bad, .door .alert.warn { background: none; color: var(--mut); }

/* the code: six digits in monospace, 3 + 3 */
.door .tiles { display: flex; justify-content: center; gap: 5px; font: 400 20px ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .02em; color: #f4f6f4; }
.door .tiles .gap { width: 7px; }
.door .tiles span { width: 27px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(238, 240, 238, .22); border-radius: 6px; background: rgba(255, 255, 255, .035); }
.door .tiles.empty span { background: rgba(255, 255, 255, .02); }
/* Tap to copy the comparison code (lanes/tap-to-copy-codes.md): the whole code is one button; the toast is the words only. */
.door .tiles.copy { cursor: pointer; border-radius: 8px; outline: none; }
.door .tiles.copy:hover span { border-color: rgba(238, 240, 238, .42); }
.door .tiles.copy:focus-visible { box-shadow: 0 0 0 2px rgba(238, 240, 238, .7); }
.door .tiles.copy:active span { background: rgba(255, 255, 255, .08); }
.door .tiles .tcopy { flex: none; align-self: center; width: 18px; height: 18px; margin-left: 6px; color: rgba(238, 240, 238, .62); pointer-events: none; }
.door .tiles.copy:hover .tcopy, .door .tiles.copy:focus-visible .tcopy { color: #f4f6f4; }
.door-toast { position: fixed; left: 50%; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; padding: 8px 16px; border-radius: 999px; background: rgba(20, 22, 21, .92); color: #f4f6f4; border: 1px solid rgba(238, 240, 238, .22); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .door-toast { animation: door-toast-in .16s ease-out; } @keyframes door-toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translateX(-50%); } } }
.door[data-state="waiting"] .pc { gap: 8px; padding: 12px 14px; }
/* Waiting before the code shows (owner 11-21, 3.0.0.88 in a 960x619 window: the card ran past the plate, the title sat on its edge): the title, the plain
   line, the boxes, the time left and "Send the request again" fit inside the plate at every size; "I don't have my ShadowLatch app" sits under the lock. */
.door[data-state="waiting"] .pc h2 { font-size: 17px; margin: 0; }
.door[data-state="waiting"] .pc .note { max-width: 100%; font-size: 12px; line-height: 1.35; text-align: center; color: var(--mut); }
.door[data-state="waiting"] .tiles { gap: 4px; }
/* the under-the-lock links sit clear of the legal line (one line on a desktop, up to three on a phone) */
@media (max-width: 700px) { .door .under { bottom: 76px; } }
.door[data-state="waiting"] .tiles span { width: 24px; height: 34px; }
.door .tline { width: 100%; display: grid; justify-items: center; padding-bottom: 2px; }
.door .steps { display: grid; gap: 5px; justify-content: center; justify-items: start; text-align: left; font-size: 13px; color: var(--mut); } /* owner 11-18: the tick list is centered as one block under the title (its dots line up), each line on ONE line */
.door .steps span { white-space: nowrap; }
.door .steps span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hair); margin-right: 8px; vertical-align: 1px; }
.door .steps span.ok::before { background: #c2fa84; }

/* first paint: the field is there, the title and Continue fade in around it (opacity only) */
.door.intro form.signin > h2 { animation: pm-fade .45s .1s cubic-bezier(.2, .7, .2, 1) both; }
.door.intro form.signin > .btn { animation: pm-fade .45s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .door *, .door.intro * { transition: none !important; animation: none !important; } }
@media (min-width: 768px) { .door .stage3 .lockstill, .door .stage3 .plateui { --pw: min(clamp(232px, 44cqh, 270px), calc((50cqh - 14px) / 1.22)); } }

/* the static first-paint plate (index.html): the still lock fades in on its own, a resume load (?account=) never shows the email plate (boot.js) */
.door.static .lockstill { animation: pm-fade .5s ease-out both; }
html.resume #door-static .plateui { visibility: hidden; } /* a resume load hides only the email plate: the lock (still, then 3D) is on screen from the first paint, never an empty page (owner 11-21) */

/* ONE LOOK from the first frame to Manage (owner 11-14: the page before the lock was "way more green" with a different logo): everything that paints before or around the lock
   (the first frame, the end and gate screens, the update screen) uses the sign-in's graphite ground, its wordmark-only bar and neutral card tones: no green tone anywhere. */
html:has(body[data-door]) { background: #f2f3f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):has(body[data-door]) { background: #0b0c0b; } }
:root[data-theme="dark"]:has(body[data-door]) { background: #0b0c0b; }
body[data-door] { --card: #f7f6f3; --panel-soft: #ebe9e4; --field: #ffffff; --line: rgba(0, 0, 0, .14); --line-strong: rgba(0, 0, 0, .28); --border-subtle: rgba(0, 0, 0, .09); --logo-tint: #1c1d1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-door] { --card: #1c1d1e; --panel-soft: #222324; --field: #161718; --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .28); --border-subtle: rgba(255, 255, 255, .07); --logo-tint: #eef0ee; } }
:root[data-theme="dark"] body[data-door] { --card: #1c1d1e; --panel-soft: #222324; --field: #161718; --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .28); --border-subtle: rgba(255, 255, 255, .07); --logo-tint: #eef0ee; }
body[data-door="gate"] main { max-width: 560px; margin: 0 auto; padding: 32px 16px 56px; }
/* the update screen (bundle-seq.mjs): the same ground and bar, one quiet line */
.updating-screen { --pmbg: radial-gradient(ellipse 80% 60% at 50% 38%, #fafbfc, #f2f3f5 78%); --pmhair: #e1e4e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .updating-screen { --pmbg: radial-gradient(ellipse 80% 60% at 50% 38%, #191a19, #0b0c0b 75%); --pmhair: rgba(255, 255, 255, .07); } }
:root[data-theme="dark"] .updating-screen { --pmbg: radial-gradient(ellipse 80% 60% at 50% 38%, #191a19, #0b0c0b 75%); --pmhair: rgba(255, 255, 255, .07); }
.updating-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--pmbg, #0b0c0b); color: var(--text, #eef0ee); font: 15px/1.45 var(--font, system-ui, sans-serif); }
.updating-screen .top { position: absolute; left: 0; right: 0; top: 0; border-bottom: 1px solid var(--pmhair, rgba(255,255,255,.07)); }
.updating-screen p { margin: 0; color: var(--muted, #9a9f9c); }

/* C neon: the field's focus glow, and the glow that becomes the timer ring (owner 11-14 7:10 PM EST "I like C and the neon could turn into the timer"; design-login-neon-options.html "C + timer") */
:root { --neon: #c2fa84; }
.door form.signin .f::before { content: ""; position: absolute; inset: -6px -10px -4px; border-radius: 10px; border: 1px solid rgba(194, 250, 132, .75); box-shadow: 0 0 0 3px rgba(194, 250, 132, .10), 0 0 24px rgba(194, 250, 132, .22); opacity: 0; transition: opacity .3s; pointer-events: none; }
.door form.signin .f:focus-within::before { opacity: 1; }
.door form.signin .f:focus-within .hair { opacity: 0; }
.door .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; opacity: 0; transition: opacity .45s; filter: drop-shadow(0 0 6px rgba(194, 250, 132, .55)); }
.door .ring path { fill: none; stroke: var(--neon); stroke-width: 1.5; stroke-dasharray: 100 100; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke .25s; }
.door[data-state="waiting"] .ring, .door[data-state="approved"] .ring, .door[data-state="refused"] .ring, .door[data-state="expired"] .ring { opacity: 1; }
.door[data-state="approved"] .ring { animation: ring-flash .9s ease-out; }
@keyframes ring-flash { 0% { filter: drop-shadow(0 0 6px rgba(194, 250, 132, .55)); } 30% { filter: drop-shadow(0 0 22px rgba(194, 250, 132, 1)) drop-shadow(0 0 4px #fff); } 100% { filter: drop-shadow(0 0 8px rgba(194, 250, 132, .7)); } }
.door[data-state="refused"] .ring path { stroke: #e5534b; }
.door[data-state="refused"] .ring { filter: drop-shadow(0 0 6px rgba(229, 83, 75, .55)); animation: ring-beat-red .55s ease-out; }
@keyframes ring-beat-red { 0% { filter: drop-shadow(0 0 6px rgba(229, 83, 75, .55)); } 35% { filter: drop-shadow(0 0 20px rgba(229, 83, 75, .95)); } 100% { filter: drop-shadow(0 0 7px rgba(229, 83, 75, .6)); } }
.door[data-state="expired"] .ring path { stroke: #e9c46a; }
.door[data-state="expired"] .ring { filter: drop-shadow(0 0 6px rgba(233, 196, 106, .5)); animation: ring-beat-yellow .55s ease-out; }
@keyframes ring-beat-yellow { 0% { filter: drop-shadow(0 0 6px rgba(233, 196, 106, .5)); } 35% { filter: drop-shadow(0 0 20px rgba(233, 196, 106, .9)); } 100% { filter: drop-shadow(0 0 7px rgba(233, 196, 106, .55)); } }
.door.ring-fade .ring { opacity: 0; transition: opacity .8s; }

/* the quiet legal line (owner 9:12 PM EST "shouldnt it have legal stuff at the bottom"): static in index.html with the first paint, below the lock and the "I don't have my ShadowLatch app" link,
   never over the lock; it fades with the plate on approve (0.5 s from 0.7 s) and is gone before the zoom */
.door .legal-signin { position: absolute; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 3; margin: 0; text-align: center; font-size: 11px; line-height: 1.5; color: color-mix(in srgb, var(--muted, #9a9f9c) 75%, transparent); transition: opacity .5s; }
.door .legal-signin span { display: inline-block; margin: 0 6px; }
.door .legal-signin a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.door .legal-signin a:hover { color: var(--text, #eef0ee); }
.door.gone-ui .legal-signin { opacity: 0; pointer-events: none; }

/* a resume load (?account=) whose modules never arrived: the card is hidden, so boot.js says so in one plain line (never a blank page) */
.load-note { position: fixed; left: 16px; right: 16px; top: 50%; margin: 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted, #6b7280); }

/* until console.mjs adopts the form the button looks busy (a click is still kept by boot.js and replayed when ready) */
.door .btn.pending { cursor: progress; } /* no dimming: the button looks final from the first frame (owner: no entrance, it just needs to feel smooth) */

/* NO ENTRANCE on the sign-in (owner on live seq 6: "it can just not animate in. it just needs to feel smooth"): the first paint IS the final frame: the still lock, the plate, the title, the input and Unlock are all at rest from the first
   byte. The 3D lock swaps in over the same pose as a crossfade of at most 150 ms (.gl above). The approve animation (ring, zoom, Manage opening) and later step changes are not touched. */
.door.static .lockstill { animation: none; opacity: 1; transition: none; }
.door.static .plateui::before { transition: none; }
.door.intro form.signin > h2, .door.intro form.signin > .btn { animation: none; }

/* the lock layers are not images the page offers: no drag, no selection, no pointer target (so no right-click "Save image as" on the still or the 3D canvas); the page's own context menu is untouched elsewhere */
.door .lockstill, .door .gl, .door .gl canvas { pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }

/* The gate and end screens (paused, locked, expired, refused ...: body[data-door="gate"]) have no lock, so the big ShadowLatch padlock-and-SL mark sits faint and centred behind them (owner: "we lost the big padlock logo background"): the layer is z-index 0 under main (z-index 1), because the body's own background would hide a negative one.
   A CSS mask layer, never an <img>: not draggable or copyable. The sign-in itself (data-door="idle") shows the graphite lock and needs none. */
body[data-door="gate"]::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; user-select: none; background-color: var(--text); opacity: .045; -webkit-mask: url("./assets/mark.png") center / min(78vmin, 560px) no-repeat; mask: url("./assets/mark.png") center / min(78vmin, 560px) no-repeat; }
body[data-door="gate"] main { position: relative; z-index: 1; }

/* SHORT WINDOWS (owner, seq 7 sign-in at ~1108x559: the shackle was cut off at the top). Under ~594 px of stage height the lock and its plate shrink to fit (--pw above, never clipped, a margin kept top and bottom); the plate's rows shrink with it so the title, the field and Unlock all stay inside the screen. */
@container (max-height: 593px) {
  .door form.signin { padding: 8px 16px 10px; grid-template-rows: 40px 50px 1fr 34px; gap: 4px; }
  .door form.signin > h2 { font-size: 19px; }
  .door form.signin input { height: 30px; font-size: 15px; }
  .door form.signin label.field { font-size: 11px; }
  .door .btn { height: 34px; font-size: 14px; }
  .door .pc { gap: 10px; padding: 10px 14px; }
  .door h2 { font-size: 17px; }
  .door[data-state="waiting"] .pc { gap: 5px; padding: 8px 12px; }
  .door[data-state="waiting"] .pc h2 { font-size: 15px; }
  .door[data-state="waiting"] .pc .note { font-size: 11px; line-height: 1.3; }
  .door[data-state="waiting"] .tiles { font-size: 16px; }
  .door[data-state="waiting"] .tiles span { width: 22px; height: 28px; }
  /* the end states (timed out, refused) in a short window: title, the words and the button stay inside the plate */
  .door[data-state="expired"] .pc, .door[data-state="refused"] .pc { gap: 6px; padding: 8px 12px; }
  .door[data-state="expired"] .pc h2, .door[data-state="refused"] .pc h2 { font-size: 15px; margin: 0; }
  .door[data-state="expired"] .pc .alert, .door[data-state="refused"] .pc .alert { max-width: 100%; font-size: 11.5px; line-height: 1.35; }
}
/* M11 (11-18): a slow first load says so calmly, with a moving bar, never an alarm. Only a load that stopped for 60 s turns red (.stalled keeps .bad). */
.door form.signin .banner.slow, .load-note.slow { color: var(--muted, #9a9f9c); }
.door form.signin .banner.slow::after, .load-note.slow::after { content: ""; display: block; height: 2px; margin-top: 6px; border-radius: 1px; background: linear-gradient(90deg, transparent, var(--neon, #c2fa84), transparent) 0 0 / 40% 100% no-repeat, rgba(255, 255, 255, .08); animation: slow-bar 1.4s ease-in-out infinite; }
@keyframes slow-bar { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .door form.signin .banner.slow::after, .load-note.slow::after { animation: none; background: rgba(194, 250, 132, .35); } }

/* "Opening Manage" breathing (owner pick 11-18, option 2, "the calm breathing style"): the ring's line and glow rise and fall together, 1.5 s, while Manage opens.
   After an approval the flash plays first, then the breathing. Reduced motion: the global rule stops it and the ring stays still and full. */
.door.loading .ring { opacity: 1; animation: ring-glow 1.5s ease-in-out infinite; }
.door.loading[data-state="approved"] .ring { animation: ring-flash .9s ease-out, ring-glow 1.5s ease-in-out .9s infinite; }
.door.loading .ring path { animation: ring-breathe 1.5s ease-in-out infinite; }
@keyframes ring-breathe { 0%, 100% { stroke-opacity: .45; } 50% { stroke-opacity: 1; } }
@keyframes ring-glow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(194, 250, 132, .3)); } 50% { filter: drop-shadow(0 0 14px rgba(194, 250, 132, .9)); } }

/* The loading HUD, P1 (lock-dial.mjs, owner 11-19): S1's rings and the mark inside the plate, one status line under the lock, shown while .dialing.
   Only transform and opacity move; while the HUD shows, the plate ring and its filter animation are off (the filter was the jerk). */
.door .lock-dial { position: absolute; left: 50%; top: 50%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 1; }
.door.dialing .lock-dial { opacity: 1; }
.door.dialing .ring { opacity: 0 !important; animation: none !important; }
.door.dialing .pc { opacity: 0; pointer-events: none; }
.door .dial-line { --pw: min(clamp(232px, 44cqh, 250px), calc((50cqh - 14px) / 1.22)); --lift: min(calc(var(--bar-h, 53px) / 2 + 10cqh), max(0px, calc(50cqh - 24px - .985 * var(--pw))));
  position: absolute; z-index: 3; left: 16px; right: 16px; top: calc(50% + 1.008 * var(--pw) - var(--lift) + 22px); height: 24px; opacity: 0; transition: opacity .35s; pointer-events: none; }
.door.dialing .dial-line { opacity: 1; }
.door.gone-ui .dial-line { opacity: 0; }
.door .dial-line span { position: absolute; inset: 0; text-align: center; white-space: nowrap; font-size: 17px; font-weight: 500; letter-spacing: -.015em; line-height: 24px; color: #1b1c1d; opacity: 0; transform: translateY(8px); transition: opacity .26s cubic-bezier(.2, .7, .2, 1), transform .26s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .door .dial-line span { color: #eef0ee; } }
:root[data-theme="dark"] .door .dial-line span { color: #eef0ee; }
.door .dial-line span.in { opacity: 1; transform: none; }
.door .dial-line span.out { opacity: 0; transform: translateY(-8px); }
@media (min-width: 768px) { .door .dial-line { --pw: min(clamp(232px, 44cqh, 270px), calc((50cqh - 14px) / 1.22)); } }
/* One paint (boot.js SL_WAIT_MS): while the padlock still and the brand load, the static plate and the brand are not painted yet; then they appear together. */
html.sl-wait .door.static, html.sl-wait .top .brand { visibility: hidden; }
/* lock-dial.mjs's layers (the rings and the sweep turn on the compositor, each its own layer): stacked over each other, never in flow; set here, not by
   style attributes, which the console's CSP drops (reviewer on #6292). The mark's mask uses its image's alpha. */
.lock-dial > .ld-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lock-dial > .ld-spin { transform-origin: 50% 50%; will-change: transform; }
.lock-dial mask { mask-type: alpha; }
/* The end of the hand-off (owner 3.0.0.64: "it flashes the padlock for a split second at the end"): the whole lock scene, the still and the canvas
   together, is hidden before Manage leaves its reveal layer and before the scene is removed, so no frame can show the lock again (console.mjs reveal). */
.door.handed-off, .door.handed-off .lockstill, .door.handed-off .gl { visibility: hidden !important; transition: none !important; }
/* SU-1 (signup walk 11-17): the one sign-up line, just under the lock body (body bottom = 1.015 pw below the stage centre), moving with the lock's --pw and --lift (the same values as .lockstill, owner 11-17 "move the lock up more"); quiet, both themes. */
.door .signup-line { --pw: min(clamp(232px, 44cqh, 250px), calc((50cqh - 14px) / 1.22)); --lift: min(calc(var(--bar-h, 53px) / 2 + 10cqh), max(0px, calc(50cqh - 24px - .985 * var(--pw))));
  position: absolute; z-index: 3; left: 16px; right: 16px; top: calc(50% + 1.015 * var(--pw) - var(--lift) + 14px); margin: 0; text-align: center; font-size: 13px; line-height: 1.45;
  color: color-mix(in srgb, var(--muted, #9a9f9c) 90%, transparent); }
@media (min-width: 768px) { .door .stage3 .signup-line { --pw: min(clamp(232px, 44cqh, 270px), calc((50cqh - 14px) / 1.22)); } }
.door .signup-line .lead { color: var(--text, #eef0ee); }
.door .signup-line a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; }
.door .signup-line a:hover { color: var(--text, #eef0ee); }
.door.gone-ui .signup-line, .door.dialing .signup-line, .door:not([data-state="idle"]) .signup-line { opacity: 0; pointer-events: none; }
