:root {
  --bg: #0D0E12; --panel: #16181F; --line: #23252E; --line-2: #2B2E39;
  --text: #F2F3F5; --muted: #B4B8C5; --dim: #9A9FAD; --accent: #C8F03C; --accent-hi: #E2FF7A; --warn: #FFB4A8;
  --display: Unbounded, system-ui, sans-serif; --body: Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
h1, h2, h3, p { margin: 0; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 17px; }
.logo:hover { color: var(--text); }
.logo i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.logo b { color: var(--accent); font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a, .nav .linkbtn { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; }
.nav a:hover, .nav .linkbtn:hover { color: var(--text); }
.nav form { margin: 0; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--line); font-size: 13px; font-weight: 700; }

/* hero and search */
.hero { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -0.02em; max-width: 860px; margin-top: 16px; }
.hero .lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 640px; margin-top: 16px; }
.searchbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; }
.searchbar .field { flex: 999 1 280px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.searchbar input { flex: 1; min-width: 0; height: 56px; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 17px; }
.searchbar input::placeholder, .f::placeholder { color: #7F8596; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent; background: var(--accent); color: var(--bg); font-size: 15px; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--accent-hi); color: var(--bg); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--dim); background: transparent; color: var(--text); }
.btn.light { background: var(--text); }
.btn.small { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn.danger { background: transparent; border-color: #6B3A36; color: var(--warn); }
.searchbar .btn { flex: 1 1 130px; min-height: 56px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.pill:hover { border-color: var(--dim); color: var(--text); }
.pill.on, .pill.on:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* results */
.results { padding-top: 16px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.bar h2, .panel h2 { font-family: var(--display); font-weight: 500; font-size: 20px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; }
.seg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--text); color: var(--bg); }
.sortform { display: flex; align-items: center; gap: 10px; margin: 0; }
.sortform label { font-size: 14px; color: var(--dim); }
.empty { padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--muted); }
.empty strong { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.cover { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 14px; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .mono { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; color: #fff; }
.cover .tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.tag { padding: 5px 10px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 700; }
.tag.new { background: var(--accent); color: var(--bg); }
.tone-0 { background: #3B2A63; } .tone-1 { background: #7A2E4A; } .tone-2 { background: #1F4D47; } .tone-3 { background: #6B3A1E; }
.tone-4 { background: #24406E; } .tone-5 { background: #4A3270; } .tone-6 { background: #5A2438; } .tone-7 { background: #2C4A2A; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.card .sub { font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--accent); }
.open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.open:hover { background: var(--line-2); color: var(--text); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--dim); font-size: 14px; }

/* footer */
.bottom { border-top: 1px solid var(--line); }
.bottom .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--dim); }
.bottom .contact { font-size: 15px; color: var(--muted); }

/* account */
.page { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pagehead h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-top: 8px; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.stat span { font-size: 14px; color: var(--muted); }
.stat strong { font-family: var(--display); font-weight: 700; font-size: 32px; }
.stat.hi strong { color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chart { width: 100%; height: auto; display: block; }
.chart rect { fill: var(--accent); }
.chart .v { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.chart .d { fill: var(--dim); font-size: 12px; font-family: var(--body); }
.scroll { overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 15px; }
th { padding: 10px 12px; text-align: left; font-weight: 600; font-size: 13px; color: var(--dim); }
td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
td small { display: block; font-size: 13px; color: var(--dim); }
.num { text-align: right; font-weight: 700; }
th.num { font-weight: 600; }
.status { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--dim); color: var(--dim); font-size: 12px; font-weight: 700; }
.status.live { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.actions form { margin: 0; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl label, .hint { font-size: 13px; color: var(--muted); }
.f { height: 48px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 15px; }
select.f { height: 52px; width: auto; background: var(--panel); font-weight: 600; }
.formgrid select.f { width: 100%; height: 48px; background: var(--bg); font-weight: 400; }
input[type=file].f { padding: 10px 14px; height: auto; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.errors { margin: 0; padding: 14px 18px 14px 34px; border: 1px solid #6B3A36; border-radius: 12px; color: var(--warn); font-size: 14px; }
.flash { padding: 14px 18px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 15px; font-weight: 600; }
details.panel summary { cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 18px; min-height: 44px; display: flex; align-items: center; }
details.panel[open] { border-color: var(--accent); }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split > aside { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff; }
.who { display: flex; align-items: center; gap: 12px; }

/* centered small pages */
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 24px; }
.box { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.box h1 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.box p { font-size: 15px; color: var(--muted); }
.box .f { height: 52px; font-size: 16px; }
.box .btn { width: 100%; }
.box .note { font-size: 14px; color: var(--dim); }

/* 18+ gate */
.gate { position: fixed; inset: 0; z-index: 50; background: rgba(13, 14, 18, 0.96); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate[hidden] { display: none; }
.gate .row { justify-content: stretch; }
.gate .btn { flex: 1 1 140px; }
.g16 { gap: 16px; } .g20 { gap: 20px; }

/* admin */
.secret { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.grow { flex: 1 1 220px; min-width: 0; }
.row form { margin: 0; }
.catrow { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.count { min-width: 80px; }
td a { font-weight: 600; }

/* applications, import, join */
.flash.error { border-color: #6B3A36; color: var(--warn); }
.badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 700; text-align: center; }
.app { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.app small { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }
.app .hint { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.wrapany { overflow-wrap: anywhere; }
.box.wide { max-width: 520px; }
.f.area { height: auto; padding: 12px 14px; resize: vertical; font-family: inherit; line-height: 1.5; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
details.panel .hint strong { color: var(--text); }

/* landing pages, model page, SEO text */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--muted); padding: 10px 0; }
.browse { padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.browse h2, .about h2 { font-family: var(--display); font-weight: 500; font-size: 20px; }
.about { padding-bottom: 72px; display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin-left: auto; margin-right: auto; }
.wrap.about { max-width: 1240px; }
.about p { max-width: 820px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.profile { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.profile .photo { flex: 1 1 320px; max-width: 460px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; position: relative; display: flex; align-items: flex-end; padding: 24px; }
.profile .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile .photo .mono { font-family: var(--display); font-weight: 700; font-size: 96px; line-height: 1; color: #fff; }
.profile h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; margin-top: 12px; overflow-wrap: anywhere; }
.profile .handle { font-size: 18px; color: var(--dim); margin-top: 6px; }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; min-width: 140px; }
.facts dt { font-size: 13px; color: var(--dim); }
.facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; }
.facts dd.price { font-family: var(--display); font-weight: 500; }
.bio { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.bio p { font-size: 16px; line-height: 1.65; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.btn.big { min-height: 60px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.gate .box h2 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.15; }
.cattext { flex: 1 1 100%; }
.cattext summary { cursor: pointer; font-size: 13px; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
