/* ==========================================================================
   DARK MODE ONLY (1 Nov, the owner: "all dark is bad vibes for sign-in"): what follows is the door when this device
   chose dark (admin/js/mode-switch.mjs); the light door, the default, is at the foot of this file.

   THE SIGN-IN IN THE POSTS' LOOK (1 Nov 2026; the owner: "did u make sure
   everything in experience looks like the ad images u made n posted already?").

   The November posts carry the brand at its best (assets/posts-look.css says
   it for the home): the posts' black ground with its dot grid fading from the
   middle and one soft lime glow, the eyebrow as a pill with one lit point,
   the words large, light and tight in Inter Tight with a serif line under
   them, and the object on a glossy dark card (m06, "Only you get in.").
   The door takes the same, and keeps its shape: the world on the left, the
   form on the right; on a phone the band over the form.

   Loaded after signin-pro.css on admin/index.html alone. Look only: no field,
   label, route, message, focus order or security property changes here, and
   every id page-field.mjs reads means what it meant. ?posts=off (and the
   classic look) set <html data-posts="off"> in theme-first.js and show the
   door as it was the day before.
   ========================================================================== */

/* ── THE TOKENS: auth.css draws everything from these, so the door turns dark by them ── */
:root[data-mode="dark"]:not([data-posts="off"]) body:has(#signin),
:root[data-mode="dark"]:not([data-posts="off"]) body:has(#setup){
  --au-frame:var(--tk-grey-05);
  --au-bg:var(--tk-grey-05);
  --au-stage:var(--tk-grey-0b);
  --au-stage-edge:var(--tk-grey-1a);
  --au-island:var(--tk-grey-14);                     /* the card's solid, under its gloss */
  --au-island-edge:var(--tk-grey-26);
  --au-inset:var(--tk-grey-16);
  --au-raised:var(--tk-grey-1a);
  /* A field is a well cut into the card. Its edge at rest is 3.8:1 on its fill (WCAG 1.4.11). */
  --au-field:var(--tk-grey-0a);
  --au-field-hi:var(--tk-grey-0e);
  --au-line:rgba(255,255,255,.40);
  --au-line-hi:rgba(255,255,255,.58);
  --au-hair:var(--tk-white-a100);
  --au-text-hi:var(--tk-grey-fa);
  --au-text:var(--tk-grey-e8);
  --au-text-2:#D4D4D4;
  --au-muted:var(--tk-grey-a8);                      /* 7.2:1 on the card's lightest */
  --au-muted-2:var(--tk-grey-9a);
  --au-r:var(--tk-r-lg);
  --au-r-island:var(--tk-r-2xl);                      /* the pro scale's sheet (UNIVERSE: card 16, sheet 22) */
  /* focus is the lit edge, the composer's (owner rule 6): this look changed no focus (cbcadbbd) */
  --focus-edge:var(--tk-grey-8e);
  --focus-halo:var(--tk-white-a140);
  --pl-lime:var(--tk-lime);
  --pl-serif:"tkati Serif Display",Georgia,"Times New Roman",serif;
}
:root[data-mode="dark"]:not([data-posts="off"]) body:has(#signin:not([hidden])){ background:var(--tk-grey-05); }
:root[data-mode="dark"]:not([data-posts="off"]) ::selection{ background:#C8F031; color:#000000; }

/* ── THE WORLD: the posts' black, the grid fading from the middle, one lime glow ── */
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-world{
  /* The growth canvas draws in white now, the ō alone, no paper lines (signin-growth.mjs reads these). */
  --au-ground-ink:255,255,255;
  --au-paper:none;
  --au-ring-a:.032;
  background:radial-gradient(75% 55% at 50% 45%, var(--tk-grey-16) 0%, var(--tk-grey-0b) 55%, #060606 100%);
  background-color:var(--tk-grey-0b);
  border-color:var(--tk-grey-1a);
  box-shadow:inset 0 1px 0 var(--tk-white-a060), inset 0 0 0 1px rgba(255,255,255,.02);
}
/* The glow sits under the account on show, as the posts light the ground under their object, and never near the ō
   (the owner, 28 Oct: a light in the ring "gives headshot vibes"). */
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-world::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(52% 34% at 40% 86%, rgba(200,240,49,.12) 0%, transparent 70%),
    radial-gradient(var(--tk-white-a070) 1.2px, transparent 1.4px) 0 0 / 32px 32px;
  -webkit-mask-image:radial-gradient(80% 66% at 50% 42%, var(--tk-black) 18%, transparent 86%);
  mask-image:radial-gradient(80% 66% at 50% 42%, var(--tk-black) 18%, transparent 86%);
}
/* The i's dot is lime on black, as the white wordmark has it (assets/brand/tkati-wordmark.svg). */
:root[data-mode="dark"]:not([data-posts="off"]) .au-logo #au-dot{ stroke:var(--tk-lime); }

/* ── THE WORDS: the pill, then the light line, then the serif ── */
.auth-pill{ display:none; }
/* Its words in sentence case on the door: the sign-in types no word in capitals (OF-02; tools/signin-check.mjs). */
:root[data-mode="dark"]:not([data-posts="off"]) .auth-pill{
  display:inline-flex; align-items:center; gap:10px; margin:0 0 clamp(16px,2.2vh,24px);
  padding:7px 15px 7px 13px; border-radius:var(--tk-r-pill);
  background:var(--tk-white-a030); box-shadow:inset 0 0 0 1px var(--tk-white-a160);
  font:500 12.5px/1 var(--au-body); letter-spacing:.01em; color:#D8D8D8;
}
:root[data-mode="dark"]:not([data-posts="off"]) .auth-pill i{
  width:7px; height:7px; border-radius:50%; background:var(--tk-lime); box-shadow:0 0 10px var(--tk-lime-a900);
}
:root[data-mode="dark"]:not([data-posts="off"]) .auth-statement{ margin-top:clamp(18px,4.4vh,48px); }
:root[data-mode="dark"]:not([data-posts="off"]) .auth-statement__h{
  font-weight:300; letter-spacing:-.05em; line-height:.98; color:var(--tk-grey-f4);
  font-size:clamp(44px,4.6vw,76px);
}
:root[data-mode="dark"]:not([data-posts="off"]) .auth-statement__sub{
  max-width:42ch; margin-top:clamp(12px,1.8vh,18px);
  font:400 clamp(17px,1.3vw,20px)/1.35 var(--pl-serif); letter-spacing:-.005em; color:var(--tk-grey-cf);
}
@media (max-height:820px) and (min-width:1024px){
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-statement__h{ font-size:clamp(40px,4.2vw,60px); }
}
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-back{ color:var(--tk-grey-a8); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-back:hover{ color:var(--tk-white); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-motion{ color:var(--tk-grey-a8); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-motion:hover{ color:var(--tk-white); border-color:var(--tk-grey-2a); }

/* The account on show: a white screen floating on the black, as the posts show one, its hairline and its depth. */
:root[data-mode="dark"]:not([data-posts="off"]) .auth-preview--pro .pp-window{
  border-color:#202020;
  box-shadow:0 0 0 1px var(--tk-black), inset 0 1px 0 var(--tk-white-a080), 0 3.6em 7em -3em var(--tk-black-a900), 0 2em 5em -2.4em rgba(20,35,0,.55);
}

/* ── THE DOOR: the form on a glossy dark card, a soft lime glow under it ── */
:root[data-mode="dark"]:not([data-posts="off"]) .auth-access{ isolation:isolate; }
:root[data-mode="dark"]:not([data-posts="off"]) .auth-access::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(42% 30% at 50% 78%, rgba(200,240,49,.09) 0%, transparent 70%),
    radial-gradient(var(--tk-white-a050) 1.2px, transparent 1.4px) 0 0 / 32px 32px;
  -webkit-mask-image:radial-gradient(70% 60% at 50% 50%, var(--tk-black) 20%, transparent 85%);
  mask-image:radial-gradient(70% 60% at 50% 50%, var(--tk-black) 20%, transparent 85%);
}
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-card{
  background-color:var(--tk-grey-14);
  background-image:linear-gradient(180deg, var(--tk-grey-1c) 0%, var(--tk-grey-11) 45%, var(--tk-grey-0a) 100%);
  border:1px solid var(--tk-black);
  border-radius:var(--au-r-island);
  box-shadow:
    inset 0 1px 0 var(--tk-white-a090),
    inset 0 0 0 1px var(--tk-white-a040),
    0 40px 80px -36px var(--tk-black-a950),
    0 60px 110px -60px rgba(20,35,0,.7);
}
:root[data-mode="dark"]:not([data-posts="off"]) .auth-greet{ color:var(--tk-grey-a8); }
:root[data-mode="dark"]:not([data-posts="off"]) .signin-title{
  font-weight:300; letter-spacing:-.045em; color:var(--tk-grey-f4); font-size:44px; line-height:1;
}
:root[data-mode="dark"]:not([data-posts="off"]) .signin-sub{ color:var(--tk-grey-a8); }

/* The fields: wells in the card (the tokens above draw them, their focus a lime edge and halo). */
:root[data-mode="dark"]:not([data-posts="off"]) #signin .field label{ color:#D8D8D8; }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .field input::placeholder{ color:var(--tk-grey-8a); }

/* The one button that signs in: the lime, lit, black words. */
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-submit::before{
  background:var(--tk-lime); box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 12px 30px -14px var(--tk-lime-a550);
}
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-submit:hover::before{ background:var(--tk-lime-up); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-submit:active::before{ background:var(--tk-lime-press); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-submit:disabled::before{ background:var(--tk-grey-3a); box-shadow:none; }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-submit:disabled{ color:var(--tk-grey-e8); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-submit:disabled::after{ border-color:rgba(255,255,255,.25); border-top-color:var(--tk-white); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin[data-leaving] .auth-submit:disabled::before{ background:var(--tk-lime); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin[data-leaving] .auth-submit:disabled{ color:var(--tk-grey-0a); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin[data-leaving] .auth-submit:disabled::after{ border-color:var(--tk-grey-0a); }

/* The message line on the card: a quiet well; a failure keeps auth.css's red wash, edge and words (7:1). */
:root[data-mode="dark"]:not([data-posts="off"]) :is(#signin-msg, #recover-msg, #code-msg):not(:empty){ background:var(--tk-grey-10); border-color:var(--tk-white-a120); }
:root[data-mode="dark"]:not([data-posts="off"]) :is(#signin-msg, #recover-msg, #code-msg)[data-tone="bad"]:not(:empty){ background:var(--tk-bad-wash); border-color:var(--bad-mark); }

/* The quiet routes and the trust line. */
:root[data-mode="dark"]:not([data-posts="off"]) #signin .linkish{ text-decoration-color:#6A6A6A; }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .linkish:hover{ text-decoration-color:var(--tk-lime); }

/* ── ANOTHER WAY IN: clean dark buttons, each to its company's dark style ──
   Google   its dark button: #131314 fill, a 1px #8E918F edge, #E3E3E3 words, the four-colour G untouched;
   Apple    its black style: black, the mark and the words white, an edge so it reads on the card;
   GitHub   its mark in white on dark, beside its name. The same height and corners as the lime button above. */
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp{
  background:#131314; border-radius:var(--tk-r-lg);
  box-shadow:inset 0 0 0 1px #8E918F;
  transition:background-color var(--au-fast) var(--au-ease), box-shadow var(--au-fast) var(--au-ease);
}
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp--google{ color:#E3E3E3; }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp--apple{ background:var(--tk-black); color:var(--tk-white); box-shadow:inset 0 0 0 1px #8E918F; }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp--github{ color:var(--tk-white); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp--passkey{ color:var(--tk-white); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp--github .idp__mark,
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp--apple .idp__mark{ fill:var(--tk-white); }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp:hover{ background:#1E1E20; box-shadow:inset 0 0 0 1px #B4B6B4; }
:root[data-mode="dark"]:not([data-posts="off"]) #signin .idp:active{ background:#252527; }
:root[data-mode="dark"]:not([data-posts="off"]) .auth-idp__or{ color:var(--tk-grey-8a); }

/* ── THE PHONE: the band on the posts' black, the notifications white screens on it ── */
@media (max-width:1023px){
  :root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-world::before{
    background:
      radial-gradient(60% 50% at 70% 30%, rgba(200,240,49,.10) 0%, transparent 70%),
      radial-gradient(var(--tk-white-a070) 1.2px, transparent 1.4px) 0 0 / 28px 28px;
  }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-pill{ margin-bottom:14px; }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-statement{ margin-top:20px; }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-statement__h{ font-size:clamp(34px, 9vw, 46px); }
  :root[data-mode="dark"]:not([data-posts="off"]) .signin-title{ font-size:36px; }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-ticker .tk-sample{ color:var(--tk-grey-9a); }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-ticker .tk{ border-color:rgba(255,255,255,.6); box-shadow:0 18px 34px -16px var(--tk-black), 0 0 0 1px var(--tk-black-a400); }
  /* Folded for typing, the pill goes with the words. */
  :root[data-mode="dark"]:not([data-posts="off"]) #signin.is-typing .auth-pill{ display:none; }
}

/* ── STILL, AND THE SYSTEM'S OWN COLOURS ── */
@media (forced-colors:active){
  :root[data-mode="dark"]:not([data-posts="off"]) #signin .auth-world::before,
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-access::before{ display:none; }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-pill{ border:1px solid CanvasText; }
  :root[data-mode="dark"]:not([data-posts="off"]) .auth-pill i{ forced-color-adjust:none; background:Highlight; box-shadow:none; }
}

/* the ō of dots (admin/js/signin-mark.mjs): the same box as the paper, over it, under the words */
:root:not([data-theme="classic"]) .auth-world > .au-mark{position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none}

/* ==========================================================================
   THE LIGHT DOOR, THE DEFAULT (1 Nov 2026; the owner: "the sign-in, you failed to improve it, it simply looks like a
   dark version of the previous white sign-in… all dark is bad vibes for sign-in… offer a dark mode button top right").
   The posts' bright side, not the old white page: the frame on the posts' ice, the world on their lime with the dot
   grid and the character (signin-mark.mjs) in ink under a glowing white halo, the words as a post's, and the form on a
   glossy white card floating on the ice. The switch at the top right (mode-switch.mjs) turns the door to the dark one
   above; theme-first.js sets <html data-mode> before the first frame.
   ========================================================================== */
:root[data-mode="light"]:not([data-posts="off"]) body:has(#signin),
:root[data-mode="light"]:not([data-posts="off"]) body:has(#setup){
  --au-frame:#E9EBE6;
  --au-bg:#E9EBE6;
  --au-r-island:var(--tk-r-2xl);
  --au-r:var(--tk-r-lg);
  --focus-edge:var(--tk-grey-0a);                    /* the light sign-in's near-black edge (owner, 24 Oct) */
  --focus-halo:var(--tk-black-a160);
  --pl-lime:var(--tk-lime);
  --pl-serif:"tkati Serif Display",Georgia,"Times New Roman",serif;
}
:root[data-mode="light"]:not([data-posts="off"]) body:has(#signin:not([hidden])){
  background:radial-gradient(70% 60% at 72% 40%, var(--tk-white) 0%, #F1F2EE 45%, #E4E6E1 100%) fixed, #E9EBE6;
}
:root[data-mode="light"]:not([data-posts="off"]) ::selection{ background:#C8F031; color:#0A0A0A; }

/* ── THE WORLD: the posts' lime, its dot grid fading from the middle, a white light where the character stands ── */
:root[data-mode="light"]:not([data-posts="off"]) #signin .auth-world{
  --au-ground-ink:10,10,10;
  --au-paper:none;
  --au-ring-a:0;
  background:radial-gradient(90% 62% at 55% 40%, #E2FA74 0%, var(--tk-lime) 50%, var(--tk-lime-shade) 100%);
  background-color:var(--tk-lime);
  border-color:rgba(10,10,10,.10);
  box-shadow:inset 0 1px 0 var(--tk-white-a550), inset 0 0 0 1px var(--tk-white-a120), 0 50px 90px -50px rgba(70,95,0,.55);
}
:root[data-mode="light"]:not([data-posts="off"]) #signin .auth-world::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; border-radius:inherit;
  background:radial-gradient(rgba(0,0,0,.11) 1.3px, transparent 1.5px) 0 0 / 32px 32px;
  -webkit-mask-image:radial-gradient(80% 66% at 55% 42%, var(--tk-black) 15%, transparent 85%);
  mask-image:radial-gradient(80% 66% at 55% 42%, var(--tk-black) 15%, transparent 85%);
}
:root[data-mode="light"]:not([data-posts="off"]) .auth-world > .au-core{ display:none; }
:root[data-mode="light"]:not([data-posts="off"]) .au-logo .au-s{ stroke:var(--tk-grey-0a); }

/* the words, as a post's: the black pill with one lit point, the light line, the serif under it */
:root[data-mode="light"]:not([data-posts="off"]) .auth-pill{
  display:inline-flex; align-items:center; gap:10px; margin:0 0 clamp(16px,2.2vh,24px);
  padding:8px 16px 8px 13px; border-radius:var(--tk-r-pill); background:var(--tk-grey-0a); color:var(--tk-grey-f4);
  font:500 12.5px/1 var(--au-body); letter-spacing:.01em;
  box-shadow:0 10px 24px -12px rgba(10,10,10,.6);
}
:root[data-mode="light"]:not([data-posts="off"]) .auth-pill i{
  width:7px; height:7px; border-radius:50%; background:var(--tk-lime); box-shadow:0 0 10px rgba(200,240,49,.95);
}
:root[data-mode="light"]:not([data-posts="off"]) .auth-statement{ margin-top:clamp(18px,4.4vh,48px); }
:root[data-mode="light"]:not([data-posts="off"]) .auth-statement__h{
  font-weight:300; letter-spacing:-.05em; line-height:.98; color:var(--tk-grey-0a); font-size:clamp(44px,4.6vw,76px);
}
:root[data-mode="light"]:not([data-posts="off"]) .auth-statement__sub{
  max-width:40ch; margin-top:clamp(12px,1.8vh,18px); color:#1C2400;
  font:400 clamp(17px,1.3vw,20px)/1.35 var(--pl-serif); letter-spacing:-.005em;
}
@media (max-height:820px) and (min-width:1024px){
  :root[data-mode="light"]:not([data-posts="off"]) .auth-statement__h{ font-size:clamp(40px,4.2vw,60px); }
}
:root[data-mode="light"]:not([data-posts="off"]) #signin :is(.auth-back, .auth-motion){ color:#1C2400; }
:root[data-mode="light"]:not([data-posts="off"]) #signin :is(.auth-back, .auth-motion):hover{ color:var(--tk-black); }
:root[data-mode="light"]:not([data-posts="off"]) #signin :is(.auth-back, .auth-motion):focus-visible{ outline-color:var(--focus-edge); }
/* the account on show, a dark screen floating on the lime, as the posts show the console (m03) */
:root[data-mode="light"]:not([data-posts="off"]) .auth-preview--pro .pp-window{
  box-shadow:0 0 0 1px rgba(10,10,10,.5), inset 0 1px 0 var(--tk-white-a080), 0 3.4em 6em -2.6em rgba(40,55,0,.75), 0 1.2em 2.4em -1.4em rgba(10,10,10,.45);
}

/* ── THE DOOR: the form on a glossy white card, floating on the ice ── */
:root[data-mode="light"]:not([data-posts="off"]) .auth-access{ isolation:isolate; }
:root[data-mode="light"]:not([data-posts="off"]) .auth-access::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(40% 26% at 50% 84%, rgba(200,240,49,.30) 0%, transparent 70%),
    radial-gradient(rgba(0,0,0,.07) 1.2px, transparent 1.4px) 0 0 / 32px 32px;
  -webkit-mask-image:radial-gradient(70% 60% at 50% 50%, var(--tk-black) 20%, transparent 85%);
  mask-image:radial-gradient(70% 60% at 50% 50%, var(--tk-black) 20%, transparent 85%);
}
:root[data-mode="light"]:not([data-posts="off"]) #signin .auth-card{
  background-color:var(--tk-white);
  background-image:linear-gradient(180deg, var(--tk-white) 0%, var(--tk-white) 55%, #F7F8F5 100%);
  border:1px solid var(--tk-ink-a050);
  border-radius:var(--au-r-island);
  box-shadow:
    inset 0 1px 0 var(--tk-white),
    0 1px 2px var(--tk-ink-a050),
    0 24px 50px -24px rgba(10,10,10,.28),
    0 70px 120px -60px rgba(60,80,0,.35);
}
:root[data-mode="light"]:not([data-posts="off"]) .signin-title{
  font-weight:300; letter-spacing:-.045em; color:var(--tk-grey-0a); font-size:46px; line-height:1;
}
:root[data-mode="light"]:not([data-posts="off"]) #signin .field input{ border-radius:var(--tk-r-lg); }
/* the one button that signs in: the lime, lit, with the posts' ink edge */
:root[data-mode="light"]:not([data-posts="off"]) #signin .auth-submit::before{
  background:var(--tk-lime); border-radius:var(--tk-r-lg);
  box-shadow:inset 0 0 0 1px var(--tk-grey-0a), inset 0 2px 0 rgba(255,255,255,.5), 0 14px 30px -14px rgba(110,150,0,.75);
}
:root[data-mode="light"]:not([data-posts="off"]) #signin .auth-submit:hover::before{ background:var(--tk-lime-up); }
:root[data-mode="light"]:not([data-posts="off"]) #signin .auth-submit:active::before{ background:#B9E022; }
/* another way in, each in its company's light style, on the card's corners */
:root[data-mode="light"]:not([data-posts="off"]) #signin .idp{
  background:var(--tk-white); border-radius:var(--tk-r-lg); box-shadow:inset 0 0 0 1px #747775, 0 1px 2px rgba(10,10,10,.04);
}
:root[data-mode="light"]:not([data-posts="off"]) #signin .idp:hover{ background:#F6F7F4; }
:root[data-mode="light"]:not([data-posts="off"]) #signin .linkish:hover{ text-decoration-color:#9BC21A; }

/* ── THE PHONE: the band on the lime, the form on the ice ── */
@media (max-width:1023px){
  :root[data-mode="light"]:not([data-posts="off"]) #signin .auth-world::before{
    -webkit-mask-image:radial-gradient(90% 80% at 70% 35%, var(--tk-black) 15%, transparent 85%);
    mask-image:radial-gradient(90% 80% at 70% 35%, var(--tk-black) 15%, transparent 85%);
  }
  :root[data-mode="light"]:not([data-posts="off"]) .auth-pill{ margin-bottom:14px; }
  :root[data-mode="light"]:not([data-posts="off"]) .auth-statement{ margin-top:20px; }
  :root[data-mode="light"]:not([data-posts="off"]) .auth-statement__h{ font-size:clamp(34px, 9vw, 46px); }
  :root[data-mode="light"]:not([data-posts="off"]) .signin-title{ font-size:38px; }
  :root[data-mode="light"]:not([data-posts="off"]) #signin.is-typing .auth-pill{ display:none; }
}
@media (forced-colors:active){
  :root[data-mode="light"]:not([data-posts="off"]) #signin .auth-world::before,
  :root[data-mode="light"]:not([data-posts="off"]) .auth-access::before{ display:none; }
  :root[data-mode="light"]:not([data-posts="off"]) .auth-pill{ border:1px solid CanvasText; }
  :root[data-mode="light"]:not([data-posts="off"]) .auth-pill i{ forced-color-adjust:none; background:Highlight; box-shadow:none; }
  /* the word in the theme's text colour, as auth.css asks (G4 B047): the light door's ink above outweighed that rule,
     and the theme does not repaint a stroke, so "tkati" was near-black on the theme's black, the link to the home
     with it; the i's dot too */
  :root[data-mode]:not([data-posts="off"]) .au-logo .au-s,
  :root[data-mode]:not([data-posts="off"]) .au-logo #au-dot{ stroke:CanvasText; }
}

/* tkati AI in 3D (signin-ai3d.mjs), placed by signin-mark.mjs over its spot in the world, under the words */
:root:not([data-theme="classic"]) .auth-world > .au-ai3d{position:absolute; z-index:0; pointer-events:none; opacity:0}
/* shown only once it has drawn a frame (signin-ai3d.mjs), so nothing blank ever flashes where it stands */
:root:not([data-theme="classic"]) .auth-world > .au-ai3d.is-on{opacity:1}
/* what it is "doing", under it, in our own words: a small glass pill, the words shimmering, one lit point */
:root:not([data-theme="classic"]) .auth-world > .au-quip{
  position:absolute; z-index:2; margin:0; transform:translate(-50%, 4px); pointer-events:none;
  display:inline-flex; align-items:center; gap:8px; padding:7px 13px 7px 11px; border-radius:var(--tk-r-pill); white-space:nowrap;
  background:rgba(255,255,255,.62); box-shadow:inset 0 0 0 1px rgba(10,10,10,.08), 0 8px 20px -12px rgba(40,60,0,.5);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  font:500 12.5px/1 var(--au-body); letter-spacing:.005em; color:var(--tk-grey-0a);
  opacity:0; transition:opacity .35s ease, transform .35s ease;
}
:root:not([data-theme="classic"]) .auth-world > .au-quip.is-on{opacity:1; transform:translate(-50%, 0)}
:root:not([data-theme="classic"]) .auth-world > .au-quip i{width:6px; height:6px; border-radius:50%; background:var(--tk-grey-0a); animation:au-quip-dot 1.1s var(--tk-ease-loop) infinite}
:root:not([data-theme="classic"]) .auth-world > .au-quip span{
  background:linear-gradient(90deg, var(--tk-grey-0a) 0%, var(--tk-grey-0a) 38%, #5E6E00 50%, var(--tk-grey-0a) 62%, var(--tk-grey-0a) 100%) 0 0 / 220% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent; animation:au-quip-shine 2.2s linear infinite;
}
:root[data-mode="dark"]:not([data-theme="classic"]) .auth-world > .au-quip{background:var(--tk-white-a060); box-shadow:inset 0 0 0 1px var(--tk-white-a140); color:var(--tk-grey-f4)}
:root[data-mode="dark"]:not([data-theme="classic"]) .auth-world > .au-quip i{background:var(--tk-lime)}
:root[data-mode="dark"]:not([data-theme="classic"]) .auth-world > .au-quip span{background-image:linear-gradient(90deg, var(--tk-grey-e8) 0%, var(--tk-grey-e8) 38%, var(--tk-lime) 50%, var(--tk-grey-e8) 62%, var(--tk-grey-e8) 100%)}
@keyframes au-quip-dot{0%,100%{transform:scale(.7); opacity:.55} 50%{transform:scale(1); opacity:1}}
@keyframes au-quip-shine{to{background-position:-220% 0}}
@media (prefers-reduced-motion:reduce){ :root .auth-world > .au-quip{display:none} }

/* ==========================================================================
   THE LEFT SIDE, AS ONE COMPOSITION (2 Nov 2026; the owner: "the whole left side… can be majorly improved"): the
   wordmark; the headline, calmer, without the pill that only repeated the form's title; the character as the centre
   of it; the account on show set back as a product shot, turned in perspective, smaller, sinking below the panel's
   edge so it supports rather than competes; the pause control a small round button, its words kept for the
   screen reader. Light and dark alike; the classic door and ?posts=off are untouched.
   ========================================================================== */
:root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-world .auth-pill{display:none}
:root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-statement{margin-top:clamp(26px,6vh,64px)}
:root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-statement__sub{max-width:34ch}
@media (min-width:1024px){
  /* the account on show as the panel's hero, a product shot: larger, turned in perspective, bleeding off the panel's
     lower right corner (the owner chose the calm brand panel, 2 Nov: no character here, nothing moving near the form) */
  :root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-preview--pro{
    font-size:clamp(8px, min(1.62cqw, 1.3cqh), 13.5px);
    margin:clamp(24px, 5cqh, 56px) calc(-1 * clamp(40px, 9cqw, 120px)) calc(-1 * clamp(60px, 12cqh, 130px)) clamp(0px, 4cqw, 48px);
    pointer-events:none;
  }
  :root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-preview--pro .pp-window{
    transform:perspective(1800px) rotateX(10deg) rotateY(-16deg) rotateZ(2deg) !important;
    transform-origin:30% 100%;
    box-shadow:0 0 0 1px rgba(10,10,10,.55), 0 3em 4em -2em rgba(30,45,0,.55), 0 7em 12em -5em rgba(10,10,10,.55);
  }
}
/* the pause control: a small round button, the icon alone showing, its words for the screen reader */
:root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-motion{
  width:36px; height:36px; min-height:36px; padding:0; margin:0; justify-content:center; border-radius:50%;
  background:var(--tk-white-a550); border:0; box-shadow:inset 0 0 0 1px rgba(10,10,10,.12), 0 6px 16px -8px rgba(10,10,10,.45);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); position:relative; z-index:2;
}
:root[data-mode="dark"]:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-motion{background:var(--tk-white-a060); box-shadow:inset 0 0 0 1px var(--tk-white-a160)}
:root:not([data-theme="classic"]):not([data-posts="off"]) #signin .auth-motion .auth-motion__l{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
