/* WNfo X — X/Twitter-inspired feed theme */
:root,
html[data-theme="dark"] {
    --xx-bg: #000000;
    --xx-bg-elevated: #0a0a0a;
    --xx-card: #16181c;
    --xx-card-hover: #1c1f23;
    --xx-border: #2f3336;
    --xx-border-soft: #2f333680;
    --xx-text: #e7e9ea;
    --xx-muted: #71767b;
    --xx-accent: #1d9bf0;
    --xx-accent-hover: #1a8cd8;
    --xx-accent-soft: rgba(29, 155, 240, 0.12);
    --xx-like: #f91880;
    --xx-like-soft: rgba(249, 24, 128, 0.12);
    --xx-repost: #00ba7c;
    --xx-repost-soft: rgba(0, 186, 124, 0.12);
    --xx-danger: #f4212e;
    --xx-shadow: 0 0 0 1px var(--xx-border);
    --xx-radius: 16px;
    --xx-radius-sm: 12px;
    --xx-radius-pill: 999px;
    --xx-font: "Source Sans 3", "Chirp", "Segoe UI", system-ui, -apple-system, sans-serif;
    --xx-max: 1265px;
    --xx-center: 600px;
    --xx-left: 275px;
    --xx-right: 350px;
    --xx-theme-color: #000000;
    color-scheme: dark;
}

html[data-theme="light"] {
    --xx-bg: #ffffff;
    --xx-bg-elevated: #f7f9f9;
    --xx-card: #f7f9f9;
    --xx-card-hover: #eff3f4;
    --xx-border: #eff3f4;
    --xx-border-soft: #cfd9de;
    --xx-text: #0f1419;
    --xx-muted: #536471;
    --xx-accent: #1d9bf0;
    --xx-accent-hover: #1a8cd8;
    --xx-accent-soft: rgba(29, 155, 240, 0.1);
    --xx-shadow: 0 0 0 1px var(--xx-border-soft);
    --xx-theme-color: #ffffff;
    color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.xx-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--xx-font);
    font-size: 15px;
    line-height: 1.4;
    color: var(--xx-text);
    background: var(--xx-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }

.xx-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.xx-muted { color: var(--xx-muted); }
.xx-handle { color: var(--xx-muted); font-weight: 400; }
.xx-dot { color: var(--xx-muted); margin: 0 .2rem; }

.xx-preview {
    background: var(--xx-accent);
    color: #fff;
    text-align: center;
    padding: .45rem;
    font-weight: 700;
    font-size: .85rem;
    position: relative;
    z-index: 80;
}
.xx-preview a { text-decoration: underline; }

/* —— Mobile topbar —— */
.xx-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--xx-bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--xx-border);
}
.xx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem 1rem;
    min-height: 53px;
}
.xx-topbar-logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    min-width: 0;
}
.xx-topbar-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28vw;
}
.xx-topbar-actions {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.xx-topbar-search {
    display: none;
}
.xx-topbar-search input {
    width: 140px;
    border: 1px solid var(--xx-border);
    background: var(--xx-bg-elevated);
    border-radius: var(--xx-radius-pill);
    padding: .4rem .85rem;
    outline: none;
}
.xx-topbar-search input:focus {
    border-color: var(--xx-accent);
}

.xx-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: var(--xx-text);
    color: var(--xx-bg);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.xx-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    color: var(--xx-text);
    transition: background .15s ease;
}
.xx-icon-btn:hover { background: var(--xx-accent-soft); color: var(--xx-accent); }
.xx-topbar-pub {
    background: var(--xx-accent);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}
.xx-topbar-pub:hover { background: var(--xx-accent-hover); color: #fff; }

.xx-ico-sun,
.xx-ico-moon {
    width: 18px;
    height: 18px;
    display: block;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4.5a1 1 0 0 1 1 1V7a1 1 0 1 1-2 0V5.5a1 1 0 0 1 1-1Zm0 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm7.5-2.5a1 1 0 1 1 0-2H18a1 1 0 1 1 0 2h1.5ZM7 12a1 1 0 0 1-1-1H4.5a1 1 0 1 1 0 2H6a1 1 0 0 1 1-1Zm9.6 5.1a1 1 0 0 1 0 1.4l-1.06 1.06a1 1 0 1 1-1.42-1.42l1.06-1.06a1 1 0 0 1 1.42 0ZM8.88 6.46A1 1 0 0 1 7.46 7.88L6.4 6.82A1 1 0 0 1 7.82 5.4l1.06 1.06Zm7.78-1.06a1 1 0 0 1 1.42 1.42L16.96 7.88A1 1 0 1 1 15.54 6.46l1.12-1.06ZM8.88 17.54l-1.06 1.06A1 1 0 1 1 6.4 17.18l1.06-1.06a1 1 0 0 1 1.42 1.42ZM12 17a1 1 0 0 1 1 1v1.5a1 1 0 1 1-2 0V18a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4.5a1 1 0 0 1 1 1V7a1 1 0 1 1-2 0V5.5a1 1 0 0 1 1-1Zm0 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm7.5-2.5a1 1 0 1 1 0-2H18a1 1 0 1 1 0 2h1.5ZM7 12a1 1 0 0 1-1-1H4.5a1 1 0 1 1 0 2H6a1 1 0 0 1 1-1Zm9.6 5.1a1 1 0 0 1 0 1.4l-1.06 1.06a1 1 0 1 1-1.42-1.42l1.06-1.06a1 1 0 0 1 1.42 0ZM8.88 6.46A1 1 0 0 1 7.46 7.88L6.4 6.82A1 1 0 0 1 7.82 5.4l1.06 1.06Zm7.78-1.06a1 1 0 0 1 1.42 1.42L16.96 7.88A1 1 0 1 1 15.54 6.46l1.12-1.06ZM8.88 17.54l-1.06 1.06A1 1 0 1 1 6.4 17.18l1.06-1.06a1 1 0 0 1 1.42 1.42ZM12 17a1 1 0 0 1 1 1v1.5a1 1 0 1 1-2 0V18a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.xx-ico-moon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14.5 3.1a1 1 0 0 1 1.05.14A9 9 0 1 1 5.24 16.55a1 1 0 0 1 1.3-1.32 7 7 0 0 0 8.97-9.07A1 1 0 0 1 14.5 3.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14.5 3.1a1 1 0 0 1 1.05.14A9 9 0 1 1 5.24 16.55a1 1 0 0 1 1.3-1.32 7 7 0 0 0 8.97-9.07A1 1 0 0 1 14.5 3.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-theme="dark"] .xx-ico-sun { display: block; }
html[data-theme="dark"] .xx-ico-moon { display: none; }
html[data-theme="light"] .xx-ico-sun { display: none; }
html[data-theme="light"] .xx-ico-moon { display: block; }

/* —— Shell / columns —— */
.xx-main { min-height: 70vh; }
.xx-shell {
    width: min(var(--xx-max), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--xx-left) minmax(0, var(--xx-center)) var(--xx-right);
    align-items: start;
    min-height: 100vh;
}
.xx-shell-solo {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}
.xx-col { min-width: 0; }
.xx-col-center {
    border-left: 1px solid var(--xx-border);
    border-right: 1px solid var(--xx-border);
    min-height: 100vh;
}
.xx-col-left { padding: 0 .75rem 1rem 0; }
.xx-col-right { padding: .75rem 0 2rem 1rem; }

.xx-side-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 100vh;
    overflow: auto;
    padding: .75rem 0 1.25rem;
    scrollbar-width: thin;
}

/* —— Left nav —— */
.xx-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .85rem;
    border-radius: var(--xx-radius-pill);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: .35rem;
    width: fit-content;
    transition: background .15s ease;
}
.xx-brand:hover { background: var(--xx-card-hover); }
.xx-brand-name { letter-spacing: -.02em; }

.xx-nav { display: flex; flex-direction: column; gap: .1rem; }
.xx-nav-label {
    margin: .85rem .85rem .35rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--xx-muted);
    font-weight: 700;
}
.xx-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .7rem .9rem;
    border-radius: var(--xx-radius-pill);
    font-size: 1.15rem;
    font-weight: 500;
    transition: background .15s ease;
    width: 100%;
    text-align: left;
}
.xx-nav-item:hover { background: var(--xx-card-hover); }
.xx-nav-item.is-active { font-weight: 800; }
.xx-nav-ico {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}
.xx-ico-home {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2 3 11h2.5v8.5h5.2V14h2.6v5.5h5.2V11H21L12 3.2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2 3 11h2.5v8.5h5.2V14h2.6v5.5h5.2V11H21L12 3.2z'/%3E%3C/svg%3E");
}
.xx-ico-explore {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm8.2 12.1 1.4 1.4-3.2 3.2-1.4-1.4 3.2-3.2Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm8.2 12.1 1.4 1.4-3.2 3.2-1.4-1.4 3.2-3.2Z'/%3E%3C/svg%3E");
}
.xx-ico-theme {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20V2Zm0 18a8 8 0 0 1 0-16v16Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20V2Zm0 18a8 8 0 0 1 0-16v16Z'/%3E%3C/svg%3E");
}
.xx-nav-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c, var(--xx-accent));
    flex-shrink: 0;
    box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c, var(--xx-accent)) 35%, transparent);
}

.xx-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--xx-accent);
    color: #fff;
    font-weight: 700;
    border-radius: var(--xx-radius-pill);
    padding: .85rem 1.25rem;
    transition: background .15s ease, transform .1s ease;
}
.xx-btn-primary:hover { background: var(--xx-accent-hover); }
.xx-btn-primary:active { transform: scale(.98); }
.xx-btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.xx-btn-publish {
    margin: .85rem .25rem .5rem;
    width: calc(100% - .5rem);
    font-size: 1.05rem;
}
.xx-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--xx-border-soft);
    border-radius: var(--xx-radius-pill);
    padding: .45rem 1rem;
    font-weight: 700;
    transition: background .15s ease;
}
.xx-btn-outline:hover { background: var(--xx-card-hover); }
.xx-btn-follow {
    border: 1px solid var(--xx-border-soft);
    border-radius: var(--xx-radius-pill);
    padding: .35rem .9rem;
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
    background: var(--xx-text);
    color: var(--xx-bg);
}
.xx-btn-follow:hover { opacity: .9; }

.xx-side-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding-top: 1rem;
}
.xx-theme-row { margin-top: .25rem; }
.xx-account {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .75rem;
    border-radius: var(--xx-radius-pill);
    transition: background .15s ease;
}
.xx-account:hover { background: var(--xx-card-hover); }
.xx-account-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.xx-account-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* —— Avatars —— */
.xx-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c, #536471);
    color: #fff;
    display: grid;
    place-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.xx-avatar-sm { width: 32px; height: 32px; font-size: .85rem; }
.xx-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
    border: 4px solid var(--xx-bg);
    margin-top: -36px;
}

/* —— Center timeline —— */
.xx-timeline-head {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 53px;
    padding: 0 1rem;
    background: color-mix(in srgb, var(--xx-bg) 85%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--xx-border);
}
.xx-timeline-head h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.xx-timeline-titles { flex: 1; min-width: 0; }
.xx-timeline-titles h1 { font-size: 1.05rem; }
.xx-timeline-titles p { margin: 0; font-size: .8rem; }
.xx-head-theme { margin-left: auto; }
.xx-back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    font-size: 1.15rem;
    transition: background .15s ease;
}
.xx-back:hover { background: var(--xx-card-hover); }

.xx-composer {
    padding: 1rem;
    border-bottom: 1px solid var(--xx-border);
}
.xx-composer-row {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.xx-composer-input {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--xx-muted);
    font-size: 1.2rem;
    padding: .35rem 0;
}
.xx-composer-input:hover { color: var(--xx-text); }
.xx-composer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .75rem 0 0 52px;
    padding-top: .75rem;
    border-top: 1px solid var(--xx-border);
}
.xx-composer-hint { color: var(--xx-accent); font-size: .85rem; font-weight: 600; }
.xx-search-banner { display: grid; gap: .25rem; }

.xx-feed { display: flex; flex-direction: column; }

/* —— Post cards —— */
.xx-post {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: .75rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--xx-border);
    transition: background .15s ease;
}
.xx-post:hover { background: color-mix(in srgb, var(--xx-text) 3%, transparent); }
.xx-post-full {
    display: block;
    grid-template-columns: none;
}
.xx-post-full .xx-post-head {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .85rem;
}
.xx-post-main { min-width: 0; }
.xx-post-head { margin-bottom: .15rem; }
.xx-post-names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .25rem .35rem;
    line-height: 1.25;
}
.xx-author { font-weight: 700; }
.xx-author:hover { text-decoration: underline; }
.xx-time { color: var(--xx-muted); }
.xx-post-meta {
    display: inline-block;
    margin-top: .15rem;
    color: var(--xx-muted);
    font-size: .9rem;
}
.xx-post-meta:hover { text-decoration: underline; }
.xx-post-who { min-width: 0; }
.xx-post-body { margin: .15rem 0 .55rem; }
.xx-post-body p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.xx-post-card-title {
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.xx-post-card-title a:hover { text-decoration: underline; }
.xx-post-title {
    margin: 0 0 .75rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.xx-lead {
    margin: 0 0 1rem;
    color: var(--xx-muted);
    font-size: 1.05rem;
}
.xx-post-time {
    margin: .85rem 0;
    color: var(--xx-muted);
    font-size: .95rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    align-items: center;
}
.xx-post-media {
    display: block;
    border-radius: var(--xx-radius);
    overflow: hidden;
    border: 1px solid var(--xx-border);
    margin: .45rem 0 .35rem;
    background: var(--xx-card);
}
.xx-post-media img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}
.xx-post-media-static { margin: .85rem 0; }
.xx-post-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: .85rem 0;
    margin: .35rem 0;
    border-top: 1px solid var(--xx-border);
    border-bottom: 1px solid var(--xx-border);
    color: var(--xx-muted);
    font-size: .95rem;
}
.xx-post-stats strong { color: var(--xx-text); font-weight: 700; }

.xx-post-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: .35rem;
}
.xx-post-full .xx-post-actions {
    max-width: none;
    padding: .35rem 0;
    border-bottom: 1px solid var(--xx-border);
}
.xx-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--xx-muted);
    font-size: .85rem;
    min-width: 0;
    padding: .25rem;
    border-radius: var(--xx-radius-pill);
    transition: color .15s ease;
}
.xx-action:hover { color: var(--xx-accent); }
.xx-action:hover .xx-action-ico {
    background-color: var(--xx-accent-soft);
    color: var(--xx-accent);
}
.xx-action:nth-child(2):hover { color: var(--xx-repost); }
.xx-action:nth-child(2):hover .xx-action-ico {
    background-color: var(--xx-repost-soft);
    color: var(--xx-repost);
}
.xx-action-like:hover,
.xx-action-like.is-liked { color: var(--xx-like); }
.xx-action-like:hover .xx-action-ico,
.xx-action-like.is-liked .xx-action-ico {
    background-color: var(--xx-like-soft);
    color: var(--xx-like);
}
.xx-action-like.is-pulse .xx-action-ico {
    animation: xx-like-pulse .35s ease;
}
.xx-action.is-copied { color: var(--xx-accent); }
.xx-action-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: background .15s ease, color .15s ease;
}
.xx-action-ico::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}
.xx-ico-reply::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14.05 5.4 8.2 9.75H5.5A2.5 2.5 0 0 0 3 12.25v.5A2.5 2.5 0 0 0 5.5 15.25H8.2l5.85 4.35a1 1 0 0 0 1.6-.8V6.2a1 1 0 0 0-1.6-.8ZM19 8.5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M14.05 5.4 8.2 9.75H5.5A2.5 2.5 0 0 0 3 12.25v.5A2.5 2.5 0 0 0 5.5 15.25H8.2l5.85 4.35a1 1 0 0 0 1.6-.8V6.2a1 1 0 0 0-1.6-.8ZM19 8.5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}
.xx-ico-repost::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.5 8.75A4.25 4.25 0 0 1 8.75 4.5h6.1l-1.3-1.3a1 1 0 1 1 1.4-1.4l3.2 3.2a1 1 0 0 1 0 1.4l-3.2 3.2a1 1 0 1 1-1.4-1.4l1.3-1.3h-6.1A2.25 2.25 0 0 0 6.5 8.75v2.5a1 1 0 1 1-2 0v-2.5Zm15 6.5A4.25 4.25 0 0 1 15.25 19.5H9.15l1.3 1.3a1 1 0 1 1-1.4 1.4l-3.2-3.2a1 1 0 0 1 0-1.4l3.2-3.2a1 1 0 1 1 1.4 1.4l-1.3 1.3h6.1a2.25 2.25 0 0 0 2.25-2.25v-2.5a1 1 0 1 1 2 0v2.5Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4.5 8.75A4.25 4.25 0 0 1 8.75 4.5h6.1l-1.3-1.3a1 1 0 1 1 1.4-1.4l3.2 3.2a1 1 0 0 1 0 1.4l-3.2 3.2a1 1 0 1 1-1.4-1.4l1.3-1.3h-6.1A2.25 2.25 0 0 0 6.5 8.75v2.5a1 1 0 1 1-2 0v-2.5Zm15 6.5A4.25 4.25 0 0 1 15.25 19.5H9.15l1.3 1.3a1 1 0 1 1-1.4 1.4l-3.2-3.2a1 1 0 0 1 0-1.4l3.2-3.2a1 1 0 1 1 1.4 1.4l-1.3 1.3h6.1a2.25 2.25 0 0 0 2.25-2.25v-2.5a1 1 0 1 1 2 0v2.5Z'/%3E%3C/svg%3E");
}
.xx-ico-like::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 20.4 10.55 19.1C5.4 14.45 2 11.35 2 7.55A4.55 4.55 0 0 1 6.55 3c1.55 0 3.05.75 4 1.9A4.9 4.9 0 0 1 14.55 3 4.55 4.55 0 0 1 19.1 7.55c0 3.8-3.4 6.9-8.55 11.55L12 20.4Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 20.4 10.55 19.1C5.4 14.45 2 11.35 2 7.55A4.55 4.55 0 0 1 6.55 3c1.55 0 3.05.75 4 1.9A4.9 4.9 0 0 1 14.55 3 4.55 4.55 0 0 1 19.1 7.55c0 3.8-3.4 6.9-8.55 11.55L12 20.4Z'/%3E%3C/svg%3E");
}
.xx-ico-share::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4.5a1 1 0 0 1 1 1v6.2l2.1-2.1a1 1 0 1 1 1.4 1.4l-3.8 3.8a1 1 0 0 1-1.4 0l-3.8-3.8a1 1 0 1 1 1.4-1.4l2.1 2.1V5.5a1 1 0 0 1 1-1ZM5.5 14a1 1 0 0 1 1 1v2.5h11V15a1 1 0 1 1 2 0v3.5a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1V15a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4.5a1 1 0 0 1 1 1v6.2l2.1-2.1a1 1 0 1 1 1.4 1.4l-3.8 3.8a1 1 0 0 1-1.4 0l-3.8-3.8a1 1 0 1 1 1.4-1.4l2.1 2.1V5.5a1 1 0 0 1 1-1ZM5.5 14a1 1 0 0 1 1 1v2.5h11V15a1 1 0 1 1 2 0v3.5a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1V15a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

@keyframes xx-like-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.xx-source { margin: 1rem 0 0; }

/* —— Profile / category —— */
.xx-profile-banner { border-bottom: 1px solid var(--xx-border); }
.xx-profile-cover {
    height: 140px;
    background:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--c, var(--xx-accent)) 55%, transparent), transparent 45%),
        linear-gradient(135deg, var(--c, var(--xx-accent)), color-mix(in srgb, var(--c, var(--xx-accent)) 40%, #000));
}
.xx-profile-body { padding: 0 1rem 1.1rem; }
.xx-profile-body h2 {
    margin: .55rem 0 .1rem;
    font-size: 1.25rem;
    font-weight: 800;
}
.xx-profile-bio {
    margin: .55rem 0 0;
    color: var(--xx-text);
}

.xx-section-label {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--xx-border);
}
.xx-section-label h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

/* —— Right widgets —— */
.xx-search {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--xx-card);
    border: 1px solid transparent;
    border-radius: var(--xx-radius-pill);
    padding: .7rem 1rem;
    margin-bottom: .85rem;
    transition: border-color .15s ease, background .15s ease;
}
.xx-search:focus-within {
    background: var(--xx-bg);
    border-color: var(--xx-accent);
}
.xx-search-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: var(--xx-muted);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm8.2 12.1 1.4 1.4-3.2 3.2-1.4-1.4 3.2-3.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10.5 3a7.5 7.5 0 1 1 0 15 7.5 7.5 0 0 1 0-15Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm8.2 12.1 1.4 1.4-3.2 3.2-1.4-1.4 3.2-3.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.xx-search input {
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--xx-text);
}
.xx-search input::placeholder { color: var(--xx-muted); }

.xx-widget {
    background: var(--xx-card);
    border-radius: var(--xx-radius);
    padding: .85rem 0;
    margin-bottom: 1rem;
    overflow: hidden;
}
.xx-widget h2 {
    margin: 0;
    padding: .25rem 1rem .65rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.xx-trend-list,
.xx-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.xx-trend-list li a {
    display: block;
    padding: .7rem 1rem;
    transition: background .15s ease;
}
.xx-trend-list li a:hover { background: var(--xx-card-hover); }
.xx-trend-meta,
.xx-trend-count {
    display: block;
    color: var(--xx-muted);
    font-size: .8rem;
}
.xx-trend-list strong {
    display: block;
    margin: .15rem 0;
    font-size: .95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xx-suggest-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem;
    transition: background .15s ease;
}
.xx-suggest-list li:hover { background: var(--xx-card-hover); }
.xx-suggest-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.xx-suggest-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xx-legal {
    margin: .5rem .35rem 1rem;
    color: var(--xx-muted);
    font-size: .78rem;
    line-height: 1.5;
}

/* —— Prose —— */
.xx-prose {
    font-size: 1.05rem;
    line-height: 1.55;
    word-wrap: break-word;
}
.xx-prose > *:first-child { margin-top: 0; }
.xx-prose > *:last-child { margin-bottom: 0; }
.xx-prose p { margin: 0 0 1rem; }
.xx-prose a { color: var(--xx-accent); }
.xx-prose a:hover { text-decoration: underline; }
.xx-prose h2, .xx-prose h3 {
    margin: 1.4rem 0 .65rem;
    letter-spacing: -.02em;
}
.xx-prose img {
    border-radius: var(--xx-radius-sm);
    margin: 1rem 0;
}
.xx-prose blockquote {
    margin: 1rem 0;
    padding: .35rem 0 .35rem 1rem;
    border-left: 3px solid var(--xx-border-soft);
    color: var(--xx-muted);
}
.xx-prose ul, .xx-prose ol { padding-left: 1.25rem; }
.xx-prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--xx-card);
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .9em;
}

/* —— Empty / 404 —— */
.xx-empty {
    padding: 2.5rem 1.25rem;
    text-align: center;
    display: grid;
    gap: .75rem;
    justify-items: center;
}
.xx-empty h1, .xx-empty h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}
.xx-empty p { margin: 0; max-width: 28ch; }
.xx-empty-page { max-width: 420px; margin: 2rem auto; }
.xx-error-code {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    color: var(--xx-accent);
    letter-spacing: -.04em;
}

.xx-footer { display: block; min-height: 0; }

/* —— Responsive —— */
@media (max-width: 1280px) {
    :root {
        --xx-left: 88px;
        --xx-right: 320px;
    }
    .xx-brand-name,
    .xx-nav-item > span:last-child,
    .xx-account-meta,
    .xx-btn-publish {
        display: none;
    }
    .xx-brand { padding: .55rem; }
    .xx-nav-item {
        width: 50px;
        height: 50px;
        justify-content: center;
        padding: 0;
    }
    .xx-nav-label { display: none; }
    .xx-btn-publish {
        display: grid;
        place-content: center;
        width: 50px;
        height: 50px;
        margin: .5rem auto;
        border-radius: 50%;
        padding: 0;
        font-size: 0;
    }
    .xx-btn-publish::before {
        content: "＋";
        font-size: 1.4rem;
        color: #fff;
    }
    .xx-account { justify-content: center; padding: .55rem; }
    .xx-col-left { padding-right: .25rem; }
}

@media (max-width: 1080px) {
    .xx-shell {
        grid-template-columns: var(--xx-left) minmax(0, 1fr);
    }
    .xx-col-right { display: none; }
}

@media (max-width: 720px) {
    .xx-topbar { display: block; }
    .xx-shell {
        grid-template-columns: 1fr;
    }
    .xx-col-left { display: none; }
    .xx-col-center {
        border-left: 0;
        border-right: 0;
        min-height: auto;
    }
    .xx-timeline-head { top: 53px; }
    .xx-composer-bar { margin-left: 0; }
    .xx-post {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: .85rem .9rem;
    }
    .xx-avatar { width: 36px; height: 36px; }
    .xx-post-actions { max-width: none; }
    .xx-topbar-search { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
