/*
 * New design: sign-in, sign-up and the other screens before the dashboard (views/v2/auth,
 * layout views/v2/layouts/auth.ejs). A black panel on the left with the animated story
 * (scripts/v2-auth.js), the form on sand on the right; under 900px only the logo strip shows.
 * Ported from mockups/dashboard-redesign/auth (draft "B2 · Split, animated").
 */
body.auth-v2 {
  --sand: #EFEAE3; --sand-2: #E6DFD5; --cream: #FFFBF4; --paper: #FFFFFF;
  --ink: #0B0B0B; --ink-2: #2B2925; --muted: #7B7369; --faint: #A69E93;
  --line: rgba(0,0,0,.09); --line-2: rgba(0,0,0,.16);
  --orange: #FE330A; --orange-ink: #D92A06; --lilac: #C4B1F9;
  --red: #B42318; --red-soft: #FBE1DD; --green: #1D7A45; --green-soft: #DCEFDF;
  --font: "DM Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--sand); min-height: 100vh; margin: 0; -webkit-font-smoothing: antialiased;
}
body.auth-v2 a { color: inherit; }
body.auth-v2 button { font-family: inherit; }

/* ---------- shared form parts ---------- */
.f-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.f-title { font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.f-sub { color: var(--muted); margin: 8px 0 0; }
.f-body { margin-top: 26px; display: grid; gap: 14px; }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; }
.a-btn:hover { border-color: var(--ink); }
.a-btn i { font-size: 18px; }
.a-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); width: 100%; }
.a-btn.primary:hover { background: #000; transform: translateY(-1px); }
.a-btn.accent { background: var(--orange); border-color: var(--orange); color: #fff; width: 100%; }
.a-btn.accent:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.field label a { font-weight: 500; color: var(--muted); text-decoration: none; font-size: 13px; }
.field label a:hover { color: var(--ink); text-decoration: underline; }
.in { position: relative; }
.in input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 14px; font: 500 15px var(--font); color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
.in input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,11,.08); }
.in input::placeholder { color: var(--faint); font-weight: 400; }
.in .eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.in .eye:hover { color: var(--ink); background: var(--sand); }
.hint { font-size: 12.5px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; }
.a-alert i { font-size: 18px; line-height: 1.2; }
.a-alert.ok { background: var(--green-soft); color: var(--green); }
.foot { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { font-size: 12.5px; color: var(--faint); text-align: center; margin: 2px 0 0; }
.legal a { color: var(--muted); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; min-width: 0; height: 56px; text-align: center; font: 600 22px var(--mono); border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); outline: none; }
.otp input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11,11,11,.08); }
.alt-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.alt-links a { color: var(--muted); text-decoration: none; }
.alt-links a:hover { color: var(--ink); text-decoration: underline; }
.mailart { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.mailart.o { background: var(--orange); }
.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); }
.who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.who b { display: block; font-size: 14.5px; }
.who small { color: var(--muted); font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; }
.logo { height: 26px; display: block; }


/* ---------- Draft B: split ---------- */
.B .stage { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.B .side { background: #000; color: #fff; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.B .side::after { content: ""; position: absolute; width: 620px; height: 620px; left: -200px; bottom: -340px; border-radius: 50%; background: radial-gradient(circle, rgba(254,51,10,.85) 0%, rgba(254,51,10,0) 65%); filter: blur(40px); pointer-events: none; }
.B .side > * { position: relative; z-index: 1; }
.B .pitch h2 { font-size: 44px; line-height: 1.04; letter-spacing: -.045em; font-weight: 600; margin: 0 0 14px; max-width: 13ch; }
.B .pitch p { color: rgba(255,255,255,.6); margin: 0; max-width: 38ch; }
@keyframes rise { to { opacity: 1; transform: none; } }
.B .side .quiet { color: rgba(255,255,255,.4); font-size: 13px; }
.B .side .logo { align-self: flex-start; }
.B .main { display: grid; place-items: center; padding: 48px 24px 96px; }
.B .col { width: 100%; max-width: 400px; }
.B .f-title { font-size: 32px; }
.B .main .logo-sm { display: none; }
@media (max-width: 900px) {
  .B .stage { grid-template-columns: 1fr; }
  .B .side { padding: 22px 20px; }
  .B .pitch, .B .side .quiet { display: none; }
  .B .main { padding: 32px 16px 96px; align-items: start; }
}

/* ---------- Draft B2: split with an animated panel (layout rules come from .B) ---------- */
.B2 .side { padding-top: 40px; padding-bottom: 36px; }
.B2 .pitch h2 { font-size: 40px; margin-bottom: 12px; }
.B2 .pitch p { max-width: 50ch; }
.b2art { margin-top: 26px; --h: clamp(270px, calc(100vh - 404px), 420px); }
.b2-stage { position: relative; width: min(100%, calc(var(--h) * 540 / 420)); aspect-ratio: 540 / 420; }
/* A fixed 540x420 drawing, zoomed to the stage by the controller (--k). */
.b2-canvas { position: absolute; left: 0; top: 0; width: 540px; height: 420px; zoom: var(--k, 1); color: var(--ink); line-height: 1.3; pointer-events: none; user-select: none; }
.b2-canvas * { margin: 0; }
.b2-canvas i { font-style: normal; }
.b2-ico { width: 24px; height: 24px; border-radius: 7px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.b2-url { font: 500 10px/1.2 var(--mono); letter-spacing: -.02em; color: var(--ink-2); white-space: nowrap; }
.b2-qr svg { display: block; width: 100%; height: 100%; }

/* printed recipe card */
.b2-card { position: absolute; left: 8px; top: 58px; width: 244px; height: 304px; padding: 18px 18px 16px; border-radius: 14px; background: var(--cream); display: flex; flex-direction: column; opacity: 0; transform: rotate(-5deg); }
.b2-card-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.b2-card-h .b2-ico { width: 20px; height: 20px; border-radius: 6px; font-size: 12px; }
.b2-card-h small { margin-left: auto; font: 500 10px var(--mono); color: var(--faint); }
.b2-card h3 { font-size: 26px; line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin-top: 18px; }
.b2-card-m { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.b2-card ul { list-style: none; padding: 10px 0 0; margin-top: 12px; border-top: 1px dashed var(--line-2); display: grid; gap: 4px; font-size: 11.5px; color: var(--ink-2); }
.b2-card ul b { font-weight: 600; display: inline-block; width: 46px; color: var(--ink); }
.b2-card-f { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.b2-card-f p { font-size: 12.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.b2-card-f p i { display: block; font-size: 16px; color: var(--orange); margin-top: 4px; }
.b2-card-f .b2-qr { width: 84px; height: 84px; flex: none; }

/* phone */
.b2-phone { position: absolute; left: 162px; top: 4px; width: 216px; height: 412px; border-radius: 40px; background: #1B1916; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 0 0 1px #000; opacity: 0; }
.b2-screen { position: absolute; inset: 7px; border-radius: 33px; overflow: hidden; background: var(--cream); isolation: isolate; }
.b2-island { position: absolute; left: 50%; top: 9px; width: 56px; height: 16px; margin-left: -28px; border-radius: 10px; background: #000; z-index: 9; }
.b2-scr { position: absolute; inset: 0; opacity: 0; background: var(--cream); }

/* camera */
.b2-cam { background: #2A251F; opacity: 1; }
.b2-sheet { position: absolute; left: -24px; top: 46px; width: 250px; height: 400px; background: var(--cream); border-radius: 10px 10px 0 0; }
.b2-sheet b { position: absolute; left: 40px; top: 6px; font-size: 27px; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.b2-sheet .b2-ln { position: absolute; left: 40px; height: 5px; border-radius: 3px; background: var(--sand-2); }
.b2-sheet .b2-qr { position: absolute; left: 63px; top: 84px; width: 124px; height: 124px; }
.b2-sheet span { position: absolute; left: 0; right: 0; top: 232px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.b2-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.34) 0, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 62%, rgba(0,0,0,.72) 86%); }
.b2-frame { position: absolute; left: 27px; top: 118px; width: 148px; height: 148px; opacity: 0; }
.b2-frame svg { position: absolute; inset: 0; }
.b2-sweep-w { position: absolute; inset: 5px; border-radius: 10px; overflow: hidden; }
.b2-sweep { position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(180deg, rgba(254,51,10,0), rgba(254,51,10,.38)); border-bottom: 2px solid var(--orange); opacity: 0; }
.b2-detect { position: absolute; left: 32px; top: 123px; width: 138px; height: 138px; border-radius: 12px; border: 2.5px solid var(--orange); background: rgba(254,51,10,.1); opacity: 0; }
.b2-detect i { position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 14px; box-shadow: 0 0 0 2px var(--cream); }
.b2-cambar { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 30px; }
.b2-cambar b { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle, #fff 0 58%, transparent 60%); }
.b2-cambar span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; font-size: 13px; }
.b2-banner { position: absolute; left: 7px; right: 7px; top: 32px; z-index: 6; padding: 9px 10px 10px; border-radius: 17px; background: var(--paper); box-shadow: 0 10px 24px -6px rgba(0,0,0,.5); display: grid; gap: 6px; opacity: 0; }
.b2-banner div { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.b2-banner .b2-ico { width: 22px; height: 22px; font-size: 13px; }
.b2-banner small { margin-left: auto; font-size: 10px; font-weight: 500; color: var(--faint); }

/* touch */
.b2-tap { position: absolute; z-index: 8; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(11,11,11,.22); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.25); opacity: 0; }
.b2-ring { position: absolute; z-index: 7; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; }
.b2-t1 { left: 128px; top: 62px; } .b2-t2 { left: 104px; top: 252px; }

/* opening */
.b2-splash { z-index: 5; display: grid; place-content: center; justify-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.b2-splash .b2-ico { width: 58px; height: 58px; border-radius: 18px; font-size: 30px; }
.b2-splash u { display: block; width: 62px; height: 3px; border-radius: 3px; background: var(--sand-2); overflow: hidden; }
.b2-splash u b { display: block; height: 100%; border-radius: 3px; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }

/* app: recipe */
.b2-hero { position: absolute; left: 0; right: 0; top: 0; height: 152px; background: var(--lilac); }
.b2-hero svg { position: absolute; left: 0; bottom: 0; width: 100%; }
.b2-rb { position: absolute; top: 34px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-size: 15px; }
.b2-rbody { position: absolute; left: 14px; right: 14px; top: 164px; }
.b2-eb { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--orange); }
.b2-rbody h4 { font-size: 21px; line-height: 1.1; letter-spacing: -.04em; font-weight: 600; margin-top: 3px; }
.b2-rbody p { font-size: 10.5px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.b2-rows { margin-top: 10px; }
.b2-rows div { display: flex; align-items: center; gap: 8px; height: 28px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 500; }
.b2-rows div > i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.b2-rows div em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.b2-cta { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 40px; border-radius: 99px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.b2-cta i { font-size: 15px; }
.b2-cta.k { background: var(--ink); }

/* chat */
.b2-chat-h { position: absolute; left: 0; right: 0; top: 0; height: 80px; border-bottom: 1px solid var(--line); display: grid; justify-items: center; align-content: end; gap: 2px; padding-bottom: 7px; font-size: 10px; font-weight: 600; }
.b2-chat-h span { width: 26px; height: 26px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; }
.b2-chat-h > i { position: absolute; left: 8px; bottom: 20px; font-size: 20px; color: var(--muted); }
.b2-msgs { position: absolute; left: 9px; right: 9px; top: 92px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.b2-msg { max-width: 150px; padding: 7px 10px; border-radius: 15px 15px 15px 5px; background: var(--sand-2); font-size: 11px; line-height: 1.3; transform-origin: 0 100%; }
.b2-msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 15px 15px 5px 15px; }
.b2-link { width: 178px; border-radius: 15px 15px 15px 5px; background: var(--paper); border: 1px solid var(--line-2); overflow: hidden; transform-origin: 0 100%; }
.b2-link-img { height: 74px; background: var(--orange); position: relative; overflow: hidden; color: #fff; padding: 10px 12px; font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.b2-link-img small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .85; margin-bottom: 5px; }
.b2-link-img::after, .b2-promo-hero::after { content: ""; position: absolute; right: -22px; top: -26px; width: 84px; height: 84px; border-radius: 50%; background: var(--lilac); }
.b2-link-img::before, .b2-promo-hero::before { content: ""; position: absolute; right: 26px; bottom: -30px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.b2-link-t { padding: 8px 10px 9px; display: grid; gap: 3px; }
.b2-link-t b { font-size: 11.5px; font-weight: 600; letter-spacing: -.01em; }
.b2-link-t .b2-url { font-size: 9px; color: var(--muted); }
.b2-chat-in { position: absolute; left: 9px; right: 9px; bottom: 12px; height: 30px; border-radius: 99px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 12px; font-size: 11px; color: var(--faint); }
.b2-chat-in i { width: 22px; height: 22px; border-radius: 50%; background: var(--sand-2); color: var(--muted); display: grid; place-items: center; font-size: 13px; }

/* app: promo */
.b2-promo-top { position: absolute; left: 14px; right: 14px; top: 34px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.b2-promo-top .b2-ico { width: 20px; height: 20px; border-radius: 6px; font-size: 12px; }
.b2-promo-top > i { margin-left: auto; font-size: 16px; }
.b2-promo-hero { position: absolute; left: 10px; right: 10px; top: 64px; height: 122px; border-radius: 18px; background: var(--orange); color: #fff; overflow: hidden; padding: 16px 14px; }
.b2-promo-hero small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.b2-promo-hero b { display: block; font-size: 34px; line-height: 1; letter-spacing: -.045em; font-weight: 700; margin-top: 8px; }
.b2-promo-hero span { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; height: 20px; padding: 0 8px 0 6px; border-radius: 99px; background: rgba(0,0,0,.2); font-size: 10px; font-weight: 600; }
.b2-items { position: absolute; left: 14px; right: 14px; top: 198px; }
.b2-items div { display: flex; align-items: center; gap: 9px; height: 40px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 600; }
.b2-items div:first-child { border-top: 0; }
.b2-items div > i { width: 26px; height: 26px; border-radius: 8px; background: var(--lilac); flex: none; }
.b2-items div:nth-child(2) > i { background: var(--sand-2); } .b2-items div:nth-child(3) > i { background: var(--green-soft); }
.b2-items div em { margin-left: auto; font-style: normal; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }

/* analytics card */
.b2-an-pos { position: absolute; left: 196px; top: 0; bottom: 0; width: 344px; display: flex; align-items: center; }
.b2-an { width: 100%; padding: 18px 20px 20px; border-radius: 22px; background: var(--cream); opacity: 0; }
.b2-an-h { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.b2-an-h span { display: flex; align-items: center; gap: 6px; }
.b2-an-h span i { color: var(--orange); font-size: 15px; }
.b2-an-h em { font-style: normal; font-size: 11px; font-weight: 500; height: 22px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--line-2); display: flex; align-items: center; color: var(--ink-2); }
.b2-an-n { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.b2-an-n b { font-size: 46px; line-height: 1.08; letter-spacing: -.05em; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 124px; }
.b2-chip { height: 22px; padding: 0 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; margin-top: 8px; }
.b2-chart { position: relative; height: 86px; margin-top: 10px; }
.b2-chart svg { position: absolute; left: 0; top: 0; width: 304px; height: 86px; overflow: visible; }
.b2-rev { position: absolute; inset: 0 0 0 0; overflow: hidden; }
.b2-rev-in { position: absolute; inset: 0; }
.b2-dot { position: absolute; left: 296px; top: 12px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--cream), 0 0 0 7px rgba(254,51,10,.16); opacity: 0; }
.b2-axis { display: flex; justify-content: space-between; margin-top: 5px; font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.b2-fun { margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.b2-fun div { display: grid; grid-template-columns: 66px 1fr 46px; align-items: center; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.b2-fun div > i { height: 10px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.b2-fun div > i b { display: block; height: 100%; border-radius: 99px; background: var(--orange); transform-origin: 0 50%; }
.b2-fun div:nth-child(2) > i b { background: var(--lilac); } .b2-fun div:nth-child(3) > i b { background: var(--ink); }
.b2-fun div em { font-style: normal; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.b2-spark { position: absolute; left: 150px; top: 206px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(254,51,10,.25); opacity: 0; z-index: 3; }

/* caption and scene progress */
.b2-cap { display: flex; align-items: center; gap: 14px; margin-top: 16px; height: 22px; }
.b2-dots { display: flex; gap: 5px; flex: none; }
.b2-dots i { width: 26px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.b2-dots b { display: block; height: 100%; border-radius: 3px; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.b2-caps { position: relative; flex: 1; height: 22px; }
.b2-caps span { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; color: rgba(255,255,255,.88); opacity: 0; }
@media (max-width: 900px) { .B2 .side { padding: 22px 20px; } .b2art { display: none; } }


/* ---------- platform additions ---------- */
.f-body form { display: grid; gap: 14px; }
.f-body form.inline { display: inline; }
.a-btn-link { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; text-decoration: none; font-size: 14px; }
.a-btn-link:hover { color: var(--ink); text-decoration: underline; }
.a-btn-link:disabled { cursor: not-allowed; text-decoration: none; color: var(--faint); }
.a-btn.wide { width: 100%; }
.a-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.cf-turnstile { min-height: 65px; }
.a-alert a { color: inherit; font-weight: 600; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; text-align: left; }
.choice:hover { border-color: var(--ink); }
.choice > i:first-child { width: 38px; height: 38px; border-radius: 11px; background: var(--sand); display: grid; place-items: center; font-size: 19px; flex: none; }
.choice b { display: block; font-size: 15px; }
.choice small { color: var(--muted); font-size: 13px; }
.choice .go { margin-left: auto; color: var(--faint); font-size: 18px; }
details.recover summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 14px; text-align: center; }
details.recover summary::-webkit-details-marker { display: none; }
details.recover summary:hover { color: var(--ink); text-decoration: underline; }
details.recover[open] summary { margin-bottom: 12px; }
.B .side .logo-link { align-self: flex-start; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.impersonation-banner + .stage { min-height: calc(100vh - 40px); }

/* ---------- Language menu (v2/partials/lang-switcher.ejs) ---------- */
.lang { position: relative; }
.lang-trigger { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper, #fff); color: var(--ink); font: 600 12.5px var(--font); letter-spacing: .02em; cursor: pointer; user-select: none; }
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { border-color: var(--ink); }
.lang-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-chevron { opacity: .6; transition: transform .15s; }
.lang[open] .lang-chevron { transform: rotate(180deg); }
.lang-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 232px; padding: 6px; border-radius: 16px; background: var(--paper, #fff); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -16px rgba(0,0,0,.28); margin: 0; }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; max-height: min(420px, 70vh); overflow-y: auto; }
.lang-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.lang-item:hover, .lang-item:focus-visible { background: var(--sand, #EFEAE3); outline: none; }
.lang-names { display: grid; line-height: 1.25; }
.lang-native { font-size: 14px; font-weight: 600; }
.lang-english { font-size: 12px; color: var(--muted); }
.lang-item.is-current .lang-native { color: var(--orange); }
.lang-tick { margin-left: auto; color: var(--orange); flex: none; }
/* On the sign-in screens the menu sits top right of the form side (top right of the page on phones). */
.auth-lang { position: absolute; top: 20px; right: 24px; z-index: 5; }
.B .stage { position: relative; }
@media (max-width: 900px) { .auth-lang { top: 16px; right: 16px; } .auth-lang .lang-trigger { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); } }

/* Onboarding (v2/onboarding/index.ejs): an optional label and a three-way choice. */
.field .opt { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.seg-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-field legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; font: 600 13.5px var(--font); color: var(--muted); text-align: center; transition: background .12s, color .12s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Authenticator setup (v2/account/mfa-setup.ejs). */
.mfa-qr { display: flex; justify-content: center; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.mfa-qr img { display: block; image-rendering: pixelated; }
.mfa-manual summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.mfa-manual summary:hover { color: var(--ink); }
.mfa-key { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper); }
.mfa-key code { flex: 1; font-size: 13px; word-break: break-all; letter-spacing: .04em; }
.mfa-key .eye { width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.mfa-key .eye:hover { color: var(--ink); background: var(--sand); }
.code-in { letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---- Korean -------------------------------------------------------------------------------
 * The same rules as the website (tolinku-korean.css in the WordPress theme), so the two read
 * alike. DM Sans stays first, so Latin text, numbers and brand names look as they do in every
 * other language; Pretendard (loaded by the layout only for Korean) draws the Hangul.
 * keep-all breaks lines at spaces, the way Korean is read, instead of inside a word (플랫|폼);
 * overflow-wrap keeps a long URL from escaping its box. Hangul is set with no tracking (the
 * negative tracking on headings is a Latin display trick) and a little more leading.
 */
html:lang(ko) body { --font: "DM Sans", "Pretendard Variable", Pretendard, system-ui, sans-serif; word-break: keep-all; overflow-wrap: break-word; }
html:lang(ko) body *:not(.mono):not(code):not(kbd) { letter-spacing: normal; }
html:lang(ko) body p, html:lang(ko) body li, html:lang(ko) body .hint, html:lang(ko) body small { line-height: 1.65; }
html:lang(ko) body h1, html:lang(ko) body h2, html:lang(ko) body h3 { line-height: 1.3; }
