:root {
  --bg: #0d0d12;
  --panel: #16161f;
  --panel-2: #1e1e2a;
  --line: #2a2a38;
  --text: #f2f2f7;
  --muted: #9a9aae;
  --accent: #b46cff;
  --accent-2: #ff5fa2;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 16px;
  --side: 220px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }

/* ---------- sidebar ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--panel);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; z-index: 10; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; padding: 0 8px 22px; }
/* The logo's black background blends into the dark page (screen blending). */
.logo-mark { height: 30px; width: auto; display: block; mix-blend-mode: screen; }
nav { display: flex; flex-direction: column; gap: 4px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
nav a:hover { background: var(--panel-2); color: var(--text); }
nav a.active { background: var(--panel-2); color: var(--text); }
nav a.active .ico { color: var(--accent); }
.ico { width: 22px; text-align: center; }
.creator-only { display: none !important; }
body.creator .creator-only { display: flex !important; }
.account { margin-top: auto; font-size: 13px; color: var(--muted); padding: 8px; }
.account .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.linkbtn { background: none; border: 0; color: var(--accent); padding: 0; }

main { margin-left: var(--side); min-height: 100vh; }
body.locked .sidebar { display: none; }
body.locked main { margin-left: 0; padding-bottom: 0; }

/* ---------- explore ---------- */
.page { padding: 28px 32px 60px; max-width: 1280px; margin: 0 auto; }
.page h1 { font-size: 26px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search { flex: 1; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; outline: none; }
.search:focus { border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--panel-2);
  border: 1px solid var(--line); transition: transform .15s ease, border-color .15s; display: block; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card img, .card .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; font-size: 56px; font-weight: 800; background: var(--grad); }
.card .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.35) 45%, transparent 70%); }
.card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.card .name { font-weight: 800; font-size: 16px; }
.card .intro { font-size: 12.5px; color: #d6d6e2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.card .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.card .tags span { font-size: 10.5px; background: rgba(255,255,255,.14); padding: 2px 7px; border-radius: 999px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11px; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 999px; }
.empty { text-align: center; color: var(--muted); padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 42px; margin-bottom: 8px; }

/* ---------- buttons / forms ---------- */
.btn { background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: #3a1a24; color: #ff8aa8; border: 1px solid #5a2433; }
.btn.small { padding: 7px 14px; font-size: 13px; }

.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin: -2px 0 8px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; resize: vertical; }
.select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.count { text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }
.avatar-pick { display: flex; align-items: center; gap: 18px; }
.avatar-pick .circle { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--panel-2);
  border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 30px; cursor: pointer; flex: none; }
.avatar-pick .circle img { width: 100%; height: 100%; object-fit: cover; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.pill.on { border-color: var(--accent); color: var(--text); background: rgba(180,108,255,.15); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.preview { position: sticky; top: 24px; }
.preview .card { pointer-events: none; }
.preview h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- auth ---------- */
.auth { max-width: 400px; margin: 10vh auto; }
.auth .form { gap: 16px; }
.auth h1 { text-align: center; }
.err { color: #ff8aa8; font-size: 13.5px; min-height: 18px; }

/* ---------- chat list ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.row:hover { border-color: var(--accent); }
.row .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; }
.row .av img, .row .av .noimg { width: 100%; height: 100%; object-fit: cover; font-size: 22px; }
.row .txt { min-width: 0; flex: 1; }
.row .txt b { display: block; }
.row .txt span { color: var(--muted); font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .actions { display: flex; gap: 6px; }

/* ---------- chat ---------- */
.chat { position: relative; height: 100vh; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
.chat-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; filter: blur(28px) brightness(.35); transform: scale(1.15); z-index: 0; }
.chat > *:not(.chat-bg) { position: relative; z-index: 1; }
.chat > .chat-head { z-index: 10; } /* keeps the New chat menu above the messages */
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(13,13,18,.6); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.chat-head .av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; }
.chat-head .av img, .chat-head .av .noimg { width: 100%; height: 100%; object-fit: cover; font-size: 18px; }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who b { display: block; }
.chat-head .who span { font-size: 12.5px; color: var(--muted); }
.back { background: none; border: 0; color: var(--text); font-size: 22px; padding: 0 6px 0 0; }
.msgs { flex: 1; overflow-y: auto; padding: 24px 20px 12px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; width: 100%; margin: 0 auto; }
.intro-card { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 auto 10px; max-width: 520px; }
.intro-card .av { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 10px; border: 2px solid rgba(255,255,255,.15); }
.intro-card .av img, .intro-card .av .noimg { width: 100%; height: 100%; object-fit: cover; font-size: 34px; }
.ai-note { font-size: 12px; color: var(--muted); opacity: .8; margin: 0 0 8px; }
.intro-card h2 { color: var(--text); margin: 0 0 4px; font-size: 20px; }
.msg { max-width: 100%; padding: 11px 15px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.msg.assistant { background: rgba(30,30,42,.88); border: 1px solid rgba(255,255,255,.06); border-top-left-radius: 6px; }
.msg.user { background: var(--grad); border-top-right-radius: 6px; }
.msg em { color: #b9b9cc; font-style: italic; }
.msg.user em { color: rgba(255,255,255,.82); }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.composer { padding: 12px 20px 20px; max-width: 860px; width: 100%; margin: 0 auto; }
.composer form { display: flex; gap: 10px; align-items: flex-end; background: rgba(22,22,31,.92); border: 1px solid var(--line); border-radius: 24px; padding: 8px 8px 8px 18px; }
.composer textarea { flex: 1; background: none; border: 0; outline: none; resize: none; max-height: 160px; padding: 8px 0; }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 18px; flex: none; }
.send:disabled { opacity: .4; }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
#toast.show { opacity: 1; }

.as { font-weight: 500; font-size: 12px; color: var(--accent); margin-left: 4px; }
.as-wrap { position: relative; }
.as-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; min-width: 240px; display: flex; flex-direction: column; gap: 2px; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.as-menu[hidden] { display: none; }
.as-menu button, .as-menu a { background: none; border: 0; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 10px; }
.as-menu button:hover, .as-menu a:hover { background: var(--panel-2); }
.as-menu button.on { color: var(--accent); font-weight: 700; }
.as-menu a { color: var(--accent); }
.as-hint { font-size: 12px; color: var(--muted); padding: 4px 10px 8px; }
.support { background: #2a1838; border: 1px solid #5b3a80; border-radius: 16px; padding: 12px 16px; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.support[hidden] { display: none; }
.support a { color: #d9b8ff; text-decoration: underline; }
.support .linkbtn { display: block; margin-top: 6px; }
.form h2 { font-size: 18px; }

.chat-layout { display: flex; height: 100vh; }
.chat-layout .chat { flex: 1; min-width: 0; }
.chatlog { width: 280px; flex: none; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.chatlog-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 10px; }
.chatlog { display: none; }
.chatlog.open { display: flex; }
.logbtn { margin-left: 8px; }
.logbtn.on { border-color: var(--accent); }
.lognone { color: var(--muted); text-align: center; padding: 40px 12px; font-size: 14px; }
#loglist { overflow-y: auto; padding: 0 8px 16px; display: flex; flex-direction: column; gap: 4px; }
.logitem { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; }
.logitem:hover { background: var(--panel-2); }
.logitem.on { background: var(--panel-2); border-color: var(--accent); }
.logtop { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.logtop span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.loglast { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-head { gap: 10px; }

.msgrow { position: relative; display: flex; align-items: center; gap: 6px; max-width: 80%; }
.msgrow.assistant { align-self: flex-start; }
.msgrow.user { align-self: flex-end; flex-direction: row-reverse; }
.dotwrap { position: relative; display: inline-flex; flex: none; }
.dots { background: transparent; border: 0; outline: none; color: var(--muted); font-size: 18px; line-height: 1;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; opacity: 0;
  transition: opacity .15s, background .15s, color .15s; }
.msgrow:hover .dots, .dots.open, .dots:focus-visible { opacity: 1; }
.dots:hover, .dots.open { background: rgba(255,255,255,.08); color: var(--text); }
.dots:focus-visible { box-shadow: 0 0 0 2px rgba(180,108,255,.5); }
.msgmenu { position: absolute; top: calc(100% + 6px); z-index: 15; min-width: 150px; padding: 5px;
  background: rgba(22,22,31,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.45);
  animation: menuIn .12s ease-out; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
.msgrow.assistant .msgmenu { left: 0; }
.msgrow.user .msgmenu { right: 0; }
.msgmenu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0;
  color: var(--text); font-size: 14px; font-weight: 600; padding: 9px 12px; border-radius: 10px; text-align: left; white-space: nowrap; }
.msgmenu button:hover { background: rgba(180,108,255,.14); }
.msgmenu .mi { display: grid; place-items: center; color: var(--accent); }
.msgmenu button.danger .mi { color: var(--accent-2); }
.msgmenu button.danger:hover { background: rgba(255,95,162,.14); }

.castrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.castrow input { flex: 1; min-width: 160px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; outline: none; }
.castrow input:focus { border-color: var(--accent); }
.pill.small { padding: 6px 12px; font-size: 13px; }
.field[hidden] { display: none; }
#castrows:empty { display: none; }
#ncast { margin-top: 2px; }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .sidebar { inset: auto 0 0 0; width: auto; height: 64px; flex-direction: row; padding: 0; border-right: 0; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .logo, .account { display: none; }
  nav { flex-direction: row; flex: 1; justify-content: space-around; }
  nav a { flex-direction: column; gap: 0; font-size: 11px; padding: 8px 10px; }
  main { margin-left: 0; padding-bottom: 64px; }
  .page { padding: 20px 16px 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-wrap { grid-template-columns: 1fr; }
  .preview { display: none; }
  body.in-chat .sidebar { display: none; }
  body.in-chat main { padding-bottom: 0; }
  .chat { height: 100dvh; }
  .chat-layout { height: 100dvh; }
  .chatlog { display: flex; }
  .chatlog { position: fixed; inset: 0 0 0 auto; width: 82vw; max-width: 320px; z-index: 30; transform: translateX(100%); transition: transform .2s; box-shadow: -10px 0 30px rgba(0,0,0,.5); }
  .chatlog.open { transform: none; }
  .msgrow { max-width: 92%; }
  .dots { opacity: .55; }
}

/* ---------- sign in / 18+ ---------- */
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 22px; margin-bottom: 32px; }
.center { text-align: center; }
.tabs { display: flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); font-weight: 700; padding: 9px; border-radius: 999px; }
.tabs button.on { background: var(--grad); color: #fff; }
.social { display: flex; flex-direction: column; gap: 10px; }
.social-btn { justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* ---------- business banner ---------- */
.bizbar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-left: var(--side);
  padding: 9px 18px; font-size: 13.5px; color: #e9e2ff; text-align: center;
  background: linear-gradient(90deg, rgba(180,108,255,.16), rgba(255,95,162,.16)); border-bottom: 1px solid var(--line); }
.bizbar:hover { background: linear-gradient(90deg, rgba(180,108,255,.26), rgba(255,95,162,.26)); }
.bizbar-cta { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
body.locked .bizbar, body.in-chat .bizbar { display: none; }

/* ---------- for business page ---------- */
.biz { max-width: 980px; }
.biz section { margin-bottom: 56px; }
.biz-hero { text-align: center; padding: 40px 0 8px; }
.biz-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.biz-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.biz-hero p { color: #cfcfe0; font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0 auto 26px; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.biz-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.biz-card h3 { margin: 12px 0 6px; font-size: 17px; }
.biz-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14.5px; }
.biz-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; }
.biz-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.biz-split h2, .biz-contact h2 { font-size: 22px; margin: 0 0 14px; }
.biz-list, .biz-steps { margin: 0; padding-left: 20px; color: #d6d6e4; line-height: 1.9; }
.biz-steps li { margin-bottom: 8px; line-height: 1.55; }
.biz-steps b { color: var(--text); }
.biz-contact { max-width: 640px; margin: 0 auto; }
.biz-contact .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { color: var(--muted); font-weight: 500; }
.biz-thanks { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 20px; }
.biz-thanks .biz-ico { margin: 0 auto 10px; }
.biz-foot { text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .desk-word { display: none; }
  nav a { padding: 8px 4px; min-width: 0; }
  .bizbar { margin-left: 0; font-size: 12.5px; padding: 8px 12px; gap: 6px; }
  .biz-grid, .biz-split, .biz-contact .two { grid-template-columns: 1fr; }
  .biz-hero { padding-top: 16px; }
}

/* sign-in boxes: no empty gap where an error message would go */
.auth .err:empty { display: none; }
.auth h1 { margin-bottom: 0; }

/* sign-in screens sit in the exact middle of the screen */
.page.auth { margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: calc(24px + 8vh); box-sizing: border-box; }

/* ---------- editing your own message (creators) ---------- */
.msgrow:has(.editbox) { width: min(560px, 80%); }
.editbox { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.editbox textarea { width: 100%; box-sizing: border-box; resize: none; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--accent); border-radius: 14px; padding: 11px 14px; font: inherit; line-height: 1.5; outline: none; }
.editbtns { display: flex; gap: 8px; justify-content: flex-end; }
.msg[hidden], .dotwrap[hidden] { display: none !important; }

/* ---------- personas: "New persona" button ---------- */
.newpersona { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px;
  padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line); background: none; color: var(--muted);
  font-weight: 700; font-size: 15px; }
.newpersona:hover { border-color: var(--accent); color: var(--text); background: var(--panel); }
.newpersona .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 16px; }
.newpersona[hidden], .form[hidden] { display: none; }

/* ---------- settings ---------- */
.acctlinks { display: flex; gap: 14px; }
.settings { max-width: 760px; }
.setcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setrow b { display: block; margin-bottom: 3px; }
.setrow span { color: var(--muted); font-size: 14px; }
.danger-zone { border-color: rgba(255,95,162,.35); }
.btn.danger.solid { background: #e0457b; color: #fff; border-color: transparent; }
.mobile-signout, .mobile-only { display: none !important; }
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; }
.modal { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal h2 { margin: 0 0 8px; font-size: 20px; }
.modal p { margin: 0 0 14px; color: #d6d6e4; line-height: 1.5; }
.modal-btns { display: flex; gap: 10px; justify-content: flex-end; }
.modal .err:empty { display: none; }
@media (max-width: 820px) {
  .mobile-only { display: flex !important; }
  nav a { white-space: nowrap; font-size: 10.5px; }
  .mobile-signout { display: inline-block !important; margin-top: 8px; }
  .setrow { flex-direction: column; align-items: flex-start; }
}

/* Empty-page icon: the Everlong logo, blended into the dark page like in the sidebar. */
.empty-logo { display: block; height: 44px; width: auto; margin: 0 auto 12px; mix-blend-mode: screen; filter: grayscale(1) brightness(1.9); }

/* ---------- forgot / reset password ---------- */
.linkbtn.forgot { display: block; margin: 8px 0 0 auto; font-size: 13px; }
.auth .ok { color: #8ee6b0; font-size: 13.5px; line-height: 1.45; }
.auth .ok:empty { display: none; }
