:root {
  --bg: #000;
  --bg2: #16181c;
  --bg3: #202327;
  --line: #2f3336;
  --line2: #333639;
  --text: #e7e9ea;
  --muted: #71767b;
  --blue: #1d9bf0;
  --blue-h: #1a8cd8;
  --pink: #f91880;
  --green: #00ba7c;
  --red: #f4212e;
  --hover: rgba(231, 233, 234, 0.1);
  --row: rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.3125 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-y: scroll; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
svg { width: 1.25em; height: 1.25em; flex: none; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.up { color: var(--green); }
.down { color: var(--red); }
.center { text-align: center; }
.dot { margin: 0 4px; color: var(--muted); }

/* layout */
.layout { display: flex; justify-content: center; min-height: 100vh; }
.nav { width: 275px; flex: none; display: flex; justify-content: flex-end; }
.nav-inner { position: sticky; top: 0; height: 100vh; width: 275px; padding: 4px 12px 12px; display: flex; flex-direction: column; }
.main { width: 600px; flex: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; padding-bottom: 80px; }
.aside { width: 350px; flex: none; margin-left: 30px; }
.aside-inner { position: sticky; top: 0; padding: 6px 0 40px; display: flex; flex-direction: column; gap: 16px; }

.nav-logo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 999px; width: fit-content; margin: 2px 0 4px; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.brand-logo { display: block; border-radius: 22%; object-fit: cover; }
.nav-logo .brand-logo { width: 38px; height: 38px; }
.nav-logo:hover { background: var(--hover); }
.nav-item { display: flex; align-items: center; gap: 20px; padding: 12px; border-radius: 999px; width: fit-content; font-size: 20px; margin: 2px 0; transition: background 0.15s; }
.nav-item svg { width: 26px; height: 26px; }
.nav-item:hover { background: var(--hover); }
.nav-item.on { font-weight: 700; }
.nav-cta { margin: 16px 0; width: 90%; height: 52px; font-size: 17px; }
.nav-cta svg { display: none; }
.nav-account { margin-top: auto; }
.acct { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 999px; text-align: left; }
.acct:hover { background: var(--hover); }
.acct-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.acct-txt b, .acct-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-txt span { color: var(--muted); }
.acct i { display: flex; }
.nav-signin { width: 90%; height: 48px; gap: 10px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background 0.15s, opacity 0.15s; border: 1px solid transparent; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-sm { height: 32px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; font-size: 17px; padding: 0 32px; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:not(:disabled):hover { background: var(--blue-h); }
.btn-white { background: #eff3f4; color: #0f1419; }
.btn-white:not(:disabled):hover { background: #d7dbdc; }
.btn-outline { border-color: #536471; color: var(--text); }
.btn-outline:not(:disabled):hover { background: var(--hover); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #dc1e29; }
.btn-ghost { color: var(--text); padding: 0 12px; }
.btn-ghost:hover { background: var(--hover); }
.btn-ghost.blue { color: var(--blue); }
.btn-joined:hover { border-color: rgba(244, 33, 46, 0.5); color: var(--red); background: rgba(244, 33, 46, 0.1) !important; }
.btn-joined:hover span { display: none; }
.btn-joined:hover::after { content: "Leave"; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; transition: background 0.15s; }
.icon-btn:hover { background: var(--hover); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.icon-btn.outline { border: 1px solid #536471; }
.icon-btn.blue { color: var(--blue); }
.icon-btn.blue:hover { background: rgba(29, 155, 240, 0.1); }
.icon-btn.dark { background: rgba(15, 20, 25, 0.75); backdrop-filter: blur(4px); }
.input { width: 100%; background: transparent; border: 1px solid var(--line2); border-radius: 4px; padding: 12px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; resize: vertical; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.input:disabled { opacity: 0.6; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 18px 0 0; }
.field > span { color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; }
.field i { font-style: normal; }
.at-input { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line2); border-radius: 4px; padding-left: 12px; }
.at-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.at-input b { color: var(--muted); font-weight: 400; }
.at-input .input { border: 0; box-shadow: none; padding-left: 0; }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.row-end .enable-note { margin-top: 0; }
.radio { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; }
.radio input { accent-color: var(--blue); width: 20px; height: 20px; margin: 2px 0 0; }
.radio div { display: flex; flex-direction: column; gap: 2px; }
.radio span { color: var(--muted); font-size: 14px; }

/* topbar & tabs */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 53px; padding: 0 16px; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .icon-btn { margin-left: -8px; }
.topbar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar-title h2 { font-size: 20px; font-weight: 700; line-height: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title span { font-size: 13px; color: var(--muted); }
.topbar-right { display: flex; gap: 4px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 53px; z-index: 15; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: 1; display: flex; justify-content: center; padding: 0 16px; color: var(--muted); font-weight: 500; transition: background 0.15s; white-space: nowrap; }
.tabs a:hover { background: var(--hover); }
.tabs a span { position: relative; display: flex; align-items: center; height: 53px; }
.tabs a.on { color: var(--text); font-weight: 700; }
.tabs a.on span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 999px; background: var(--blue); }

.search { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg3); border: 1px solid transparent; color: var(--muted); }
.search:focus-within { background: var(--bg); border-color: var(--blue); color: var(--blue); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.home-search { padding: 4px 16px 12px; }

.chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; }
.chip img { border-radius: 4px; }
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--text); color: #0f1419; border-color: var(--text); }
.chip.on span { color: #536471; }

.list-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.list-note b { color: var(--text); }

/* community rows */
.crow { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: background 0.15s; align-items: flex-start; }
.crow:hover { background: var(--row); }
.crow-thumb { position: relative; width: 88px; height: 88px; flex: none; border-radius: 14px; background: var(--bg3) center / cover no-repeat; }
.crow-thumb img { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bg); background: var(--bg3); object-fit: cover; }
.crow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.crow-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.crow-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow-name .chain { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.sym { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sym.lg { font-size: 17px; font-weight: 500; }
.crow-meta { display: flex; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; gap: 2px; }
.crow-meta b { color: var(--text); }
.crow-meta .faces { margin-right: 6px; }
.lock { display: inline-flex; align-items: center; gap: 3px; }
.lock svg { width: 14px; height: 14px; }
.crow-desc { color: #c4c7ca; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.crow .btn { flex: none; margin-left: 4px; }
.faces { display: inline-flex; }
.faces img { border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -8px; background: var(--bg3); }
.faces img:first-child { margin-left: 0; }

/* community page */
.banner { aspect-ratio: 3 / 1; background: var(--bg3); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-empty { background: #333639; }
.chead { padding: 12px 16px 16px; }
.chead-top { display: flex; justify-content: space-between; align-items: flex-start; height: 56px; }
.clogo { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--bg); margin-top: -72px; background: var(--bg3); object-fit: cover; }
.chead-actions { display: flex; gap: 8px; align-items: center; }
.chead-actions .btn { min-width: 84px; }
.cname { font-size: 24px; font-weight: 800; line-height: 1.2; margin-top: 4px; word-break: break-word; }
.cmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); margin-top: 10px; }
.cmeta span { display: inline-flex; align-items: center; gap: 4px; }
.cmeta svg { width: 18px; height: 18px; }
.cmeta img { border-radius: 4px; }
.role-tag { color: var(--blue); font-weight: 600; }
.cdesc { margin-top: 12px; white-space: pre-wrap; word-break: break-word; }
.cdesc a, .post-text a, .about-desc a, .pbio a { color: var(--blue); }
.cdesc a:hover, .post-text a:hover { text-decoration: underline; }
.clinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.clinks a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; }
.clinks a:hover { background: var(--hover); }
.clinks svg { width: 16px; height: 16px; }
.x-mark { font-size: 15px; line-height: 1; }
.cmembers { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); }
.cmembers b { color: var(--text); }
.cmembers:hover { text-decoration: underline; }
.cmembers .faces { margin-right: 4px; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: rgba(29, 155, 240, 0.15); color: var(--blue); font-size: 12px; font-weight: 700; margin-left: 6px; vertical-align: 2px; }

.join-prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.join-prompt > div { display: flex; flex-direction: column; gap: 2px; }
.join-prompt span { font-size: 14px; }

/* composer */
.composer { display: flex; gap: 12px; padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
.composer.reply { padding: 10px 0 6px; border-bottom: 0; }
.composer-main { flex: 1; min-width: 0; }
.composer textarea { width: 100%; border: 0; background: none; outline: none; resize: none; font-size: 20px; line-height: 24px; padding: 8px 0; min-height: 40px; overflow: hidden; }
.composer.reply textarea { font-size: 16px; min-height: 32px; padding: 5px 0; }
.composer textarea::placeholder { color: var(--muted); }
.composer-preview { position: relative; margin: 8px 0; }
.composer-preview img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 16px; display: block; }
.composer-preview .icon-btn { position: absolute; top: 6px; left: 6px; }
.composer-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.composer.reply .composer-bar { border-top: 0; }
.composer-right { display: flex; align-items: center; gap: 12px; }
.count { font-size: 13px; color: var(--muted); }
.count.warn { color: #ffd400; }
.count.over { color: var(--red); }

/* posts */
.post { padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.post:hover { background: var(--row); }
.post.reply { padding: 10px 0 4px; border-bottom: 0; }
.post.reply:hover { background: none; }
.post-pin { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; margin: -2px 0 4px 22px; }
.post-pin svg { width: 14px; height: 14px; }
.post-grid { display: flex; gap: 12px; }
.post-ava { flex: none; }
.post-main { flex: 1; min-width: 0; }
.post-head { display: flex; align-items: center; gap: 4px; min-width: 0; height: 20px; }
.post-who:hover .post-name { text-decoration: underline; }
.post-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.post-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.post-more { margin-left: auto; color: var(--muted); }
.post-more:hover { color: var(--blue); background: rgba(29, 155, 240, 0.1); }
.post-in { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.post-in svg { width: 14px; height: 14px; }
.post-in:hover { text-decoration: underline; }
.post-in img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.post-in span:first-of-type { color: var(--text); font-weight: 600; }
.post-in .sym { color: var(--muted); }
.feed-more { display: flex; justify-content: center; padding: 16px; border-bottom: 1px solid var(--line); }
.feed-more[hidden] { display: none; }
.post-text { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.cashtag { color: var(--blue); }
.post-img { margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.post-img img { display: block; width: 100%; max-height: 510px; object-fit: cover; }
.post-actions { display: flex; justify-content: space-between; max-width: 340px; margin: 8px 0 -4px -8px; color: var(--muted); }
.post.reply .post-actions { justify-content: flex-start; gap: 48px; }
.act { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; transition: color 0.15s; }
.act svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; transition: background 0.15s; }
.act-reply:hover { color: var(--blue); }
.act-reply:hover svg { background: rgba(29, 155, 240, 0.1); }
.act-like:hover, .act-like.on { color: var(--pink); }
.act-like:hover svg { background: rgba(249, 24, 128, 0.1); }
.act-share:hover { color: var(--blue); }
.act-share:hover svg { background: rgba(29, 155, 240, 0.1); }
.post-replies { border-left: 2px solid var(--line); margin: 8px 0 0 -32px; padding-left: 30px; }
.post-replies > p { padding: 8px 0; }

/* about / members / moderation */
.about { padding: 16px; border-bottom: 1px solid var(--line); }
.about h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.about-desc { white-space: pre-wrap; word-break: break-word; }
.facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts li > svg, .facts li > img { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); border-radius: 4px; }
.facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts span { color: var(--muted); font-size: 14px; }
.rules { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 10px 0; }
.rules li::before { content: counter(r); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.rules li span { color: var(--muted); font-size: 14px; grid-column: 2; }
.rules.sm li { padding: 6px 0; font-size: 14px; }
.rules.sm li::before { width: 24px; height: 24px; font-size: 13px; }
.about-link { display: inline-block; margin-top: 12px; color: var(--muted); }
.about-link b { color: var(--text); }
.about-link:hover { text-decoration: underline; }
.sub-note { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background 0.15s; }
.about .person { padding: 10px 0; border-bottom: 0; }
.person:hover { background: var(--row); }
.person-link { display: flex; gap: 12px; flex: 1; min-width: 0; align-items: flex-start; }
.person-txt { min-width: 0; display: flex; flex-direction: column; }
.person-txt > div { display: flex; align-items: center; }
.person-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-txt p { font-size: 14px; margin-top: 4px; color: #c4c7ca; }
.person-btns { display: flex; gap: 8px; flex: none; }
.rule-edit { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.rule-n { width: 28px; height: 28px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; margin-top: 8px; }
.rule-fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rule-edit .icon-btn { margin-top: 6px; color: var(--muted); }

/* widgets */
.widget { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.widget.pad { padding: 12px 16px 16px; }
.widget h3 { font-size: 20px; font-weight: 800; padding: 12px 16px; }
.widget h3.nopad, .widget.pad h3 { padding: 0 0 8px; }
.widget p + .btn { margin-top: 12px; }
.widget .tiny { margin-top: 8px; }
.trend { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; transition: background 0.15s; }
.trend:hover { background: var(--row); }
.trend-row { display: flex; align-items: center; gap: 8px; }
.trend-row img { border-radius: 50%; object-fit: cover; }
.trend-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-more { display: block; padding: 16px; color: var(--blue); transition: background 0.15s; }
.widget-more:hover { background: var(--row); }
.widget-more.nopad { padding: 8px 0 0; }
.foot { color: var(--muted); font-size: 13px; padding: 0 16px; line-height: 1.5; }
.foot a:hover { text-decoration: underline; }
.token-head { display: flex; align-items: center; gap: 12px; }
.token-head img { border-radius: 50%; object-fit: cover; }
.token-head div { display: flex; flex-direction: column; min-width: 0; }
.token-head b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 10px; }
.token-price b { font-size: 26px; font-weight: 800; }
.token-price sub { font-size: 0.6em; }
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.token-grid div { background: var(--bg2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.token-grid span { color: var(--muted); font-size: 13px; }
.ca { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 14px; border-radius: 6px; padding: 4px 6px 4px 0; }
.ca:hover { color: var(--text); }
.ca svg { width: 16px; height: 16px; }
.ca.inline { margin: 0; padding: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; text-align: left; }
.token .btn.block:first-of-type { margin-top: 14px; }
.trade-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.trade-row .btn { width: 100%; height: 40px; padding: 0 10px; }
.trade-row img { border-radius: 5px; flex: none; }
.seat-open { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-weight: 600; }
.seat-open svg { width: 14px; height: 14px; }

.burn-hero { padding: 20px 16px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 122, 0, 0.16), transparent 60%); }
.burn-token { display: flex; align-items: center; gap: 12px; }
.burn-token img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg3); }
.burn-token > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.burn-token b { font-size: 17px; }
.burn-token .ca { margin: 0; }
.burn-big { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.burn-big > svg { width: 52px; height: 52px; color: #ff7a00; flex: none; }
.burn-big div { display: flex; flex-direction: column; }
.burn-big b { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.burn-big span { color: var(--muted); font-size: 15px; }
.burn-sub { margin-top: 10px; font-size: 14px; }
.burn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); min-width: 0; }
.stat b { font-size: 19px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat a:hover b { text-decoration: underline; }
.burn-how { padding: 0 16px 16px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.ledger-row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.ledger-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); }
.ledger-icon img { width: 100%; height: 100%; object-fit: cover; }
.ledger-icon svg { width: 20px; height: 20px; }
.ledger-icon.fire { background: rgba(255, 122, 0, 0.14); color: #ff7a00; }
.ledger-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ledger-body a:hover { text-decoration: underline; }
.ledger-body .small a { color: var(--blue); }
.out { font-weight: 700; }
.out.ok { color: var(--green); }
.out.warn { color: #ffad1f; }
.foot a { color: var(--blue); }
.foot-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.foot-ca b { color: var(--text); font-weight: 600; }
.foot-copy { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; text-align: left; }
.foot-copy svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.foot-meta a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.foot-meta .x-mark { color: var(--text); }
.how-list { margin: 10px 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.how-list b { color: var(--text); }
.link-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 6px 10px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; }
.link-note > svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.link-note span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.link-note b { color: var(--text); font-weight: 600; }
.section-note .link-note { margin-top: 0; }
.source-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.source-note svg { width: 18px; height: 18px; flex: none; }
.img-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.img-pick div { display: flex; flex-direction: column; gap: 2px; }
.img-pick .btn { flex: none; }
.mini-token { margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }

/* create & settings */
.create, .settings { padding: 16px; }
.create-hero { display: flex; gap: 16px; padding: 16px; border-radius: 16px; background: var(--bg2); align-items: flex-start; }
.create-hero > svg { width: 40px; height: 40px; color: var(--blue); flex: none; }
.create-hero h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.create h3 { font-size: 17px; font-weight: 800; margin: 24px 0 4px; }
.dev-box { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--muted); }
.dev-box b { color: var(--text); }
.dev-box > svg { width: 20px; height: 20px; flex: none; color: var(--blue); }
.dev-box span { flex: 1; }
.dev-box .btn { flex: none; }
.dev-box.ok { border-color: rgba(29, 155, 240, 0.35); }
.widget-empty { padding: 4px 16px 16px; }
.widget-empty .blue { color: var(--blue); }
.signin-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
.signin-card > div { display: flex; flex-direction: column; gap: 2px; }
.add-search { margin-top: 16px; }
.section-h { font-size: 20px; font-weight: 800; padding: 16px 16px 8px; border-bottom: 1px solid var(--line); }
.section-h .muted { font-weight: 500; font-size: 15px; margin-left: 6px; }
.section-note { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tag-trend { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }
.tag-trend svg { width: 15px; height: 15px; }
.crow-meta .mono, .enable .mono { font-size: 13px; color: var(--text); }
.crow-meta .you { color: var(--blue); }
.enable { border-top: 1px solid var(--line); }
.enable-note { margin-top: 12px; }
.topbar-right .btn svg { width: 16px; height: 16px; }
.preview { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.preview.bad { padding: 16px; border-color: rgba(244, 33, 46, 0.4); }
.preview.bad p + p { margin-top: 6px; }
.pv-banner { aspect-ratio: 3 / 1; background: var(--bg3) center / cover; }
.pv-body { display: flex; gap: 12px; align-items: flex-end; padding: 0 16px; margin-top: -30px; }
.pv-body b { font-size: 18px; }
.pv-logo { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--bg); background: var(--bg3); object-fit: cover; }
.pv-body img:not(.pv-logo) { vertical-align: -2px; border-radius: 3px; }
.pv-desc { padding: 10px 16px 0; color: #c4c7ca; font-size: 14px; white-space: pre-wrap; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.preview-foot span { display: inline-flex; align-items: center; gap: 6px; }
.err-note { color: var(--red); font-size: 14px; margin-top: 10px; }
.avatar-pick { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.avatar-pick label { position: relative; cursor: pointer; border-radius: 50%; }
.avatar-cam { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, 0.45); opacity: 0.85; transition: opacity 0.15s; }
.avatar-cam svg { width: 30px; height: 30px; }
.avatar-pick label:hover .avatar-cam { opacity: 1; background: rgba(0, 0, 0, 0.6); }

/* profile */
.pbanner { aspect-ratio: 3 / 1; background: linear-gradient(120deg, #1d2a3a, #2a1d3a); }
.phead { padding: 12px 16px 16px; }
.phead-top { display: flex; justify-content: space-between; align-items: flex-start; height: 70px; }
.pava { margin-top: -82px; border-radius: 50%; border: 4px solid var(--bg); background: var(--bg); width: fit-content; }
.pava .ava { display: block; }
.pname { font-size: 20px; font-weight: 800; margin-top: 4px; }
.pbio { margin-top: 12px; white-space: pre-wrap; word-break: break-word; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--muted); }
.pmeta span, .pmeta .ca { display: inline-flex; align-items: center; gap: 4px; font-family: inherit; font-size: 15px; }
.pmeta svg { width: 18px; height: 18px; }
.pstats { margin-top: 12px; color: var(--muted); }
.pstats b { color: var(--text); }

/* avatars */
.ava { border-radius: 50%; object-fit: cover; display: inline-flex; flex: none; background: var(--bg3); }
.ava-empty { align-items: center; justify-content: center; color: #fff; font-weight: 700; }

/* misc */
.empty { padding: 40px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty.left { text-align: left; align-items: flex-start; }
.empty h2 { font-size: 31px; font-weight: 800; line-height: 1.15; max-width: 420px; }
.empty p { color: var(--muted); max-width: 420px; }
.empty .btn { margin-top: 16px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(29, 155, 240, 0.25); border-top-color: var(--blue); animation: spin 0.8s linear infinite; margin: 32px auto; }
.spinner.sm { width: 20px; height: 20px; margin: 14px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.menu { position: absolute; z-index: 100; min-width: 240px; max-width: 340px; background: var(--bg); border-radius: 12px; box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 3px 1px rgba(255, 255, 255, 0.15); overflow: hidden; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; font-weight: 700; text-align: left; }
.menu button:hover { background: var(--row); }
.menu button.danger { color: var(--red); }
.menu svg { width: 18px; height: 18px; }

.modal { position: fixed; inset: 0; z-index: 200; background: rgba(91, 112, 131, 0.4); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--bg); border-radius: 16px; width: 100%; max-width: 360px; max-height: 90vh; overflow: auto; }
.modal-box.wide { max-width: 600px; }
.modal-pad { padding: 32px; }
.modal-pad h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal-pad p { margin-bottom: 12px; }
.modal-logo .brand-logo { width: 56px; height: 56px; margin: 0 auto 16px; }

#toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 6px; font-size: 15px; transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: #f4212e; }

/* responsive */
@media (max-width: 1280px) {
  .nav, .nav-inner { width: 88px; }
  .nav-inner { align-items: center; padding: 4px 4px 12px; }
  .nav-logo span, .nav-item span, .nav-cta span, .acct-txt, .acct i, .nav-signin span { display: none; }
  .nav-item { padding: 12px; }
  .nav-cta { width: 52px; height: 52px; padding: 0; }
  .nav-cta svg { display: block; width: 24px; height: 24px; }
  .acct { width: auto; padding: 8px; }
  .nav-signin { width: 52px; height: 52px; padding: 0; }
}
@media (max-width: 1020px) {
  .aside { display: none; }
}
@media (max-width: 700px) {
  .layout { display: block; }
  .main { width: 100%; border: 0; padding-bottom: 72px; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; width: auto; height: 56px; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .nav-inner { position: static; width: 100%; height: 56px; flex-direction: row; justify-content: space-around; padding: 0; }
  .nav-inner nav { display: contents; }
  .nav-logo, .nav-cta { display: none; }
  .nav-account { margin: 0; }
  .crow-thumb { width: 64px; height: 64px; }
  .empty h2 { font-size: 24px; }
  .burn-stats { grid-template-columns: 1fr; }
  .burn-big b { font-size: 32px; }
}
