/* Manthrix Account — design "1 · Standard" (owner's pick, 5 Dec 2026, from the live preview
   "Manthrix Account - 6 designs"). Big-company pattern: Microsoft-style sign-in card, one step
   at a time; Google/Microsoft-style account pages with a section menu (left on laptops, tabs on
   phones). Manthrix look: black, Syne headings, Plus Jakarta Sans text, red only for the main
   button. No inline styles anywhere (the CSP forbids them). */

@font-face { font-family: 'Syne'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/syne-v24-latin.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/plus-jakarta-sans-v12-latin.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #000; --surf: #0c0c0c; --line: #2c2c2c; --line2: #1d1d1d;
  --ink: #F5F3EE; --mute: rgba(245, 243, 238, .62); --dim: rgba(245, 243, 238, .5);
  --red: #F0303C; --red-h: #C72030; --ok: #3ecf8e; --warn: #f5b546; --bad: #ff8a92;
  --r: 8px; --rb: 4px;
  --fd: 'Syne', sans-serif; --fb: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--fb); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.is-loading .auth, .is-loading .acct { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 14px; height: 14px; stroke-width: 1.8; }
.ic.lg { width: 28px; height: 28px; }
.ic.xl { width: 40px; height: 40px; }
.logo { display: block; height: 20px; width: auto; }
h1 { font: 700 28px/1.15 var(--fd); letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance; }
h2 { font: 600 13px/1.4 var(--fb); color: var(--dim); margin: 0; padding: 16px 20px 6px; }
.sub { color: var(--mute); margin: 0 0 24px; overflow-wrap: anywhere; }
.fine { color: var(--dim); font-size: 13px; margin: 16px 0 0; }
.note { color: var(--dim); font-size: 13px; margin: 24px 0 0; }
.msg { min-height: 1.5em; margin: 16px 0 0; font-size: 14px; color: var(--mute); }
.msg:empty { min-height: 0; margin: 0; }
.msg.error { color: var(--bad); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
section { animation: rise .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ── Buttons, fields ── */
label { display: block; font-size: 13px; font-weight: 600; color: var(--mute); margin: 0 0 6px; }
input { width: 100%; height: 48px; padding: 0 14px; margin: 0 0 16px; background: #000; color: var(--ink); border: 1px solid var(--line); border-radius: var(--rb); font: 16px var(--fb); outline: none; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--dim); }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input.code { font: 600 24px/1 ui-monospace, Consolas, Menlo, monospace; letter-spacing: .5em; padding-left: 18px; }
.turnstile { margin: 0 0 16px; }
/* "I'm 18 or older" tick box (step-age) */
label.check { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
label.check input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--red); cursor: pointer; }
label.check input:focus { box-shadow: none; }
.turnstile:empty { margin: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 18px; border-radius: var(--rb); border: 0; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.btn.pri { background: var(--red); color: #fff; }
.btn.pri:hover { background: var(--red-h); }
.btn.sec { background: transparent; box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .28); }
.btn.sec:hover { box-shadow: inset 0 0 0 1px var(--ink); background: rgba(255, 255, 255, .04); }
.btn.ghost { background: none; color: var(--mute); margin-top: 8px; }
.btn.ghost:hover { color: var(--ink); }
.btn.inl { width: auto; height: 40px; font-size: 14px; }
.btn:disabled, .mini:disabled { opacity: .5; cursor: default; }
.or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 12px 0 8px; margin: 0 0 18px; background: none; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--mute); cursor: pointer; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: #555; }
.lnk { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.lnk:disabled { color: var(--dim); text-decoration: none; cursor: default; }
.mini { flex: none; height: 34px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: var(--rb); font-size: 13px; color: var(--mute); cursor: pointer; }
.mini:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }

/* ── Sign-in ── */
.auth { min-height: 100svh; display: flex; flex-direction: column; }
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.card { width: 100%; max-width: 440px; background: var(--surf); border: 1px solid var(--line); border-radius: var(--r); padding: 40px 40px 36px; }
.card-logo { height: 18px; margin: 0 0 28px; }
.pk-art { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: -8px 0 24px; }
.ticks li { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--mute); font-size: 14px; }
.auth-foot, .foot { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--dim); }
.auth-foot { justify-content: center; padding: 20px 16px 28px; }
.links { display: inline-flex; gap: 16px; }
.links a:hover { color: var(--ink); }

/* ── My account ── */
.top { position: sticky; top: 0; z-index: 5; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line2); }
.top-l { display: flex; align-items: center; gap: 12px; }
.top-label { font-weight: 600; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line); line-height: 20px; }
.me { position: relative; }
.av { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; background: #2a2a2a; color: var(--ink); font: 700 15px/1 var(--fd); display: grid; place-items: center; cursor: pointer; text-transform: uppercase; }
.av.big { width: 72px; height: 72px; font-size: 30px; margin: 0 auto 14px; background: linear-gradient(145deg, #3a3a3a, #1c1c1c); cursor: default; }
.me-menu { position: absolute; right: 0; top: 46px; width: 280px; padding: 18px; background: #111; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .6); }
.me-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.me-name:empty { display: none; }
.me-email { margin: 0 0 14px; color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }
.me-menu .btn { height: 40px; font-size: 14px; }
.body { display: grid; grid-template-columns: 260px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
.nav { position: sticky; top: 64px; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 24px 16px; height: calc(100svh - 64px); }
.nav a { display: flex; align-items: center; gap: 14px; height: 44px; margin-left: -16px; padding: 0 16px 0 32px; border-radius: 0 99px 99px 0; color: var(--mute); font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.nav a[aria-current="page"] { background: #1a1a1a; color: var(--ink); }
.nav-out { margin-top: auto; height: 40px; background: none; border: 1px solid var(--line); border-radius: var(--rb); color: var(--mute); cursor: pointer; }
.nav-out:hover { color: var(--ink); border-color: var(--ink); }
.main { padding: 40px 48px 0; outline: none; }
.main > section, .main > .foot, .amsg { max-width: 760px; margin-left: auto; margin-right: auto; }
.amsg:not(:empty) { margin-bottom: 16px; }
.hello { text-align: center; margin: 8px 0 32px; }
.hello h1 { font-size: 32px; margin-bottom: 4px; overflow-wrap: anywhere; }
.hello .sub { margin: 0; }
.status { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); margin: 0 0 16px; color: var(--ok); transition: border-color .15s; }
.status.warn { color: var(--warn); }
.status > span { flex: 1; color: var(--ink); }
.status b, .tile b, .rt b { display: block; font-weight: 600; }
.status small, .tile small, .rt small { display: block; color: var(--dim); font-size: 13px; }
.status .go { color: var(--dim); }
.status:hover, .tile:hover { border-color: #444; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); transition: border-color .15s; }
.tile .ic { margin-bottom: 12px; color: var(--mute); }
.grp { border: 1px solid var(--line); border-radius: var(--r); background: var(--surf); margin: 0 0 20px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line2); }
.grp h2 + .row, .grp h2 + div > .row:first-child { border-top: 0; }
.row > .ic { color: var(--mute); }
.rt { flex: 1; }
.rt b { overflow-wrap: anywhere; }
.k { width: 92px; flex: none; color: var(--dim); font-size: 13px; }
.tag { flex: none; font-size: 12px; color: var(--dim); }
.empty { color: var(--dim); }
.fine.flat { margin: 0; }
.live { color: var(--ok); }
.name-form .k { margin: 0; }
.name-form input { flex: 1; height: 40px; margin: 0; }
.name-btns { display: inline-flex; gap: 8px; flex: none; }
.mini.save { color: var(--ink); border-color: rgba(245, 243, 238, .5); }
.foot { justify-content: space-between; padding: 40px 0 32px; }
/* Your data → Delete your account (panel under its row) */
.del { padding: 4px 20px 20px 60px; border-top: 1px solid var(--line2); }
.del-h { margin: 14px 0 8px; font-weight: 600; }
.del-list { margin: 0 0 14px; padding: 0 0 0 18px; list-style: disc outside; color: var(--mute); font-size: 14px; line-height: 1.55; }
.del-list li { margin: 0 0 4px; }
.del-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.del-btns .btn.ghost { margin-top: 0; }
.del-form { margin-top: 16px; }
.del-form input.code { max-width: 260px; margin: 0; }

/* ── Phones and small tablets ── */
@media (max-width: 768px) {
  .auth-wrap { align-items: flex-start; padding: 24px 16px; }
  .card { padding: 32px 22px 28px; }
  h1 { font-size: 26px; }
  .top { height: 56px; padding: 0 16px; }
  .me-menu { top: 44px; width: min(280px, calc(100vw - 32px)); }
  .body { display: block; }
  .nav { position: sticky; top: 56px; z-index: 4; flex-direction: row; height: auto; padding: 0 16px; gap: 4px; overflow-x: auto; scrollbar-width: none; background: #000; border-bottom: 1px solid var(--line2); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; margin: 0; padding: 0 12px; height: 48px; border-radius: 0; font-size: 14px; white-space: nowrap; }
  .nav a .ic { display: none; }
  .nav a[aria-current="page"] { background: none; box-shadow: inset 0 -2px 0 var(--ink); }
  .nav-out { display: none; }
  .main { padding: 28px 16px 0; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
  .tile .ic { margin: 0; }
  .tile small { flex-basis: 100%; padding-left: 34px; margin-top: -2px; }
  .row { padding: 14px 16px; gap: 12px; }
  h2 { padding: 14px 16px 4px; }
  .k { width: 64px; }
  .foot { flex-direction: column; }
  .name-form { flex-wrap: wrap; }
  .del { padding: 4px 16px 18px; }
  .name-form .k { width: 100%; }
  .name-btns { width: 100%; }
}
/* Narrow phones: the sign-in card melts into the page so Turnstile's 300 px box always fits. */
@media (max-width: 480px) {
  .card { background: none; border: 0; padding: 8px 4px 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
a.mini { display: inline-flex; align-items: center; text-decoration: none; }
