@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geist-latin.woff2') format('woff2');
    unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geist-cyrillic.woff2') format('woff2');
    unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geist-mono-latin.woff2') format('woff2');
    unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/geist-mono-cyrillic.woff2') format('woff2');
    unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

:root {
    color-scheme: dark;

    --bg:            #0a0a0a;

    --surface:       #171717;
    --surface-2:     #262626;
    --surface-3:     #2e2e2e;

    --border:        rgba(255,255,255,.1);
    --border-strong: rgba(255,255,255,.15);
    --txt:           #fafafa;
    --txt-2:         #a1a1a1;
    --muted:         #6b6e78;
    --accent:        #5599ff;
    --accent-hover:  #77aaff;
    --accent-soft:   rgba(85, 153, 255, .14);
    --accent-border: rgba(85, 153, 255, .4);
    --ok:    #22c55e;
    --warn:  #eab308;
    --err:   #ef4444;
    --radius-sm:  6px;
    --radius:     10px;
    --radius-btn: 14px;
    --radius-lg:  16px;

    --ring: rgba(85, 153, 255, .5);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow:    0 6px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
    --font: "Geist", "SF Pro Display", system-ui, -apple-system, sans-serif;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--txt);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body { background: var(--bg); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }
code { font-family: var(--mono); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    max-width: 1100px;
    margin: 14px auto 0;
    background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 32px rgba(0, 0, 0, .4);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -.02em;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand-name { color: var(--txt); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    margin-left: auto;
    margin-right: 8px;
}
.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--txt-2);
    font-weight: 500;
    transition: all .15s;
}
.nav-links a:hover { color: var(--txt); background: var(--surface-2); }
.nav-links a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    margin-left: 6px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-hover);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    vertical-align: middle;
}

.nav-search {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    max-width: 38vw;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 8px 0 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .15s, background .15s;
}
.nav-search:focus-within { border-color: var(--accent-border); background: var(--surface-3); }
.nav-search-icon { display: flex; flex-shrink: 0; color: var(--muted); }
.nav-search-icon svg { width: 15px; height: 15px; }
.nav-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--txt);
    font-family: var(--font);
    font-size: 13px;
}
.nav-search input::placeholder { color: var(--muted); }

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 220px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 60;
}
.nav-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .15s;
}
.nav-search-row:hover, .nav-search-row.active { background: var(--surface-2); }
.nav-search-row img { width: 26px; height: 26px; border-radius: 50%; image-rendering: pixelated; flex-shrink: 0; }
.nav-search-name { flex: 1; min-width: 0; font-size: 13px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-search-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, box-shadow .15s, filter .15s, transform .1s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--ring);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 8px rgba(0,0,0,.28), 0 4px 14px rgba(85,153,255,.3);
}
.btn-primary:hover {
    filter: brightness(1.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 16px rgba(0,0,0,.40), 0 4px 14px rgba(85,153,255,.3);
}

.btn-ghost {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--txt);
}
.btn-ghost:hover { background: var(--surface-3); border-color: #3a3f4d; color: var(--txt); }

.btn-sm { height: 34px; padding: 0 15px; font-size: 13px; }

.hero {
    padding: 88px 0 64px;
    text-align: center;
    position: relative;
    overflow: clip;
}

.hero::before {
    content: "";
    position: absolute;
    top: -160px; left: 8%;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: rgba(138, 92, 255, .07);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}
.hero::after {
    content: "";
    position: absolute;
    top: -60px; right: 6%;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(85, 153, 255, .08);
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

.hero .eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    border-radius: 999px;
    font-size: 12px;
    color: var(--txt-2);
    margin-bottom: 28px;
}
.hero .eyebrow b { color: var(--accent-hover); font-weight: 600; }

.hero h1 {

    font-size: clamp(38px, 4.5vw + 20px, 72px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -.03em;
    font-weight: 800;
}
.hero h1 .grad { color: var(--txt); }

.hero p.lead {
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--txt-2);
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-meta {
    font-size: 13px;
    color: var(--muted);
}
.hero-meta b { color: var(--txt-2); font-family: var(--mono); }

.hero-illu {
    max-width: 900px;
    margin: 56px auto 0;
    perspective: 1600px;
}
.hero-illu img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: rotateX(6deg);
    animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: rotateX(6deg) translateY(0); }
    50%      { transform: rotateX(6deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-illu img { animation: none; }
}

section { padding: 80px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -.02em; font-weight: 700; }
.section-head p { color: var(--txt-2); font-size: 15px; margin: 0; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.feature-card .icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-hover);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.feature-card .icon svg { width: 18px; height: 18px; }

.feature-card h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.feature-card p { font-size: 13px; color: var(--txt-2); margin: 0; line-height: 1.5; }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px 20px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -14px; left: 20px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(85,153,255,.35);
}
.step h3 { font-size: 14px; margin: 10px 0 6px; font-weight: 600; }
.step p { font-size: 13px; color: var(--txt-2); margin: 0; line-height: 1.5; }
.step code {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: var(--accent-hover);
}

.cta {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 52px 24px;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(85,153,255,.10), transparent 70%);
    pointer-events: none;
}
.cta h2 { margin: 0 0 10px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.cta p { color: var(--txt-2); margin: 0 0 26px; }

footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    font-size: 13px;
    color: var(--muted);
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-legal { display: flex; flex-direction: column; gap: 3px; }
.footer-disclaimer { font-size: 11.5px; opacity: .72; }
.site-footer .footer-bottom .footer-disclaimer { display: block; margin-top: 4px; }

footer a { color: var(--muted); }
footer a:hover { color: var(--txt); }

.site-footer { border-top: 1px solid var(--border); padding: 0; }
.site-footer .container { display: block; }

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
    padding: 56px 0 40px;
}
.footer-brand { flex: 1 1 240px; max-width: 300px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
    font-size: 13.5px;
    color: var(--txt-2);
    line-height: 1.6;
    margin: 0 0 18px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    color: var(--muted);
    display: flex;
    transition: color .15s;
}
.footer-social a:hover { color: var(--txt); }
.footer-social svg { width: 19px; height: 19px; }

.site-footer nav { flex: 0 0 auto; }
.site-footer nav h2 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--txt);
    margin: 0 0 16px;
}
.site-footer nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.site-footer nav a {
    font-size: 13.5px;
    color: var(--txt-2);
    transition: color .15s;
}
.site-footer nav a:hover { color: var(--txt); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 22px 0 32px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--txt); }

@media (max-width: 640px) {
    .footer-top { padding: 40px 0 28px; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 28px; }
}

.cabinet-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}
.card h1 { font-size: 20px; margin: 0 0 6px; font-weight: 700; }
.card p.sub { color: var(--txt-2); font-size: 14px; margin: 0 0 28px; }

.loading, .error-msg { text-align: center; color: var(--txt-2); font-size: 14px; padding: 60px 0; }
.error-msg { color: var(--err); }

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 20px;
}
.search-icon { color: var(--muted); display: flex; flex-shrink: 0; }
.search-icon svg { width: 18px; height: 18px; }
.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--txt);
    font-family: var(--font);
    font-size: 14px;
}
.search-box input::placeholder { color: var(--muted); }
.search-box:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 3px var(--ring); }

.suggestions {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.suggestions-label { color: var(--txt-2); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.suggestions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--txt);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.suggestion-chip:hover { background: var(--surface-3); border-color: var(--accent); }
.suggestion-chip .dot { border-radius: 50%; flex-shrink: 0; }

.badges-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.badges-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--txt);
}
.badges-card-head svg { width: 18px; height: 18px; color: var(--accent-hover); }
.badges-card-empty { flex: 1; display: flex; align-items: center; font-size: 13px; color: var(--muted); }
.badges-card-streak { margin-top: 12px; font-size: 12px; color: var(--muted); }

.badge-tile-row { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge-tile {
    position: relative;
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    transition: border-color .15s, transform .15s;
}
.badge-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.badge-tile img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }

.badge-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 230px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px 14px;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
    z-index: 30;
}
.badge-tile:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.badge-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--surface-3);
}
.badge-tooltip-title { font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 4px; }
.badge-tooltip-desc  { font-size: 12px; font-weight: 400; color: var(--txt-2); line-height: 1.45; }
.badge-tooltip-date  {
    font-size: 11px; font-weight: 500; color: var(--muted);
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}

.cape-card-desc { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.cape-card-desc a { color: var(--accent-hover); }
.cape-legend { font-size: 12px; }
.cape-banned-msg {
    font-size: 13px; color: var(--err);
    background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
    border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px;
}

.staff-cape-list { display: flex; flex-direction: column; gap: 10px; }
.staff-cape-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}
.staff-cape-identity { display: flex; align-items: center; gap: 10px; }
.staff-cape-identity .avatar { border-radius: 50%; }

#staff-access-list { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; }
.staff-access-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 13px;
}
.staff-access-row .pill { font-size: 11px; }
.staff-access-row .sub { color: var(--muted); font-size: 12px; }
.online-avatar {
    width: 24px; height: 24px; border-radius: 6px; flex: 0 0 auto;
    image-rendering: pixelated; background: var(--surface);
}
#online-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-tile {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.stat-tile .stat-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); margin-bottom: 6px;
}
.stat-tile .stat-value {
    font-size: 24px; font-weight: 700; color: var(--txt);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-tile .stat-delta { font-size: 12px; margin-top: 6px; color: var(--muted); }
.stat-tile .stat-delta.up { color: var(--ok); }
.stat-tile .stat-delta.down { color: var(--err); }

.an-table-wrap { overflow-x: auto; }
table.an-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.an-table th, table.an-table td {
    padding: 8px 10px; text-align: right; white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
table.an-table th:first-child, table.an-table td:first-child { text-align: left; }
table.an-table td { font-variant-numeric: tabular-nums; color: var(--txt-2); }
table.an-table td:first-child { color: var(--txt); }
table.an-table th {
    color: var(--muted); font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: .06em;
    cursor: pointer; user-select: none; position: sticky; top: 0;
    background: var(--surface); z-index: 1;
}
table.an-table th:hover { color: var(--txt); }
table.an-table th.sorted::after { content: ' ▾'; }
table.an-table th.sorted.asc::after { content: ' ▴'; }
table.an-table tbody tr:hover { background: var(--surface-2); }
.an-bar {
    height: 6px; border-radius: 3px; background: var(--accent);
    display: inline-block; vertical-align: middle; min-width: 2px;
}

.privacy-toggle-list { display: flex; flex-direction: column; gap: 10px; }
.privacy-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--txt-2);
    cursor: pointer;
}
.privacy-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.cape-tile-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cape-tile {
    position: relative;
    width: 120px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cape-thumb {
    width: 100px;
    height: 160px;
    background-size: 640px 320px;
    background-position: -10px -10px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .15s;
}
.cape-thumb:hover { transform: translateY(-2px); }

.cape-thumb-sm {
    width: 40px;
    height: 64px;
    background-size: 256px 128px;
    background-position: -4px -4px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex: none;
}

.cape-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.cape-modal {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.cape-modal-close { position: absolute; top: 10px; right: 10px; }
#cape-modal-canvas { width: 300px; height: 400px; }
.cape-pill-active  { background: rgba(34,197,94,.15); border-color: rgba(34,197,94,.35); color: var(--ok); font-size: 11px; padding: 2px 8px; }
.cape-pill-pending { background: rgba(234,179,8,.15); border-color: rgba(234,179,8,.35); color: var(--warn); font-size: 11px; padding: 2px 8px; }
.cape-pill-banned  { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.35); color: var(--err); font-size: 11px; padding: 2px 8px; }
.cape-tile-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cape-actions { margin-bottom: 14px; }
.cape-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cape-pick-label { cursor: pointer; }
.cape-file-name { font-size: 12px; color: var(--muted); }
.cape-error { font-size: 12px; color: var(--err); margin-top: 8px; min-height: 1em; }
.cape-rules { margin-top: 14px; font-size: 12px; }
.cape-rules summary { cursor: pointer; color: var(--muted); }
.cape-rules-text {
    white-space: pre-wrap;
    color: var(--txt-2);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.settings-gear-btn {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--txt-2);
    cursor: pointer;
    transition: all .2s;
}
.settings-gear-btn:hover { background: var(--surface-3); color: var(--txt); border-color: var(--accent-border); transform: rotate(45deg); }
.settings-gear-btn svg { width: 18px; height: 18px; }

.settings-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}
.settings-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}
.settings-modal-close { position: absolute; top: 14px; right: 14px; }
.settings-modal-head { font-weight: 800; font-size: 18px; margin: 0 40px 16px 0; }

.settings-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.settings-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    margin-bottom: -1px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.settings-tab:hover { color: var(--txt-2); }
.settings-tab.active { color: var(--txt); border-bottom-color: var(--accent); }
.settings-tab-panel-desc { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

.twofa-status { margin-bottom: 12px; }
.twofa-qr {
    display: block;
    width: 180px; height: 180px;
    background: #fff;
    padding: 10px;
    border-radius: var(--radius);
    margin: 10px 0;
}
.twofa-secret {
    font-family: var(--mono);
    font-size: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}
.twofa-code-row { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.twofa-code-input {
    flex: 0 0 140px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--txt);
    font-family: var(--mono);
    font-size: 16px;
    letter-spacing: .2em;
    text-align: center;
}
.twofa-code-input:focus { outline: none; border-color: var(--accent); }

.backup-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}
.backup-codes-grid code {
    display: block;
    text-align: center;
    padding: 8px 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .03em;
    color: var(--txt);
}

.login-history-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.login-history-head { font-weight: 700; font-size: 13px; margin-bottom: 10px; color: var(--txt); }
.login-history-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.login-history-head-row .login-history-head { margin-bottom: 0; }
.login-history-list { display: flex; flex-direction: column; gap: 8px; }
.login-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.login-history-device { font-size: 12px; color: var(--txt); font-weight: 500; }
.login-history-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.login-history-date { font-size: 11px; color: var(--muted); flex-shrink: 0; margin-left: 10px; }

.active-sessions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.active-sessions-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--txt-2);
}
.active-sessions-icon svg { width: 16px; height: 16px; }
.active-sessions-info { min-width: 0; flex: 1; }
.active-sessions-device { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--txt); font-weight: 500; flex-wrap: wrap; }
.session-current-pill { padding: 1px 9px; font-size: 10px; }
.session-revoke-btn { flex-shrink: 0; color: var(--err); }
.session-revoke-btn:hover { border-color: rgba(239,68,68,.4); }

.activity-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.activity-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.activity-card-head .title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--txt); }
.activity-card-head .title svg { width: 18px; height: 18px; color: var(--accent-hover); }
.activity-card-head .status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-2); }

.activity-scroll { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 2px; }
.activity-months { display: flex; gap: 3px; margin-bottom: 6px; }
.activity-month-label { width: 12px; flex-shrink: 0; font-size: 10px; color: var(--muted); overflow: visible; white-space: nowrap; }

.activity-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 12px);
    gap: 3px;
    width: max-content;
}
.activity-cell { position: relative; width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); }
.activity-cell.empty      { background: transparent; }
.activity-cell.level-1    { background: rgba(85,153,255,.25); }
.activity-cell.level-2    { background: rgba(85,153,255,.45); }
.activity-cell.level-3    { background: rgba(85,153,255,.7); }

.activity-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--txt);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s, transform .15s;
    z-index: 40;
}
.activity-cell:hover .activity-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.activity-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--surface-3);
}
.activity-cell.level-4    { background: var(--accent); }

.profile-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(30,58,138,.30) 0%, rgba(37,99,235,.10) 45%, transparent 85%);
    border-radius: var(--radius-lg);
    padding: 44px 20px 4px;
    margin: -8px -8px 20px;
}
.profile-body { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 240px; padding-bottom: 12px; }

.skin-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.skin-panel {
    width: 200px; height: 300px;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.skin-panel canvas { display: block; }

.skin-toolbar { display: flex; gap: 6px; }
.skin-toolbar button, .skin-toolbar a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--txt-2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.skin-toolbar svg { width: 15px; height: 15px; }
.skin-toolbar button:hover, .skin-toolbar a:hover { background: var(--surface-3); color: var(--txt); }

.profile-avatar-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.profile-avatar-row img.avatar {
    width: 88px; height: 88px; border-radius: 50%;
    border: 4px solid var(--surface);
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}
.profile-name {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.01em;
    color: var(--txt);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--txt-2);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.online .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.pill.offline .dot { background: var(--muted); }

.role-ADMINISTRATOR { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.role-DEVELOPER     { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-hover); }
.role-MODERATION    { background: rgba(234,179,8,.15); border-color: rgba(234,179,8,.35); color: var(--warn); }
.role-BUGHUNTER_3   { background: rgba(158,107,255,.15); border-color: rgba(158,107,255,.35); color: #c4aeff; }
.role-BUGHUNTER_2   { background: rgba(155,134,102,.18); border-color: rgba(155,134,102,.4); color: #cdbca3; }
.role-BUGHUNTER_1   { background: rgba(105,255,203,.15); border-color: rgba(105,255,203,.35); color: #9dffdf; }
.role-PREMIUM       { background: rgba(138,92,255,.15); border-color: rgba(138,92,255,.35); color: #b794ff; }
.role-USER          { background: rgba(85,255,85,.15); border-color: rgba(85,255,85,.35); color: #8dff8d; }
.role-REGULAR_USER  { background: var(--surface-3); border-color: rgba(255,255,255,.1); color: #9a9aa0; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.stat-tile .icon { margin-bottom: 10px; opacity: .9; }
.stat-tile .icon svg { width: 20px; height: 20px; }
.stat-tile .value { font-size: 15px; font-weight: 700; margin-bottom: 2px; word-break: break-word; }
.stat-tile .value.muted { color: var(--muted); font-weight: 500; font-style: italic; }
.stat-tile .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-tile.accent-ok    { background: linear-gradient(160deg, rgba(34,197,94,.10), var(--surface) 60%); border-color: rgba(34,197,94,.25); }
.stat-tile.accent-blue  { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); border-color: var(--accent-border); }
.stat-tile.accent-muted { }

.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; }

.friend-add-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.friend-add-row input { flex: 1 1 160px; min-width: 0; cursor: text; }
.friend-add-row .btn { flex: 0 0 auto; }

.friend-add-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 20;
}
.friend-add-suggestion-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .15s;
}
.friend-add-suggestion-row:hover, .friend-add-suggestion-row.active { background: var(--surface-2); }
.friend-add-suggestion-row img { width: 26px; height: 26px; border-radius: 50%; image-rendering: pixelated; flex-shrink: 0; }
.friend-add-suggestion-name { flex: 1; min-width: 0; font-size: 13px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-add-suggestion-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.friend-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin: 16px 0 8px;
}
.friend-row-list { display: flex; flex-direction: column; gap: 8px; }
.friend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.friend-row img.avatar { width: 36px; height: 36px; border-radius: 50%; image-rendering: pixelated; flex: none; }
.friend-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.friend-row-name { font-weight: 600; font-size: 13.5px; color: var(--txt); text-decoration: none; }
.friend-row-name:hover { text-decoration: underline; }
.friend-row .pill { align-self: flex-start; }

.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.like-btn {
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s, color .15s, transform .1s;
}
.like-btn svg { width: 13px; height: 13px; }
.like-btn:hover { border-color: var(--err); color: var(--err); }
.like-btn:active { transform: scale(.96); }
.like-btn.liked { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.like-btn.liked svg { fill: currentColor; }

.profile-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-top: 28px; margin-bottom: 24px; }
.profile-content-grid > * { margin-bottom: 0; }
@media (max-width: 700px) { .profile-content-grid { grid-template-columns: 1fr; } }

.friend-chip-row { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.friend-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; text-decoration: none; }
.friend-chip-avatar { position: relative; }
.friend-chip-avatar img { width: 44px; height: 44px; border-radius: 50%; image-rendering: pixelated; border: 2px solid var(--border-strong); }
.friend-chip-dot {
    position: absolute; bottom: -1px; right: 2px;
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid var(--surface);
}
.friend-chip-dot.online { background: var(--ok); }
.friend-chip-dot.offline { background: var(--muted); }
.friend-chip-name {
    font-size: 11px; color: var(--txt-2); text-align: center;
    max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.friend-chip:hover .friend-chip-name { color: var(--txt); }

.notif-bell-wrap { position: relative; }
.notif-bell-btn {
    position: relative;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--txt-2);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.notif-bell-btn:hover { background: var(--surface-2); color: var(--txt); }
.notif-bell-btn svg { width: 19px; height: 19px; }
.notif-bell-badge {
    position: absolute;
    top: 1px; right: 1px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--err);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg);
}

.notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: 480px;
    overflow-y: auto;
    background: rgba(10, 10, 10, .92);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 64px rgba(0,0,0,.5);
    z-index: 60;
}
.notif-panel-head {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(10, 10, 10, .92);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 15px;
}
.notif-mark-all-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-hover);
    font-size: 12.5px;
    font-weight: 600;
}
.notif-mark-all-btn:hover { color: var(--accent); }

.notif-panel-list { display: flex; flex-direction: column; }
.notif-row {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background .15s;
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--surface-2); }
.notif-row.unread { background: rgba(85, 153, 255, .06); }
.notif-row-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.notif-row-icon svg { width: 17px; height: 17px; }
.notif-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-row-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--txt); }
.notif-row-title svg { width: 12px; height: 12px; color: var(--muted); flex-shrink: 0; }
.notif-row-desc { font-size: 12.5px; color: var(--txt-2); line-height: 1.4; }
.notif-row-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.notif-row-dot {
    position: absolute; top: 18px; right: 16px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.notif-panel-empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px; }

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    transition: background .18s ease, backdrop-filter .18s ease;
}
.confirm-overlay.open {
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.confirm-dialog {
    width: 100%;
    max-width: 360px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    transform: scale(.94) translateY(10px);
    opacity: 0;
    transition: transform .18s cubic-bezier(.2, .8, .3, 1.2), opacity .18s ease;
}
.confirm-overlay.open .confirm-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.confirm-message {
    margin: 0 0 22px;
    font-size: 14.5px;
    color: var(--txt);
    line-height: 1.5;
}
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 640px) {
    .hero-illu-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-links { display: none; }
    .nav-search { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-body { flex-direction: column; align-items: center; text-align: center; }
    .pill-row, .profile-actions { justify-content: center; }
    .skin-panel { width: 100%; height: 220px; }

    nav {
        top: 0;
        max-width: none;
        margin: 0;
        border-radius: 0;
        border-width: 0 0 1px 0;
    }
}

.dash-head { margin-bottom: 20px; }
.dash-head h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.02em; }
.dash-head .sub { margin: 0; color: var(--muted); font-size: 14px; }

.dash-tabs {
    display: flex;
    gap: 4px;

    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
    display: inline-flex; align-items: center; gap: 8px;
    flex: 0 0 auto;
    padding: 9px 16px;
    background: none; border: none;
    border-radius: var(--radius-btn);
    color: var(--txt-2);
    font: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.dash-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.dash-tab:hover { background: var(--surface-2); color: var(--txt); }
.dash-tab.active { background: var(--surface-3); color: var(--txt); }

.dash-panel {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 16px;
    font-size: 14px; font-weight: 700;
}
.dash-card-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.dash-card-head svg { width: 17px; height: 17px; color: var(--accent); }
.dash-count-pill {
    padding: 2px 9px;
    background: var(--surface-3);
    border-radius: 999px;
    color: var(--txt-2);
    font-size: 12px; font-weight: 700;
}
.dash-empty {
    padding: 40px 20px;
    background: var(--surface-2);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13.5px;
    text-align: center;
}
.dash-empty-inline {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 30px 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}
.dash-empty-inline svg { width: 28px; height: 28px; opacity: .5; }

.dash-skin-card {
    position: relative;
    display: flex; align-items: flex-end;
    min-height: 380px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dash-skin-card .skin-panel { position: absolute; inset: 0; }
.dash-skin-card canvas { width: 100%; height: 100%; }
.dash-skin-caption {
    position: relative;
    width: 100%;
    padding: 16px;

    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.45) 60%, transparent);
}
.dash-welcome { margin-bottom: 8px; font-size: 17px; font-weight: 700; }

.dash-streak-card {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-streak-card.lit {
    background: linear-gradient(135deg, rgba(255,138,0,.16), rgba(255,138,0,.03));
    border-color: rgba(255,138,0,.28);
}
.dash-streak-num { font-size: 46px; font-weight: 800; line-height: 1; color: var(--muted); }
.dash-streak-card.lit .dash-streak-num { color: #ff8a00; }
.dash-streak-title { font-size: 14px; font-weight: 700; }
.dash-streak-sub { color: var(--muted); font-size: 12px; }

.dash-server-card {
    display: block;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: inherit; text-decoration: none;
    transition: border-color .15s;
}
.dash-server-card:not(.muted):hover { border-color: var(--border-strong); }
.dash-card-label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.dash-server-name {
    font-size: 15px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-server-card.muted .dash-server-name { color: var(--muted); }

.dash-mini-tile {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-mini-tile .icon { margin-bottom: 10px; }
.dash-mini-tile .icon svg { width: 19px; height: 19px; color: var(--muted); }
.dash-mini-tile .value { font-size: 24px; font-weight: 800; line-height: 1.1; }
.dash-mini-tile .label {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.dash-mini-tile.accent-blue .icon svg { color: var(--accent); }
.dash-mini-tile.accent-ok .icon svg { color: var(--ok); }

.dash-online-card {
    display: flex; flex-direction: column;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-online-list { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dash-friend-mini {
    display: flex; align-items: center; gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    color: inherit; text-decoration: none;
    transition: background .15s;
}
.dash-friend-mini:hover { background: var(--surface-2); }
.dash-friend-mini .avatar { width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0; }
.dash-friend-mini-name { font-size: 13px; font-weight: 600; }
.dash-friend-mini-sub {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%;
}
.dash-card-foot {
    margin-top: 14px; padding-top: 14px;
    background: none;
    border: none; border-top: 1px solid var(--border);
    color: var(--accent);
    font: inherit; font-size: 12.5px; font-weight: 600; text-align: left;
    cursor: pointer;
}

.dash-search {
    width: 100%;
    margin: 4px 0 12px;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--txt);
    font: inherit; font-size: 13.5px;
}
.dash-search:focus { outline: none; border-color: var(--accent); }
.dash-search::placeholder { color: var(--muted); }

.dash-filter-row {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
    margin-bottom: 16px;
}
.dash-pill-group {
    display: flex; gap: 2px;
    padding: 3px;
    background: var(--surface-2);
    border-radius: var(--radius-btn);
}
.dash-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    background: none; border: none;
    border-radius: calc(var(--radius-btn) - 3px);
    color: var(--txt-2);
    font: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.dash-pill:hover { color: var(--txt); }
.dash-pill.active { background: var(--surface-3); color: var(--txt); }
.dash-pill-num { color: var(--muted); font-size: 11px; font-weight: 700; }

.dash-friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
}
.dash-friend-card {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background .15s, border-color .15s;
}
.dash-friend-card:hover { background: var(--surface-3); border-color: var(--border); }
.dash-friend-main {
    display: flex; align-items: center; gap: 10px;
    flex: 1; min-width: 0;
    color: inherit; text-decoration: none;
}
.dash-friend-avatar { position: relative; flex-shrink: 0; }
.dash-friend-avatar img { width: 34px; height: 34px; border-radius: 7px; display: block; }
.dash-friend-dot {
    position: absolute; right: -2px; bottom: -2px;
    width: 11px; height: 11px;
    border: 2px solid var(--surface-2);
    border-radius: 50%;
    background: var(--muted);
}
.dash-friend-dot.online { background: var(--ok); }
.dash-friend-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dash-friend-name {
    font-size: 13px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-friend-sub {
    color: var(--muted);
    font-size: 11px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-friend-card .friend-remove-btn { flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.dash-friend-card:hover .friend-remove-btn { opacity: 1; }

.dash-kv { display: flex; flex-direction: column; }
.dash-kv-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.dash-kv-row:last-child { border-bottom: none; }
.dash-kv-row > span { color: var(--muted); }

@media (max-width: 600px) {
    .dash-head h1 { font-size: 24px; }

    .dash-friend-card .friend-remove-btn { opacity: 1; }
}

.dash-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-tile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-tile-pair > * { min-width: 0; }
.dash-activity-slot { grid-column: 1 / -1; }
.dash-activity-slot > *, .dash-col > .badges-card { margin: 0; }

.dash-col > .dash-skin-card { flex: 1; }

.dash-streak-hero {
    display: flex; align-items: center; gap: 20px;
    padding: 22px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.dash-streak-hero.lit {
    background: linear-gradient(135deg, rgba(255,138,0,.16), rgba(255,138,0,.03));
    border-color: rgba(255,138,0,.28);
}
.dash-streak-num.big { font-size: 60px; }
.dash-streak-hero.lit .dash-streak-num { color: #ff8a00; }
.dash-streak-record { margin-top: 6px; color: var(--muted); font-size: 12px; }

.dash-progress {
    height: 6px;
    margin: 16px 0 10px;
    background: var(--surface-3);
    border-radius: 999px;
    overflow: hidden;
}
.dash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8a00, #ffb347);
    border-radius: 999px;
}
.dash-note { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; }

.dash-steps { display: flex; flex-direction: column; gap: 8px; }
.dash-step {
    position: relative;
    background: var(--surface-2);
    border-radius: var(--radius);
    overflow: hidden;
}

.dash-step-bar {
    position: absolute; inset: 0 auto 0 0;
    background: rgba(255,138,0,.14);
}
.dash-step.done .dash-step-bar { background: rgba(255,138,0,.22); }
.dash-step-body {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    font-size: 13px;
}
.dash-step-days {
    min-width: 46px;
    color: var(--muted);
    font-weight: 800; font-variant-numeric: tabular-nums;
}
.dash-step.done .dash-step-days { color: #ff8a00; }
.dash-step-label { font-weight: 600; }
.dash-step-state { margin-left: auto; color: var(--muted); font-size: 12px; }
.dash-step.done .dash-step-state { color: var(--ok); }

.dash-badge-list { display: flex; flex-direction: column; gap: 6px; }
.dash-badge-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    background: var(--surface-2);
    border-radius: var(--radius);
}
.dash-badge-item img { width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; }

.dash-badge-item.locked img { filter: grayscale(1); opacity: .32; }
.dash-badge-item.locked .dash-badge-name { color: var(--txt-2); }
.dash-badge-text { flex: 1; min-width: 0; }
.dash-badge-name { font-size: 13.5px; font-weight: 700; }
.dash-badge-desc { margin-top: 2px; color: var(--muted); font-size: 12px; }
.dash-badge-state {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 11.5px; font-weight: 600;
}
.dash-badge-item:not(.locked) .dash-badge-state { color: var(--ok); }

@media (max-width: 900px) {
    .dash-overview { grid-template-columns: 1fr; }
    .dash-skin-card { min-height: 320px; }
    .dash-badge-item { flex-wrap: wrap; }
    .dash-badge-state { margin-left: 52px; }
}

.profile-hero.has-bg { background: var(--surface-2); overflow: hidden; }

.profile-bg { position: absolute; inset: 0; z-index: 0; }
.profile-bg-media {
    width: 100%; height: 100%;

    object-fit: cover;
    object-position: center;
    display: block;
}

.profile-bg-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(10,10,12,.35) 0%,
        rgba(10,10,12,.55) 55%,
        rgba(10,10,12,.88) 100%);
}

.profile-hero.has-bg > .profile-body { position: relative; z-index: 1; }

.bg-edit { position: absolute; top: 14px; right: 14px; z-index: 2; }
.bg-edit-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: var(--txt-2);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.bg-edit-btn:hover { background: rgba(0,0,0,.7); color: var(--txt); border-color: rgba(255,255,255,.28); }
.bg-edit-btn svg { width: 15px; height: 15px; }
.bg-edit.busy .bg-edit-btn { opacity: .5; pointer-events: none; }

.bg-edit-menu[hidden] { display: none; }
.bg-edit-menu {
    position: absolute; top: 38px; right: 0;
    display: flex; flex-direction: column;
    min-width: 168px;
    padding: 5px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.bg-edit-menu button {
    padding: 9px 11px;
    background: none; border: none;
    border-radius: var(--radius-sm);
    color: var(--txt);
    font: inherit; font-size: 13px; text-align: left;
    cursor: pointer;
}
.bg-edit-menu button:hover:not(:disabled) { background: var(--surface-2); }
.bg-edit-menu button:disabled { color: var(--muted); cursor: default; }

@font-face {
    font-family: 'Nick Tech';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/nick-tech.woff2') format('woff2');
}
@font-face {
    font-family: 'Nick Pixel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nick-pixel.woff2') format('woff2');
}
@font-face {
    font-family: 'Nick Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nick-narrow.woff2') format('woff2');
}
@font-face {
    font-family: 'Nick Poster';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nick-poster.woff2') format('woff2');
}
@font-face {
    font-family: 'Nick Gothic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nick-gothic.woff2') format('woff2');
}
@font-face {
    font-family: 'Nick Bubble';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nick-bubble.woff2') format('woff2');
}
@font-face {
    font-family: 'Nick Horror';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/nick-horror.woff2') format('woff2');
}

.nick-anim {
    --nick-a: currentColor;
    --nick-b: currentColor;
    --nick-c: color-mix(in srgb, var(--nick-a), var(--nick-b));
    --nick-angle: 90deg;

    --nick-speed: 1;
    --nick-calm: 1;
    --nick-dur: 3s;
    --nick-time: calc(var(--nick-dur) * var(--nick-calm) / var(--nick-speed));

    --nick-light: color-mix(in srgb, var(--nick-a) 30%, #fff);
    --nick-dark: color-mix(in srgb, var(--nick-a) 45%, #000);
    --nick-darker: color-mix(in srgb, var(--nick-a) 18%, #000);

    display: inline-block;

    padding: 0 1px;
    margin: 0 -1px;
}

.nick-font-mono   { font-family: var(--mono); }
.nick-font-tech   { font-family: 'Nick Tech', var(--font); font-weight: 700; letter-spacing: .02em; }
.nick-font-pixel  { font-family: 'Nick Pixel', var(--font); font-weight: 400; font-size: .78em; letter-spacing: .04em; }
.nick-font-narrow { font-family: 'Nick Narrow', var(--font); font-weight: 400; letter-spacing: .03em; }
.nick-font-poster { font-family: 'Nick Poster', var(--font); font-weight: 400; }
.nick-font-gothic { font-family: 'Nick Gothic', var(--font); font-weight: 400; }
.nick-font-bubble { font-family: 'Nick Bubble', var(--font); font-weight: 400; }
.nick-font-horror { font-family: 'Nick Horror', var(--font); font-weight: 400; }

.nick-flow, .nick-wave, .nick-shine {
    filter: drop-shadow(0 0 0.1px var(--nick-a))
            drop-shadow(0 0 4px color-mix(in srgb, var(--nick-b) 50%, transparent));
}

.nick-flow {
    --nick-dur: 3.2s;
    background-image: linear-gradient(var(--nick-angle),
        var(--nick-a), var(--nick-c), var(--nick-b), var(--nick-c), var(--nick-a));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nick-flow var(--nick-time) linear infinite;
}
@keyframes nick-flow { to { background-position: -200% 0; } }

.nick-pulse {
    --nick-dur: 3.2s;
    animation: nick-pulse var(--nick-time) ease-in-out infinite;
    text-shadow: 0 0 5px color-mix(in srgb, currentColor 55%, transparent);
}
@keyframes nick-pulse {
    0%, 100% { color: var(--nick-a); }
    33%      { color: var(--nick-c); }
    66%      { color: var(--nick-b); }
}

.nick-wave {
    --nick-dur: 2.6s;
    background-image: repeating-linear-gradient(var(--nick-angle),
        var(--nick-a) 0%, var(--nick-c) 12%, var(--nick-b) 24%, var(--nick-c) 36%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nick-wave var(--nick-time) linear infinite;
}
@keyframes nick-wave { to { background-position: -220% 0; } }

.nick-shine {
    --nick-dur: 3.6s;
    background-image:
        linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.92) 50%, transparent 60%),
        linear-gradient(var(--nick-angle), var(--nick-a), var(--nick-c), var(--nick-b));
    background-size: 220% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nick-shine var(--nick-time) ease-in-out infinite;
}
@keyframes nick-shine {
    0%        { background-position: 150% 0, 0 0; }
    55%, 100% { background-position: -70% 0, 0 0; }
}

.nick-glow {
    --nick-dur: 2.8s;
    background-image: linear-gradient(var(--nick-angle),
        var(--nick-a), var(--nick-c), var(--nick-b));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: nick-glow var(--nick-time) ease-in-out infinite;
}
@keyframes nick-glow {
    0%, 100% { filter: drop-shadow(0 0 2px var(--nick-a)); }
    50%      { filter: drop-shadow(0 0 9px var(--nick-b)); }
}

.nick-neon {
    --nick-dur: 3s;
    color: var(--nick-light);
    -webkit-text-stroke: 0.6px var(--nick-a);
    paint-order: stroke fill;
    animation: nick-neon var(--nick-time) ease-in-out infinite;
}
@keyframes nick-neon {
    0%, 100% {
        text-shadow: 0 0 3px var(--nick-a), 0 0 10px color-mix(in srgb, var(--nick-b) 60%, transparent);
    }
    50% {
        text-shadow: 0 0 5px var(--nick-a), 0 0 20px color-mix(in srgb, var(--nick-b) 85%, transparent);
    }
}

.nick-toon {
    --nick-dur: 4s;
    color: var(--nick-a);
    -webkit-text-stroke: 2.4px var(--nick-darker);
    paint-order: stroke fill;
    text-shadow: 0 2.5px 0 var(--nick-darker);
    animation: nick-toon var(--nick-time) ease-in-out infinite;
}
@keyframes nick-toon {
    0%, 100% { color: var(--nick-a); }
    50%      { color: var(--nick-b); }
}

@media (prefers-reduced-motion: reduce) {
    .nick-anim { --nick-calm: 3; }
}

.nick-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,.045), transparent 70%),
        var(--surface-2);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .2px;
    overflow: hidden;
}

.nick-section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-2);
}
.nick-section { margin-bottom: 20px; }

.nick-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 8px;
}
.nick-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--txt);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s, background .15s, transform .1s;
}
.nick-tile:hover { background: var(--surface-3); }
.nick-tile:active { transform: scale(.985); }
.nick-tile.active { border-color: var(--accent); background: var(--surface-3); }
.nick-tile-off { color: var(--muted); font-weight: 600; font-size: 13px; }

.nick-color-strip {
    height: 34px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.nick-dropper-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.nick-dropper { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nick-dropper > span { font-size: 11px; color: var(--muted); }

.nick-dropper input[type="color"] {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: none;
    cursor: pointer;
}
.nick-dropper input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.nick-dropper input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
.nick-dropper input[type="color"]:disabled { opacity: .35; cursor: default; }

.nick-dropper-clear {
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.nick-dropper-clear:hover { color: var(--txt); }

.nick-preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nick-preset {
    width: 74px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}
.nick-preset:hover { border-color: rgba(255,255,255,.3); }

.nick-angle-row { display: flex; align-items: center; gap: 14px; }
.nick-angle-row input[type="range"] { flex: 1; min-width: 160px; accent-color: var(--accent); }
.nick-angle-value {
    min-width: 52px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
}

.nick-font-tile { flex-direction: column; gap: 2px; min-height: 58px; }
.nick-font-sample { font-size: 21px; line-height: 1.1; }
.nick-font-label { font-size: 11px; font-weight: 500; color: var(--muted); }
.nick-font-tile.active .nick-font-label { color: var(--txt-2); }

.nav-links a.is-current { color: var(--txt); background: var(--surface-2); }

.dl-hero { padding: 72px 0 64px; }
.dl-hero h1 {
    font-size: clamp(30px, 2.6vw + 18px, 44px);
    line-height: 1.12;
    margin: 0 0 14px;
    letter-spacing: -.02em;
    font-weight: 800;
}
.dl-hero .eyebrow { margin-bottom: 22px; }
.dl-hero p.lead { margin-bottom: 0; }

.dl-card {
    max-width: 720px;
    margin: 36px auto 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: left;
    box-shadow: var(--shadow);
}

.dl-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dl-file {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 260px;
}

.dl-file-icon {
    flex: none;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-hover);
}
.dl-file-icon svg { width: 20px; height: 20px; }

.dl-file-text { min-width: 0; }
.dl-file-name {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--txt);
    overflow-wrap: anywhere;
}
.dl-file-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 3px;
    font-size: 13px;
    color: var(--txt-2);
}

.dl-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: var(--ok);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.dl-card .btn-primary { flex: none; }

.dl-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 12px;
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.dl-meta div { min-width: 0; }
.dl-meta dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.dl-meta dd {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--txt);
    font-variant-numeric: tabular-nums;
}

.dl-hash {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.dl-hash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.dl-hash code {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.6;
    color: var(--txt-2);
    overflow-wrap: anywhere;
}

.dl-copy {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--txt-2);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s;
}
.dl-copy:hover { background: var(--surface-3); color: var(--txt); }
.dl-copy:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.dl-note {
    margin: 18px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(234, 179, 8, .1);
    border: 1px solid rgba(234, 179, 8, .3);
    color: var(--txt-2);
    font-size: 13px;
}


.feature-card code {
    display: inline-block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--txt-2);
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .dl-card-head { flex-direction: column; align-items: stretch; }
    .dl-card .btn-primary { width: 100%; }
}
