/* Velix UI v3 — shared chrome for every page */

:root {
    --dash-header-h: 64px;
}

body {
    letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.dash-header {
    height: var(--dash-header-h);
    min-height: var(--dash-header-h);
    max-height: var(--dash-header-h);
    flex-wrap: nowrap;
    padding: 0 16px 0 14px;
    gap: 10px;
    background: color-mix(in srgb, var(--bg-2) 92%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
    overflow: visible;
}
.dash-header__logo { gap: 8px; }
.logo-star { width: 16px; height: 16px; }
.brand-logo { font-size: 1.05rem; letter-spacing: -0.03em; }

/* ---------- Tree-lines bar (next to wordmark; not a progress bar) ---------- */
.vx-treebar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 220px;
    height: 18px;
    color: var(--text-dim);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
.vx-treebar__svg {
    display: block;
    width: 88px;
    height: 18px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 88px;
    overflow: visible;
}
.vx-treebar__rails {
    opacity: .48;
    transition: opacity .4s ease;
}
.vx-treebar__nodes { opacity: .7; transition: opacity .4s ease; }
.vx-treebar__flow {
    color: var(--accent);
    stroke: currentColor;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    opacity: 0;
}
.vx-treebar.is-loading {
    color: var(--accent);
}
.vx-treebar.is-loading .vx-treebar__rails,
.vx-treebar.is-loading .vx-treebar__nodes {
    opacity: 1;
}
.vx-treebar.is-loading .vx-treebar__flow {
    opacity: 1;
    animation: vx-treebar-draw .75s ease forwards, vx-treebar-pulse 1.7s ease-in-out .75s infinite;
}
.vx-treebar.is-finishing .vx-treebar__flow {
    animation: vx-treebar-draw .55s ease forwards;
    opacity: 1;
}
.vx-treebar.is-done {
    color: var(--text-dim);
}
.vx-treebar.is-done .vx-treebar__rails,
.vx-treebar.is-done .vx-treebar__nodes { opacity: .48; }
.vx-treebar.is-done .vx-treebar__flow {
    stroke-dashoffset: 0;
    opacity: 0;
    animation: none;
    transition: opacity .45s ease, color .45s ease;
}
.vx-treebar__page {
    font: 650 .68rem/1 Roboto, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 7.5rem;
    opacity: .9;
    transform: translateY(0);
    transition: opacity .22s ease, transform .22s ease, color .25s ease;
}
.vx-treebar.is-loading .vx-treebar__page { color: var(--accent); }
.vx-treebar__page.is-swap {
    opacity: 0;
    transform: translateY(5px);
}
@keyframes vx-treebar-draw {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}
@keyframes vx-treebar-pulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .vx-treebar__flow {
        animation: none !important;
        stroke-dashoffset: 0;
        opacity: 0 !important;
    }
    .vx-treebar__page {
        transition: none;
        transform: none;
    }
    .vx-treebar__page.is-swap { opacity: 1; }
}


.dash-header__tab {
    font: 650 .72rem/1 Roboto, sans-serif;
    letter-spacing: .04em;
}
.dash-header__tab-inner {
    padding: 8px 11px;
    border-radius: 9px;
    gap: 7px;
}
.dash-header__tab-icon { font-size: .86rem; color: inherit; }
.dash-header__tab_active .dash-header__tab-inner {
    background: var(--text);
    color: var(--bg);
    box-shadow: none;
}
.dash-header__tab_add-service .dash-header__tab-inner,
.dash-header__tab_ideas .dash-header__tab-inner {
    border-style: solid;
    border-color: var(--line-strong);
}
.dash-header__icon-btn,
.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}
.dash-header__avatar,
.dash-header__avatar-img {
    width: 36px;
    height: 36px;
}
.dash-header__nick { font-size: .86rem; }
.dash-header__role { font-size: .62rem; }
.theme-switch { padding: 2px; }
.theme-switch__btn { padding: 6px 9px; font-size: 10px; }

/* ---------- Type / layout ---------- */
.page-head { padding: 36px 0 6px; }
.page-head h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    letter-spacing: -0.045em;
    line-height: 1.1;
}
.page-head p { font-size: .98rem; max-width: 62ch; }
.section { padding: 40px 0; }
.section-sm { padding: 22px 0; }
.container { padding: 0 20px; }
.eyebrow {
    margin-bottom: 14px;
    padding: 5px 11px;
    font-size: .72rem;
    letter-spacing: .12em;
}

.hero { padding: 48px 0 28px; }
.hero h1 {
    font-size: clamp(2rem, 4.8vw, 3.15rem);
    letter-spacing: -0.05em;
}
.hero p.lead { font-size: 1.05rem; margin-bottom: 22px; }

/* ---------- Controls ---------- */
.btn {
    border-radius: 11px;
    padding: 10px 16px;
    font-size: .88rem;
    gap: 8px;
}
.btn-sm { padding: 6px 11px; font-size: .8rem; border-radius: 9px; }
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.btn-ghost { background: transparent; }

.input, .textarea, select.input {
    border-radius: 11px;
    padding: 11px 13px;
}
.input:focus, .textarea:focus, select.input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}
.card:hover { border-color: var(--line-strong); }
.card-header { padding: 14px 16px; }
.card-body { padding: 16px; }
.card-header h2, .card-header h3 { font-size: 1rem; letter-spacing: -0.03em; }

.tag, .badge, .chip, .tool-chip {
    border-radius: 8px;
    letter-spacing: .02em;
}
.badge.private { background: rgba(255,176,32,.14); color: var(--warn); border:1px solid rgba(255,176,32,.35); }
.badge.dev { background: rgba(61,232,255,.14); color: var(--primary); border:1px solid var(--line-strong); }
.badge.maint { background: rgba(255,176,32,.14); color: var(--warn); border:1px solid rgba(255,176,32,.35); }

/* ---------- Tools hub ---------- */
.tools-bar {
    top: calc(var(--dash-header-h) - 2px);
    gap: 10px;
    margin-bottom: 10px;
}
.tools-chips { gap: 6px; margin-bottom: 14px; }
.tools-chips button {
    background: var(--panel);
    color: var(--text-dim);
    border-color: var(--line);
    border-radius: 9px;
    padding: 6px 10px;
}
.tools-chips button.on {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.tools-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tool-tile {
    background: var(--panel);
    border-color: var(--line);
    border-radius: 14px;
    min-height: 198px;
    padding: 13px;
    transition: border-color .15s ease, transform .15s ease;
}
.tool-tile:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.tool-tile h3 { font-size: .94rem; letter-spacing: -0.03em; }
.tool-tile p { color: var(--text-dim); }
.tool-like, .tool-view {
    background: var(--panel-2);
    border-color: var(--line);
    color: var(--text);
    border-radius: 9px;
}

/* ---------- Home / tools cards ---------- */
.wt-card, .project-card {
    background: var(--panel);
}
.wt-card .wt-ico, .mini-tool .ico, .tool-hero .mark {
    border-radius: 12px;
}
.hero-panel, .composer, .tool-chip, .mini-tool {
    background: var(--panel);
    border-color: var(--line);
}
.stats.card { border-radius: 16px; overflow: hidden; }
.stat .num { letter-spacing: -0.05em; }

/* ---------- Auth ---------- */
.auth-wrap { padding-top: 28px; }
.auth-wrap .card { box-shadow: var(--shadow); }
.tg-widget--official { margin: 12px 0; }

/* ---------- Chat / forum ---------- */
.messenger-rail,
.profile-messenger__sidebar { background: var(--bg-2); }
.profile-messenger__dialog { border-radius: 12px; }
.profile-messenger__dialog:hover { background: var(--hover); }
.profile-messenger__dialog.on { background: var(--hover); }
.bubble .pad { border-radius: 14px 14px 14px 5px; }
.iconish, .composer-row textarea, .forum-compose {
    background: var(--panel-2);
    border-color: var(--line);
    color: var(--text);
    border-radius: 12px;
}
.picker, .modal-card {
    background: var(--panel);
    border-color: var(--line);
}
.forum-board, .forum-threads, .forum-post {
    background: var(--panel);
    border-color: var(--line);
}
.forum-board__head, .forum-threads__head {
    background: var(--panel-2);
    border-bottom-color: var(--line);
    color: var(--text-dim);
}
.forum-board__row:hover, .forum-threads__row:hover { background: var(--hover); }
.forum-board__icon { background: var(--panel-2); color: var(--text); }
.forum-pager a {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
}
.forum-quote { background: var(--panel-2); }

/* ---------- Footer / admin ---------- */
footer.site {
    background: var(--bg-2);
    border-top-color: var(--line);
    padding: 36px 0 22px;
    margin-top: 28px;
}
.admin-side { background: var(--bg-2); }
.admin-nav a { border-radius: 10px; }
.admin-nav a.active {
    background: var(--text);
    color: var(--bg);
}


.ideas-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 22px;
    align-items: start;
}
.ideas-form-card { position: sticky; top: calc(var(--dash-header-h) + 14px); }
.ideas-board { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ideas-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.ideas-board__head h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}
.ideas-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ideas-filters .chip { text-decoration: none; padding: 6px 11px; font-size: .78rem; }
.idea-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    align-items: flex-start;
}
.idea-card .idea-card__body { min-width: 0; flex: 1; }
.idea-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.idea-card h3 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: -0.03em;
    line-height: 1.3;
}
.idea-card p {
    margin: 8px 0 10px;
    color: var(--text-dim);
    white-space: pre-line;
    font-size: .92rem;
}
.idea-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
}
.idea-vote { margin: 0; flex-shrink: 0; }
.idea-vote button {
    appearance: none;
    min-width: 48px;
    padding: 8px 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font: 700 .88rem/1 Roboto, sans-serif;
}
.idea-vote button:hover { border-color: var(--line-strong); background: var(--hover); }
.idea-vote.on button {
    border-color: var(--text);
    background: var(--text);
    color: var(--bg);
}
.idea-vote i { font-size: 1.05rem; }
@media (max-width: 900px) {
    .ideas-layout { grid-template-columns: 1fr; }
    .ideas-form-card { position: static; }
}

/* ---------- Homepage (studio, scoped to .home) ---------- */
.home {
    --home-gold: #ffb020;
    --home-ink: #f3efe4;
    --font: 'Figtree', 'Segoe UI', sans-serif;
    --font-display: 'Syne', 'Montserrat', sans-serif;
    overflow-x: clip;
    font-family: var(--font);
    padding-bottom: 8px;
}
.home h1,
.home h2,
.home h3 {
    font-family: var(--font-display);
    font-weight: 750;
    color: var(--home-ink, var(--text));
}
.home .btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.home .btn-ghost:hover {
    background: var(--hover);
    color: var(--text);
}
.home-fetch__go,
.home .btn-primary.home-gold {
    background: var(--home-gold);
    color: #1a1204;
    border-color: transparent;
    box-shadow: none;
}
.home-fetch__go:hover,
.home .btn-primary.home-gold:hover {
    filter: brightness(1.06);
    transform: none;
    color: #1a1204;
}

.home-hero {
    position: relative;
    padding: 48px 0 8px;
}
.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
    gap: 28px 48px;
    align-items: end;
}
.home-hero__copy { min-width: 0; }
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font: 650 .72rem/1 var(--font);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.home-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--home-gold);
}
.home-hero h1 {
    margin: 0 0 16px;
    max-width: 100%;
    font-size: clamp(2.15rem, 6vw, 3.8rem);
    letter-spacing: -0.05em;
    line-height: 1.02;
    color: var(--home-ink, var(--text));
    overflow-wrap: break-word;
}
.home-dot { color: var(--home-gold); }
.home-hero .lead {
    margin: 0;
    max-width: 42ch;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-dim);
}
.home-hero .lead code,
.home-fetch-tip code {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .86em;
    font-weight: 650;
    letter-spacing: 0;
    padding: .12em .42em;
    border-radius: 6px;
    background: color-mix(in srgb, var(--home-gold) 16%, transparent);
    color: var(--home-ink, var(--text));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--home-gold) 28%, transparent);
}

.home-fetch {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 16px 14px;
    border: 0;
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--home-gold) 16%, transparent), transparent 58%),
        color-mix(in srgb, var(--panel) 90%, #fff 5%);
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(0, 0, 0, .55);
}
.home-fetch__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.home-fetch__label {
    font: 700 .68rem/1 var(--font);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.home-fetch__platforms {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}
.home-fetch__platforms span {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--panel-2) 80%, transparent);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--text);
    font-size: .82rem;
}
.home-fetch__platforms .fa-instagram { color: #f56040; }
.home-fetch__platforms .fa-tiktok { color: #25f4ee; }
.home-fetch__platforms .fa-youtube { color: #ff5a5a; }
.home-fetch__platforms .fa-facebook { color: #5aa4ff; }
.home-fetch__row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 6px 6px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 78%, var(--panel) 22%);
    box-shadow: 0 0 0 1px var(--line);
    transition: box-shadow .15s ease;
}
.home-fetch__row:focus-within {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--home-gold) 70%, var(--line));
}
.home-fetch__ico {
    flex: 0 0 auto;
    color: var(--text-dim);
    width: 22px;
    text-align: center;
}
.home-fetch__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: 500 1rem/1.35 var(--font);
    padding: 10px 4px;
    outline: none;
}
.home-fetch__input::placeholder { color: var(--text-dim); opacity: .8; }
.home-fetch__go {
    flex: 0 0 auto;
    border-radius: 11px;
    padding: 11px 18px;
    white-space: nowrap;
}

.home-fetch-tip {
    margin: 10px 0 0;
    color: var(--text-dim);
    font-size: .82rem;
}
.home-fetch-panel {
    margin-top: 18px;
    max-width: 100%;
}
.home-fetch-status {
    color: var(--text-dim);
    font-size: .88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}
.home-fetch-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--home-gold);
    border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--panel) 88%, #fff 4%);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--text);
    font-size: .88rem;
}
.home-fetch-error .btn { text-decoration: none; }
.home-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.home-profile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border-left: 3px solid var(--home-gold);
    border-radius: 0 14px 14px 0;
    background: color-mix(in srgb, var(--panel) 88%, #fff 4%);
    box-shadow: 0 0 0 1px var(--line);
}
.home-profile__ava {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--panel-2);
    box-shadow: 0 0 0 1px var(--line);
}
.home-profile__plat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.home-profile strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: var(--home-ink, var(--text));
}
.home-profile em {
    font-style: normal;
    font-size: .82rem;
    color: var(--text-dim);
}
.home-profile p {
    margin: 0;
    font-size: .78rem;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-profile__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.home-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.home-find {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 240px;
    max-width: 420px;
    color: var(--text-dim);
    font-size: .88rem;
}
.home-find i { flex: 0 0 auto; font-size: .78rem; }
.home-find input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: 500 .9rem/1.3 var(--font);
    padding: 6px 0;
    outline: none;
    border-bottom: 1px solid var(--line);
}
.home-find input:focus { border-bottom-color: var(--home-gold); }
.home-find button {
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: var(--text);
    font: 650 .82rem/1 var(--font);
    padding: 6px 0;
    cursor: pointer;
}
.home-find button:hover { color: var(--home-gold); }
.home-stats {
    margin: 0;
    color: var(--text-dim);
    font-size: .82rem;
    letter-spacing: .01em;
}
.home-stats b {
    color: var(--text);
    font-weight: 700;
}
.home-sub--tools {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}


.home-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin: 22px 0 0;
    font-size: .88rem;
    color: var(--text-dim);
}
.home-quick span { letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; font-weight: 700; }
.home-quick a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.home-quick a:hover { border-bottom-color: var(--home-gold); color: var(--text); }
.home-quick__more { color: var(--text-dim) !important; }

.home-dest {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.home-dest a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 92px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    box-shadow: 0 0 0 1px var(--line);
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.home-dest a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--panel) 92%, var(--home-gold) 6%);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--home-gold) 35%, var(--line));
}
.home-dest a:hover strong { color: var(--home-gold); }
.home-dest a:hover .home-dest__ico { color: var(--home-gold); }
.home-dest__ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    color: var(--text-dim);
    font-size: .82rem;
}
.home-dest strong {
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: -0.03em;
    color: var(--home-ink, var(--text));
}
.home-dest span:not(.home-dest__ico) {
    color: var(--text-dim);
    font-size: .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section {
    padding: 48px 0 0;
}
.home-section > .container,
.home-section_last {
    border-top: 1px solid var(--line);
    padding-top: 36px;
}
.home-section_last { padding-bottom: 12px; }
.home-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.home-head h2 {
    margin: 0;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-dim);
}
.home-head a,
.home-acts > a:not(.btn) {
    color: var(--text);
    font-size: .84rem;
    font-weight: 650;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.home-head a:hover,
.home-acts > a:not(.btn):hover {
    border-bottom-color: var(--home-gold);
    color: var(--text);
}

.home-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 28px;
}
.home-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}
.home-tool:hover { color: var(--text); }
.home-tool:hover .home-tool__go { color: var(--home-gold); }
.home-tool__ico {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--chip, var(--text)) 16%, transparent);
    color: var(--chip, var(--text));
    font-size: .9rem;
}
.home-tool__copy {
    flex: 1 1 auto;
    min-width: 0;
}
.home-tool strong,
.home-row strong {
    display: block;
    font-size: .92rem;
    letter-spacing: -0.02em;
    font-weight: 650;
}
.home-tool em,
.home-row em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
    font-size: .75rem;
    color: var(--text-dim);
}
.home-tool__go {
    flex: 0 0 auto;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
    align-items: start;
}
.home-rows { display: flex; flex-direction: column; }
.home-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}
.home-row:hover { color: var(--text); background: transparent; }
.home-row:hover strong { color: var(--home-gold); }
.home-row__ico,
.home-row__vote {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    color: var(--text-dim);
    font-size: .78rem;
}
.home-row__vote {
    font: 700 .75rem/1 var(--font);
    color: var(--text);
}
.home-row > span:last-child { min-width: 0; }
.home-acts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 16px;
}
.home-empty { margin: 0 0 12px; }
.home-skills {
    margin: 14px 0 0;
    color: var(--text);
    font-size: .88rem;
    letter-spacing: -0.01em;
}
.home-facts { margin: 14px 0 0; }
.home-note {
    max-width: var(--maxw);
    margin: 28px auto 0;
    padding: 0 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: .75rem;
}

html[data-theme="light"] .home { --home-ink: var(--text); }
html[data-theme="light"] .home-hero h1 { color: var(--text); }
html[data-theme="light"] .home-fetch {
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--home-gold) 18%, transparent), transparent 58%),
        var(--panel);
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(16, 18, 28, .18);
}
html[data-theme="light"] .home-fetch__row {
    background: var(--bg);
}
html[data-theme="light"] .home-dest a {
    background: var(--panel);
}
html[data-theme="light"] .home-profile,
html[data-theme="light"] .home-fetch-error { background: var(--panel); }

@media (max-width: 900px) {
    .home-hero__grid { grid-template-columns: 1fr; gap: 20px; }
    .home-split,
    .home-tools { grid-template-columns: 1fr; }
    .home-dest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .home-hero { padding-top: 28px; }
    .home-hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.25rem); letter-spacing: -0.04em; }
    .home-hero .lead { max-width: none; }
    .home-fetch { padding: 12px; border-radius: 16px; }
    .home-fetch__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .home-fetch__platforms { justify-content: flex-start; }
    .home-dest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-dest a { min-height: 84px; padding: 12px; }
    .home-sub { margin-top: 16px; }
    .home-find { max-width: none; flex: 1 1 100%; }
    .home-section { padding-top: 36px; }
}
@media (max-width: 520px) {
    .home-fetch__row { flex-wrap: wrap; padding: 8px; }
    .home-fetch__ico { display: none; }
    .home-fetch__input { flex: 1 1 100%; padding: 8px 6px; }
    .home-fetch__go { width: 100%; justify-content: center; }
}

.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.lab-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.lab-opts label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .82rem;
    min-width: 120px;
    flex: 1 1 140px;
}
.lab-canvas {
    width: 100%;
    max-height: 240px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-2);
}
.lab-clock {
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    padding: 18px 8px;
    color: var(--accent);
}
.lab-frames {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}
.lab-scripts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 860px) {
    .lab-scripts { grid-template-columns: 1fr; }
}
kbd {
    font: 0.8em ui-monospace, Consolas, monospace;
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--panel-2);
}
.vx-menu {
    position: fixed; z-index: 400;
    min-width: 248px; max-width: min(320px, calc(100vw - 16px));
    max-height: min(72vh, 520px); overflow: auto;
    padding: 6px; background: var(--panel); border: 1px solid var(--line-strong);
    border-radius: 16px; color: var(--text);
    font: 500 13px/1.3 Roboto, sans-serif;
    display: none; box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.vx-menu.show { display: block; }
.vx-menu__top { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.vx-menu__top strong { display: block; }
.vx-menu__filter { display: block; margin-top: 3px; font-size: 10px; color: var(--text-dim); }
.vx-menu__label {
    padding: 8px 10px 4px; font-size: 10px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
}
.vx-menu button, .vx-menu a.vx-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    border: 0; background: transparent; color: inherit; text-align: left;
    text-decoration: none; padding: 8px 10px; border-radius: 9px; cursor: pointer; font: inherit;
}
.vx-menu button:hover, .vx-menu button.on, .vx-menu a.vx-item:hover, .vx-menu a.vx-item.on { background: var(--hover); }
.vx-menu .vx-ico { width: 18px; text-align: center; color: var(--text-dim); font-size: 12px; }
.vx-menu .vx-kbd { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.vx-menu .vx-sep { height: 1px; background: var(--line); margin: 5px 6px; }
.vx-menu .vx-danger { color: #ff8a8a; }
.lab-sibs { display: flex; flex-wrap: wrap; gap: 6px; }
.diens-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.diens-modes .chip { cursor: pointer; user-select: none; }
.diens-modes input { margin-right: 6px; }
.diens-dict, .diens-extra { display: flex; flex-wrap: wrap; gap: 6px; }
.diens-extra { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.diens-extra strong { width: 100%; font-size: .82rem; }
.diens-chip {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 5px 9px; border-radius: 9px;
    background: var(--panel-2); border: 1px solid var(--line);
    font-size: .82rem;
}
.diens-chip[data-core="1"] { border-color: var(--line-strong); }
.diens-chip em { font-style: normal; color: var(--text-dim); font-size: .7rem; }
#diensIn, #diensOut { min-height: 200px; font-family: var(--font); }
@media (max-width: 860px) {
    .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .dash-header__tabs.open {
        display: flex !important;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }
}

/* Mobile nav sheet + tools (wins over app.css) */
.nav-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--dash-header-h);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    z-index: 35;
}
.nav-sheet-overlay.show { display: block; }
body.nav-open { overflow: hidden; }
.dash-header__search { display: none; }

@media (max-width: 860px) {
    .dash-header__account-meta { display: none; }
    .dash-header__menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--line);
        background: var(--panel);
        color: var(--text);
    }
    .dash-header__tabs {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 8px;
        left: auto;
        bottom: auto;
        width: min(380px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        height: auto;
        background: var(--panel);
        color: var(--text);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 10px;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 4px;
        max-height: min(72dvh, calc(100dvh - var(--dash-header-h) - 16px));
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 60;
        box-shadow: var(--shadow);
    }
    .dash-header__tabs.open { display: flex !important; }
    .dash-header__tab {
        width: 100%;
        min-height: 44px;
        text-transform: none;
        letter-spacing: 0;
        font-size: .95rem;
    }
    .dash-header__tab-inner {
        min-height: 44px;
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
    }
    .dash-header__search {
        display: block;
        margin: 0 0 10px;
    }
    .dash-header__search .input {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
        background: var(--bg);
        color: var(--text);
        border: 1px solid var(--line);
    }
    .theme-toggle, .theme-switch, .dash-header__icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .tools-bar { flex-wrap: wrap; }
    .tools-search { flex: 1 1 100%; min-width: 0; }
    .tools-sort { flex: 1 1 160px; }
}

@media (min-width: 861px) {
    html.ui-desktop .nav-sheet-overlay { display: none !important; }
    html.ui-desktop .dash-header__search { display: none !important; }
}
.nav-sheet-overlay.show { display: block !important; }

@media (max-width: 900px) {
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tool-tile { min-height: 180px; }
}
@media (max-width: 560px) {
    .tools-grid { grid-template-columns: 1fr; }
    .tool-tile { min-height: 0; }
    .tool-tile h3 { font-size: 1rem; }
    .tool-acts { margin-top: auto; }
}

@media (max-width: 420px) {
    .dash-header__icon-btn { display: none; }
}

.dash-header__auth {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 0;
    background: var(--accent, #c9a24a);
    color: #111;
    font: 750 .84rem/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
}
.dash-header__cta:hover { filter: brightness(1.08); color: #111; }
.dash-header__cta_ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}
.dash-header__cta_ghost:hover { background: var(--hover); color: var(--text); }
.dash-header__auth_sheet { display: none; }

@media (max-width: 860px) {
    .dash-header__account-meta { display: none; }
    .dash-header__auth {
        gap: 6px;
    }
    .dash-header__cta {
        min-height: 44px;
        min-width: 44px;
        padding: 0 16px;
        font-size: .9rem;
    }
    .dash-header__auth_sheet {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }
    .dash-header__auth_sheet .dash-header__cta { width: 100%; }
}

@media (max-width: 560px) {
    .dash-header__search-pop { display: none; }
    .dash-header__icon-btn { display: none; }
    .dash-header__actions { display: flex; }
    .theme-wrap { display: flex; }
    .dash-header__cta_ghost { padding: 0 12px; }
}

@media (max-width: 380px) {
    .dash-header__cta { padding: 0 12px; font-size: .84rem; }
}


/* ---------- Logged-in header lock (one 64px row) ---------- */
.dash-header__account-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    line-height: 1.15;
}
.dash-header__nick,
.dash-header__nick .username__label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-header__role {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.dash-header__search-pop {
    position: relative;
    display: flex;
    align-items: center;
}
.dash-header__search-form {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow, 0 18px 40px rgba(0,0,0,.35));
    z-index: 90;
}
.dash-header__search-form.open,
.dash-header__search-pop.open .dash-header__search-form { display: block; }
.dash-header__search-form .input {
    width: 100%;
    font-size: 16px;
    min-height: 40px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
}

.remember-row { margin-top: -4px; margin-bottom: 16px; }
.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}
.remember-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent, var(--primary));
}

.account-page { padding-top: 20px; }
.account-wrap { max-width: 860px; }
.account-plan { margin-top: 8px; }
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.account-id {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.account-id__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--line);
    object-fit: cover;
    flex-shrink: 0;
}
.account-id__meta .muted { font-size: .85rem; }
.account-id__tg { font-size: .85rem; margin-top: 4px; }
.account-extra { margin-top: 22px; }
.account-extra h3 { font-size: .95rem; margin: 0 0 10px; }

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}
.admin-side {
    background: var(--panel, var(--bg-2));
    border-right: 1px solid var(--line);
    color: var(--text);
}
.admin-main { background: var(--bg); color: var(--text); min-width: 0; }
.admin-top { color: var(--text); }

@media (max-width: 860px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-page .input,
    .account-page .textarea,
    .account-page select.input,
    .remember-label,
    .auth-wrap .input { font-size: 16px; }
    .dash-header__search-pop { display: none; }
}

@media (min-width: 861px) {
    .dash-header__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }
}


/* Tile open-hit must win over later .tool-tile rules */
.tool-tile { position: relative; }
.tool-tile__hit {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 3;
    display: block;
    pointer-events: auto;
}
.tool-stars, .tool-acts { position: relative; z-index: 4; }

/* === velix-chrome-cut === */
.dash-header__bar-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.dash-header__bar-tabs::-webkit-scrollbar { display: none; }
.dash-header__menu-btn { display: inline-flex !important; }
@media (min-width: 861px) {
    .dash-header__tabs {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        right: 8px;
        left: auto;
        width: min(380px, calc(100vw - 16px));
        max-height: min(72dvh, calc(100dvh - var(--dash-header-h) - 16px));
        overflow: auto;
        background: var(--panel);
        color: var(--text);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow, 0 18px 40px rgba(0,0,0,.45));
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        z-index: 60;
    }
    .dash-header__tabs.open { display: flex !important; }
    .dash-header__tabs .dash-header__tab { width: 100%; }
    .dash-header__tabs .dash-header__tab-inner { width: 100%; min-height: 44px; }
    .dash-header__search { display: block; margin: 0 0 10px; }
}

/* === home-crypto-ticker === */
.home-ticker {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2, var(--panel));
    overflow: hidden;
    min-height: 48px;
}
.home-ticker__label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    font: 800 .68rem/1 Roboto, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent, var(--text));
    border-right: 1px solid var(--line);
    white-space: nowrap;
}
.home-ticker__viewport {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.home-ticker__track {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    width: max-content;
}
.home-ticker__track.is-on {
    animation: home-ticker-move 36s linear infinite;
}
.home-ticker__track.is-on:hover { animation-play-state: paused; }
@keyframes home-ticker-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.home-ticker__wait { color: var(--muted); font-size: .85rem; padding: 0 8px; }
.home-ticker__coin {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    text-decoration: none;
    font: 650 .82rem/1 Roboto, sans-serif;
    white-space: nowrap;
}
.home-ticker__sym { letter-spacing: .04em; }
.home-ticker__px { font-variant-numeric: tabular-nums; }
.home-ticker__ch { font-size: .72rem; color: var(--muted); }
.home-ticker__coin.is-up .home-ticker__ch { color: #3c8; }
.home-ticker__coin.is-down .home-ticker__ch { color: #e36; }
.home-ticker__coin.is-flash-up { box-shadow: inset 0 0 0 1px #3c8; }
.home-ticker__coin.is-flash-down { box-shadow: inset 0 0 0 1px #e36; }
@media (max-width: 860px) {
    .dash-header__bar-tabs { display: none; }
    .home-ticker__label { display: none; }
}

/* === cat-status badges === */
.badge.paused, .badge.unavailable { background: color-mix(in srgb, #888 22%, transparent); color: var(--muted); }


.home-ticker { display: none !important; }

/* === hdr-crypto-chip === */
.hdr-tick {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
    margin-right: 4px;
    border-radius: 9px;
    padding: 0 6px 0 4px;
}
.hdr-tick:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.hdr-tick__view {
    display: block;
    height: 36px;
    overflow: hidden;
    line-height: 1;
}
.hdr-tick__col {
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.hdr-tick__row {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    font: 650 .82rem/1 Roboto, sans-serif;
    white-space: nowrap;
}
.hdr-tick__wait { color: var(--muted, var(--text-dim)); padding: 0 8px; }
.hdr-tick__mark {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--c, #888);
    border-radius: 50%;
    overflow: hidden;
}
.hdr-tick__mark svg { display: block; width: 16px; height: 16px; color: inherit; }
.hdr-tick__mark em {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 800 8px/1 Roboto, sans-serif;
    color: #fff;
    font-style: normal;
    letter-spacing: 0;
}
.hdr-tick__dollar {
    color: var(--muted, var(--text-dim));
    font-weight: 700;
    font-size: .78rem;
}
.hdr-tick__px {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    min-width: 3.4em;
}
.hdr-tick__chg {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .68rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 2px 6px;
    border-radius: 999px;
    color: var(--muted, var(--text-dim));
    background: color-mix(in srgb, var(--text) 6%, transparent);
}
.hdr-tick__chg.is-up { color: #2ea86a; background: color-mix(in srgb, #2ea86a 16%, transparent); }
.hdr-tick__chg.is-down { color: #e24b6a; background: color-mix(in srgb, #e24b6a 16%, transparent); }
.hdr-tick__chev { display: block; flex: 0 0 auto; }
@media (max-width: 860px) {
    .hdr-tick { padding: 0 2px; margin-right: 2px; }
    .hdr-tick__chg { display: none; }
    .hdr-tick__px { min-width: 0; font-size: .78rem; }
}
@media (max-width: 480px) {
    .hdr-tick__chg { display: none; }
    .hdr-tick__dollar { display: none; }
    .hdr-tick__mark { width: 14px; height: 14px; flex-basis: 14px; }
}

@media (min-width: 900px) {
    .home-dest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* === app-home-match === */
.forum-shell,
.messages-dashboard,
.profile-messenger,
.messenger-rail {
  background: var(--bg);
  color: var(--text);
  font-family: Figtree, Roboto, sans-serif;
}
.forum-shell { min-height: 100vh; }
.forum-body { color: var(--text); }
.forum-wrap { max-width: 1040px; }
.forum-pagehead h1,
.profile-messenger__list-title,
.profile-messenger__chat-head h2,
.profile-messenger__empty-title,
.forum-pagehead h1 {
  font-family: Syne, Figtree, Montserrat, sans-serif;
  color: var(--text);
}
.forum-pagehead p,
.forum-crumbs,
.forum-empty,
.forum-board__meta em,
.forum-threads__main em,
.forum-board__n,
.forum-quote cite,
.profile-messenger__dialog-preview,
.profile-messenger__chat-head p {
  color: var(--muted);
}
.forum-crumbs a { color: var(--muted); }
.forum-crumbs a:hover { color: var(--text); }

.forum-board,
.forum-threads,
.forum-post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: var(--text);
}
.forum-board__head,
.forum-threads__head {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.forum-board__row,
.forum-threads__row {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.forum-board__row:hover,
.forum-threads__row:hover,
.forum-threads__row.is-pinned,
.profile-messenger__dialog:hover {
  background: var(--hover, color-mix(in srgb, var(--text) 6%, var(--panel)));
  color: var(--text);
}
.forum-board__icon {
  background: var(--bg);
  color: var(--text);
  border-radius: 12px;
}
.forum-board__meta strong,
.forum-threads__main strong,
.forum-board__last b,
.forum-post__author strong {
  color: var(--text);
}
.forum-board__last i,
.forum-threads__ico {
  color: var(--muted);
}
.forum-pager a {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
}
.forum-pager a.on,
.forum-pager a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.forum-post__author {
  background: var(--bg);
  border-right: 1px solid var(--line);
}
.forum-post__author img { background: var(--panel); }
.forum-post__meta {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.forum-post__acts a,
.forum-post__acts button {
  color: var(--muted);
  background: none;
  border: 0;
}
.forum-post__acts a:hover,
.forum-post__acts button:hover { color: var(--text); }
.forum-quote {
  background: var(--bg);
  border-left: 3px solid var(--accent, var(--line));
  border-radius: 0 12px 12px 0;
  color: var(--text);
}
.forum-compose,
.composer-row textarea,
.profile-messenger__search {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 18px !important;
  font-family: Figtree, Roboto, sans-serif !important;
}
.composer-row textarea:focus,
.forum-compose:focus,
.profile-messenger__search:focus {
  border-color: var(--text) !important;
  outline: none;
}

.messages-dashboard { background: var(--bg); }
.messages-dashboard__body { min-height: 0; }
.messenger-rail {
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.messenger-rail__profile,
.messenger-rail__btn {
  color: var(--muted);
  border-radius: 12px;
}
.messenger-rail__btn:hover,
.messenger-rail__profile:hover {
  background: var(--hover, color-mix(in srgb, var(--text) 6%, var(--panel)));
  color: var(--text);
}
.messenger-rail__btn.on {
  color: var(--accent, var(--text));
  background: var(--hover, color-mix(in srgb, var(--text) 6%, var(--panel)));
}
.messenger-rail__divider { background: var(--line); }
.messenger-rail__profile img { border-color: var(--line); }

.profile-messenger__sidebar {
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.profile-messenger__dialog.on {
  background: var(--hover, color-mix(in srgb, var(--text) 8%, var(--panel)));
}
.profile-messenger__chat {
  background: var(--bg);
}
.profile-messenger__chat-head {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.profile-messenger__log { background: var(--bg); }
.profile-messenger__empty-icon { color: var(--muted); }

.composer-bar {
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.iconish {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
}
.iconish:hover {
  color: var(--text);
  border-color: var(--text);
}

.send-btn {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font: 700 .9rem/1 Figtree, inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.send-btn:hover { filter: brightness(1.08); }

.modal-card,
.picker {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 18px;
}

/* kill leftover app.css dark hex on these shells */
.forum-shell .forum-board__row:hover,
.forum-shell .forum-threads__row:hover,
.messages-dashboard .profile-messenger__dialog:hover { background: var(--hover, color-mix(in srgb, var(--text) 6%, var(--panel))); }
.forum-shell .forum-compose,
.messages-dashboard .composer-row textarea { background: var(--panel); }
