/* Your AI Edit: login window and account menu (auth/auth.js).
   Self-contained (works on index.html and admin.html), same look as the app: black, white lines, pill buttons, Geist. */
.yae-acct { position: relative; display: inline-flex; align-items: center; margin-left: 12px; }
.yae-pill { height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: #fff; background: none; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.yae-pill:hover { border-color: #fff; background: #fff; color: #000; }
.yae-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: #111; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; display: grid; place-items: center; transition: border-color .15s; }
.yae-avatar:hover { border-color: #fff; }
.yae-menu { position: absolute; top: 42px; right: 0; min-width: 220px; background: #0b0b0b; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px; z-index: 70; box-shadow: 0 12px 40px rgba(0,0,0,.6); animation: yaeIn .18s ease both; }
.yae-menu-email { padding: 8px 10px 10px; font-size: 12px; color: rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yae-menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 4px; font-size: 14px; color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; }
.yae-menu-item:hover { background: rgba(255,255,255,.08); }

.yae-modal { position: fixed; inset: 0; z-index: 1010; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.75); animation: yaeFade .2s ease both; font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff; }
.yae-box { position: relative; width: min(400px, 100%); background: #0b0b0b; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 28px 26px 22px; animation: yaeIn .3s cubic-bezier(.2,.7,.2,1) both; }
.yae-box h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.yae-sub { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.6); }
.yae-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.6); background: none; border: 0; cursor: pointer; }
.yae-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.yae-field { margin-bottom: 14px; }
.yae-field label { display: block; margin-bottom: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.yae-input { position: relative; }
.yae-input input { width: 100%; height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: #000; color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .15s; box-sizing: border-box; }
.yae-input input:focus { border-color: #fff; }
.yae-input input[type="password"], .yae-input input[name="password"] { padding-right: 46px; }
.yae-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.45); background: none; border: 0; cursor: pointer; }
.yae-eye:hover, .yae-eye.on { color: #fff; }
.yae-err { margin: 2px 0 12px; font-size: 13px; color: #ff8a80; }
.yae-actions { display: flex; margin-top: 18px; }
.yae-btn { flex: 1; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.85); font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; background: none; color: #fff; transition: background .16s, color .16s, transform .16s; }
.yae-btn.solid { background: #fff; color: #000; }
.yae-btn.solid:hover { background: rgba(255,255,255,.86); }
.yae-btn:active { transform: scale(.98); }
.yae-btn.busy { opacity: .6; cursor: progress; }
.yae-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.55); }
.yae-link { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.7); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.yae-link:hover { color: #fff; text-decoration-color: #fff; }
.yae-link.strong { color: #fff; }
.yae-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1020; background: #fff; color: #000; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; animation: yaeIn .25s ease both; transition: opacity .4s; }
.yae-toast.out { opacity: 0; }
@keyframes yaeFade { from { opacity: 0; } }
@keyframes yaeIn { from { opacity: 0; transform: translateY(8px); } }
.yae-toast { animation-name: yaeToastIn; }
@keyframes yaeToastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .yae-modal, .yae-box, .yae-menu, .yae-toast { animation: none; } }

/* the wall (gate 'app'): the whole app is for members */
html.yae-walled, html.yae-walled body { overflow: hidden; }
.yae-wall { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: #000; color: #fff; font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; animation: yaeFade .25s ease both; }
.yae-wall-box { width: min(440px, 100%); text-align: center; animation: yaeIn .35s cubic-bezier(.2,.7,.2,1) both; }
.yae-wall h1 { margin: 0 0 10px; font-size: clamp(30px, 6vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.yae-wall p { margin: 0 0 26px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.6); }
.yae-wall .yae-wall-wait { color: rgba(255,255,255,.4); }
.yae-wall-btns { display: flex; gap: 10px; }
.yae-wall-btns .yae-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; background: none; }
.yae-wall-btns .yae-btn.solid { background: #fff; color: #000; }
.yae-wall-btns .yae-btn:not(.solid):hover { border-color: #fff; background: rgba(255,255,255,.06); }
.yae-wall .yae-wall-foot { margin: 22px 0 0; font-size: 13px; color: rgba(255,255,255,.4); }
.yae-wall-foot .yae-link { font-size: 13px; }
@media (max-width: 420px) { .yae-wall-btns { flex-direction: column; } }
