:root {
    --ado-primary: #6C5CE7;
    --ado-secondary: #8B7CF6;
    --ado-accent: #A78BFA;
    --ado-bg: #F7F7FB;
    --ado-surface: #FFFFFF;
    --ado-surface-soft: #F1F1F7;
    --ado-text: #17171C;
    --ado-muted: #6B6B76;
    --ado-border: #E6E6EE;
    --ado-radius-sm: 12px;
    --ado-radius: 16px;
    --ado-radius-lg: 20px;
    --ado-radius-pill: 9999px;
    --ado-shadow: 0 10px 28px rgba(17, 17, 28, 0.07);
    --ado-fast: 120ms;
    --ado-normal: 200ms;
    --ado-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ado-gradient: linear-gradient(90deg, #6C5CE7, #8B7CF6 55%, #A78BFA);
    --ado-max: 1120px;
    --ado-device: #E8E8F0;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ado-bg: #0B0B10;
        --ado-surface: #14141C;
        --ado-surface-soft: #1B1B25;
        --ado-text: #F5F5F7;
        --ado-muted: #A1A1AA;
        --ado-border: #272733;
        --ado-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
        --ado-device: #0A0A0E;
    }
}

[data-theme="dark"] {
    --ado-bg: #0B0B10;
    --ado-surface: #14141C;
    --ado-surface-soft: #1B1B25;
    --ado-text: #F5F5F7;
    --ado-muted: #A1A1AA;
    --ado-border: #272733;
    --ado-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    --ado-device: #0A0A0E;
}

[data-theme="light"] {
    --ado-bg: #F7F7FB;
    --ado-surface: #FFFFFF;
    --ado-surface-soft: #F1F1F7;
    --ado-text: #17171C;
    --ado-muted: #6B6B76;
    --ado-border: #E6E6EE;
    --ado-shadow: 0 10px 28px rgba(17, 17, 28, 0.07);
    --ado-device: #E8E8F0;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100dvh;
    font-family: var(--ado-font);
    font-size: 16px;
    line-height: 1.55;
    background: var(--ado-bg);
    color: var(--ado-text);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
.ui-icon { width: 18px; height: 18px; flex: 0 0 auto; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--ado-secondary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ado-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus { top: 12px; }

.wrap {
    width: min(var(--ado-max), calc(100% - 32px));
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: var(--ado-radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background-color var(--ado-normal), border-color var(--ado-normal), color var(--ado-normal);
}

.btn-primary {
    color: #fff;
    background: var(--ado-primary);
}

.btn-primary:hover { background: #5b4dd6; }

.btn-ghost {
    color: var(--ado-text);
    background: transparent;
    border-color: var(--ado-border);
}

.btn-text {
    color: var(--ado-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
}

.btn-text:hover { color: var(--ado-text); }

.kicker {
    margin: 0 0 10px;
    color: var(--ado-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.section { padding: 52px 0; }
.section-tight { padding: 36px 0 52px; }
.section-alt { background: var(--ado-surface); }
.section-cta { padding: 88px 0 96px; }

.section-head { max-width: 28rem; margin-bottom: 24px; }

.section h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.lede {
    margin: 10px 0 0;
    color: var(--ado-muted);
}

.split { display: grid; gap: 28px; }
.split .post-card,
.split .app-window,
.split .chat-shell,
.split .profile-shell { max-width: none; width: 100%; }
.split .post-card { background: var(--ado-surface); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--ado-border);
    background: color-mix(in srgb, var(--ado-bg) 90%, transparent);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand img { width: 28px; height: 28px; }
.brand-plus {
    background: var(--ado-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ado-text);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    border-radius: 99px;
    content: "";
}

.nav-toggle-bars::before { transform: translateY(-5px); }
.nav-toggle-bars::after { transform: translateY(3px); }

.header-nav,
.header-actions .header-login { display: none; }

.header-nav a {
    text-decoration: none;
    color: var(--ado-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.header-nav a[aria-current="page"] { color: var(--ado-text); }
.header-nav a:hover { color: var(--ado-text); }

.mobile-panel {
    display: none;
    padding: 8px 16px 20px;
    background: var(--ado-surface);
    border-top: 1px solid var(--ado-border);
}

.mobile-panel.is-open { display: grid; gap: 4px; }

.mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-panel .btn { margin-top: 8px; }

.hero {
    display: grid;
    gap: 40px;
    padding: 32px 0 48px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 6.4vw, 3.45rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.vibe {
    background: var(--ado-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin: 16px 0 0;
    max-width: 34rem;
    color: var(--ado-muted);
    font-size: 1.05rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-note { margin: 16px 0 0; color: var(--ado-muted); font-size: 0.9rem; }

.hero-visual { position: relative; }
.phone-hello {
    margin: 10px 0 8px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.phone-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.phone-composer .app-composer-field {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
    flex: 1;
    min-width: 0;
}
.preview-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ado-muted);
}
.section-head .preview-note,
.app-window .preview-note {
    text-align: left;
    margin: 12px 0 0;
}
.app-window .preview-note { margin: 0 0 8px; }
.chat-preview-note {
    padding: 12px 14px 0;
    margin: 0;
    text-align: left;
}

.device {
    width: min(322px, 100%);
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--ado-border);
    border-radius: 36px;
    background: var(--ado-device);
    box-shadow: var(--ado-shadow);
}

.device-screen {
    overflow: hidden;
    border-radius: 26px;
    background: var(--ado-surface);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ado-muted);
}

.status-pips {
    width: 18px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    opacity: 0.7;
}

.home-bar {
    width: 96px;
    height: 4px;
    margin: 4px auto 8px;
    border-radius: 99px;
    background: var(--ado-border);
}

.phone-app { padding: 4px 12px 6px; }

.device-mini { width: min(230px, 100%); }
.device-mini .phone-nav-plus { width: 32px; height: 32px; }

@media (prefers-reduced-motion: no-preference) {
    .device { animation: ado-rise 420ms ease both; }
}

@keyframes ado-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.phone-app-bar,
.phone-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ado-muted);
}

.phone-tab {
    margin: 12px 0 8px;
    font-weight: 700;
}

.phone-nav {
    margin-top: 8px;
    padding: 6px 4px 4px;
    border-top: 1px solid var(--ado-border);
}

.phone-nav .is-on { color: var(--ado-primary); }

.phone-nav-plus {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ado-primary);
    color: #fff;
}

.avatar {
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    flex: 0 0 auto;
    overflow: hidden;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.8rem; border-radius: 10px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 20px; }
.avatar-xl { width: 84px; height: 84px; font-size: 1.7rem; border-radius: 24px; }
.avatar-violet { background: #6C5CE7; }
.avatar-blue { background: #3B82F6; }
.avatar-rose { background: #DB2777; }
.avatar-green { background: #0F766E; }

.post-card {
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-bg);
}

.phone-app .post-card {
    margin-bottom: 8px;
    background: var(--ado-bg);
}
.phone-app .post-actions { font-size: 0.78rem; gap: 10px; }
.phone-app .post-comment { font-size: 0.8rem; }

.post-head { display: flex; gap: 10px; align-items: center; }
.post-name { margin: 0; font-weight: 700; }
.post-meta { margin: 0; color: var(--ado-muted); font-size: 0.8rem; }
.post-body { margin: 10px 0 0; }
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    color: var(--ado-muted);
    font-size: 0.85rem;
}

.post-actions span { display: inline-flex; align-items: center; gap: 6px; }

.post-card.is-compact .post-actions { margin-top: 8px; gap: 12px; }
.post-card.is-compact .post-actions span { font-size: 0; line-height: 0; gap: 0; }
.post-card.is-compact .post-actions .ui-icon { width: 16px; height: 16px; }
.post-card.is-compact .post-body { margin-top: 6px; font-size: 0.92rem; }

.post-comment {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ado-border);
    color: var(--ado-muted);
    font-size: 0.9rem;
}

.post-comment p { margin: 2px 0 0; }
.post-comment strong { color: var(--ado-text); margin-right: 4px; }

.community-grid {
    display: grid;
    gap: 12px;
}

.community-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    box-shadow: inset 0 4px 0 var(--ado-primary);
}

.section-alt .community-card { background: var(--ado-bg); }

.tone-rose { box-shadow: inset 0 4px 0 #DB2777; }
.tone-blue { box-shadow: inset 0 4px 0 #3B82F6; }
.tone-green { box-shadow: inset 0 4px 0 #0F766E; }
.tone-amber { box-shadow: inset 0 4px 0 #B45309; }

.community-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.community-card p { margin: 0 0 8px; color: var(--ado-muted); font-size: 0.94rem; }

.community-meta { margin-top: -6px !important; font-size: 0.82rem !important; }

.community-card.is-featured {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding: 22px;
}

.community-card.is-featured h3 { margin-top: 0; }
.community-card.is-featured .community-mark { width: 48px; height: 48px; }

.community-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ado-surface-soft);
    color: var(--ado-primary);
}

.tone-rose .community-mark { color: #DB2777; }
.tone-blue .community-mark { color: #3B82F6; }
.tone-green .community-mark { color: #0F766E; }
.tone-amber .community-mark { color: #B45309; }

.community-card:hover { border-color: color-mix(in srgb, var(--ado-primary) 28%, var(--ado-border)); }

.app-window {
    border: 1px solid var(--ado-border);
    border-radius: 20px;
    background: var(--ado-bg);
    padding: 12px 14px 14px;
    max-width: 440px;
}

.app-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ado-muted);
}

.explorer-app .post-card,
.explorer-app .product-search { background: var(--ado-surface); }

.product-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--ado-radius-pill);
    border: 1px solid var(--ado-border);
    background: var(--ado-surface);
    color: var(--ado-muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--ado-border);
    background: var(--ado-surface);
    font-size: 0.85rem;
    font-weight: 600;
}

.chip.is-on { border-color: var(--ado-primary); color: var(--ado-primary); }

.explorer-label {
    margin: 16px 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ado-muted);
}

.mini-comms,
.people-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
}

.mini-comms li,
.people-row li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mini-comms .ui-icon { color: var(--ado-primary); }
.people-row small { color: var(--ado-muted); font-size: 0.8rem; }

.chat-shell {
    max-width: 400px;
    border: 1px solid var(--ado-border);
    border-radius: 20px;
    background: var(--ado-bg);
    overflow: hidden;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ado-border);
    background: var(--ado-surface);
}

.chat-head p { margin: 0; color: var(--ado-muted); font-size: 0.8rem; }
.chat-body { display: grid; gap: 10px; padding: 14px; }

.bubble {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 16px 16px 16px 6px;
    background: var(--ado-surface);
    border: 1px solid var(--ado-border);
}

.bubble.me {
    margin-left: auto;
    border-radius: 16px 16px 6px 16px;
    background: color-mix(in srgb, var(--ado-primary) 14%, var(--ado-surface));
    border-color: transparent;
}

.bubble-row { display: grid; gap: 4px; }
.bubble-row.is-mine { justify-items: end; }
.bubble-time { color: var(--ado-muted); font-size: 0.72rem; }

.composer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--ado-border);
    background: var(--ado-surface);
}

.composer-input {
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--ado-border);
    color: var(--ado-muted);
}

.composer-game,
.composer-send {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--ado-muted);
}

.composer-send {
    background: var(--ado-primary);
    color: #fff;
}

.game-grid { display: grid; gap: 12px; }
.game-card {
    padding: 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
}
.game-card h3 { margin: 0 0 4px; font-size: 1rem; }
.game-card p { margin: 0 0 12px; color: var(--ado-muted); font-size: 0.9rem; }
.game-q { margin: 0 0 8px; font-weight: 600; font-size: 0.92rem; }
.game-demo span {
    display: inline-block;
    margin: 0 6px 0 0;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--ado-border);
    font-size: 0.85rem;
}
.ttt {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    gap: 4px;
}
.ttt span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ado-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}
.timer {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 2px solid var(--ado-primary);
    border-radius: 99px;
    font-weight: 700;
}

.profile-shell {
    max-width: 440px;
    border: 1px solid var(--ado-border);
    border-radius: 20px;
    background: var(--ado-surface);
    overflow: hidden;
}

.profile-shell::before {
    content: "";
    display: block;
    height: 72px;
    background: var(--ado-surface-soft);
}

.profile-head {
    display: flex;
    gap: 14px;
    padding: 0 20px 8px;
    margin-top: -32px;
    align-items: flex-start;
}

.profile-head .avatar-xl {
    border: 3px solid var(--ado-surface);
}

@media (max-width: 379px) {
    .profile-head {
        flex-direction: column;
    }
}

.profile-head h3 { margin: 0; }
.profile-head .lede { margin: 0; }
.profile-bio { margin: 8px 0; }
.profile-head > div { padding-bottom: 4px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags span {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ado-surface-soft);
    font-size: 0.82rem;
}

.tabs {
    display: flex;
    gap: 18px;
    padding: 8px 20px 16px;
    color: var(--ado-muted);
    font-weight: 600;
    font-size: 0.92rem;
}

.tabs [aria-current="page"] {
    color: var(--ado-text);
    box-shadow: inset 0 -2px 0 var(--ado-primary);
}

.xp-wrap { padding: 12px 20px 8px; }
.xp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ado-muted);
}
.xp-bar {
    margin: 8px 0 12px;
    height: 6px;
    border-radius: 99px;
    background: var(--ado-surface-soft);
    overflow: hidden;
}
.xp-bar span {
    display: block;
    height: 100%;
    background: var(--ado-primary);
    border-radius: 99px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ado-surface-soft);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-feed { padding: 0 16px 16px; }
.profile-feed .post-card { background: var(--ado-bg); }

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.trust-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ado-text);
}

.trust-points .ui-icon { color: var(--ado-primary); }

.trust-line {
    margin: 20px 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ai-panel { max-width: 440px; }
.ai-kicker {
    margin: 0 0 8px;
    color: var(--ado-muted);
    font-size: 0.88rem;
}
.ai-panel dl { margin: 0; }
.ai-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--ado-border);
}
.ai-panel dt { color: var(--ado-muted); }
.ai-action {
    margin: 12px 0 0;
    color: var(--ado-muted);
    font-size: 0.9rem;
}

.mod-chain {
    list-style: none;
    max-width: 440px;
    margin: 28px 0 0;
    padding: 0;
    border-left: 2px solid var(--ado-border);
}

.mod-chain li {
    display: grid;
    gap: 2px;
    padding: 0 0 20px 18px;
    position: relative;
}

.mod-chain li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--ado-primary);
}

.mod-chain span { color: var(--ado-muted); font-size: 0.9rem; }

.pwa-copy { max-width: 36rem; margin: 0; }

.cta-box { text-align: center; max-width: 32rem; margin: 0 auto; }
.cta-box h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-box .lede { margin-top: 12px; }
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.use-grid {
    display: grid;
    gap: 12px;
}
.use-card {
    padding: 18px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
}
.use-card h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.use-card p { margin: 0; color: var(--ado-muted); font-size: 0.94rem; }
.use-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ado-surface-soft);
    color: var(--ado-primary);
}
.section-alt .use-card { background: var(--ado-bg); }
.social-stack {
    display: grid;
    gap: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.header-login { display: none; }
.header-actions .btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.88rem;
}
@media (max-width: 379px) {
    .header-actions .btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

.site-footer {
    padding: 40px 0 28px;
    border-top: 1px solid var(--ado-border);
    background: var(--ado-surface);
}

.footer-grid { display: grid; gap: 28px; }
.footer-lead { margin: 12px 0 0; color: var(--ado-muted); font-size: 0.92rem; }
.site-footer h3 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ado-muted);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a {
    text-decoration: none;
    color: var(--ado-muted);
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.site-footer a:hover { color: var(--ado-text); }
.footer-copy { margin-top: 28px; color: var(--ado-muted); font-size: 0.88rem; }

body.nav-open { overflow: hidden; }

.field { display: grid; gap: 6px; }
.field-live {
    margin: 0;
    min-height: 1.2em;
    font-size: 0.85rem;
    font-weight: 600;
}
.field-live.is-ok { color: #0F766E; }
.field-live.is-bad { color: #B42318; }
.field-live.is-wait { color: var(--ado-muted); font-weight: 500; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .field-live.is-bad { color: #FCA5A5; }
    :root:not([data-theme="light"]) .field-live.is-ok { color: #5EEAD4; }
}
[data-theme="dark"] .field-live.is-bad { color: #FCA5A5; }
[data-theme="dark"] .field-live.is-ok { color: #5EEAD4; }
.field-error {
    margin: 0;
    color: #B42318;
    font-size: 0.85rem;
}
.field.is-invalid .input,
.field.is-invalid .textarea { border-color: #B42318; }
.form-banner {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, #B42318 35%, var(--ado-border));
    background: color-mix(in srgb, #B42318 8%, var(--ado-surface));
    color: #B42318;
}
.form-banner.is-ok {
    border-color: color-mix(in srgb, #0F766E 35%, var(--ado-border));
    background: color-mix(in srgb, #0F766E 8%, var(--ado-surface));
    color: #0F766E;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .field-error,
    :root:not([data-theme="light"]) .form-banner { color: #FCA5A5; }
    :root:not([data-theme="light"]) .form-banner.is-ok { color: #5EEAD4; }
}
[data-theme="dark"] .field-error,
[data-theme="dark"] .form-banner { color: #FCA5A5; }
[data-theme="dark"] .form-banner.is-ok { color: #5EEAD4; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ado-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.password-meter {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ado-muted);
}
.password-meter[data-level="1"] { color: #B42318; }
.password-meter[data-level="2"] { color: #B45309; }
.password-meter[data-level="3"] { color: #0F766E; }
.password-meter[data-level="4"] { color: #0F766E; }

.check-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
}
.check-label input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--ado-primary);
}

.btn-block { width: 100%; }
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-body { background: var(--ado-bg); }
.auth-page { min-height: 100dvh; }
.auth-aside { display: none; }
.auth-main {
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 16px 48px;
}
.auth-card {
    width: min(420px, 100%);
}
.auth-card h1 {
    margin: 20px 0 0;
    font-size: clamp(1.7rem, 5vw, 2.1rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.auth-form { display: grid; gap: 16px; margin-top: 22px; }
.auth-switch,
.auth-forgot {
    margin: 18px 0 0;
    color: var(--ado-muted);
}
.auth-forgot { margin-top: 4px; font-size: 0.9rem; }
.auth-switch a,
.auth-forgot a {
    color: var(--ado-text);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover,
.auth-forgot a:hover { color: var(--ado-primary); }
.auth-brand { margin-bottom: 4px; }

.input:focus,
.textarea:focus {
    outline: 2px solid var(--ado-secondary);
    outline-offset: 2px;
    border-color: var(--ado-primary);
}

@media (min-width: 1024px) {
    .auth-page.has-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .auth-aside {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px;
        background: var(--ado-surface);
        border-right: 1px solid var(--ado-border);
    }
    .auth-aside-title {
        margin: 28px 0 0;
        font-size: clamp(2rem, 3vw, 2.8rem);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.04em;
    }
    .auth-aside-lead {
        margin: 16px 0 0;
        max-width: 26rem;
        color: var(--ado-muted);
    }
    .auth-main { align-items: center; padding: 48px 24px; }
    .auth-page.has-aside .auth-brand { display: none; }
}
.input,
.textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ado-border);
    background: var(--ado-surface);
    color: var(--ado-text);
    font: inherit;
}
.input-code {
    min-height: 56px;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    padding-left: 0.7em;
}

@media (min-width: 768px) {
    .community-grid { grid-template-columns: 1fr 1fr; }
    .use-grid { grid-template-columns: 1fr 1fr; }
    .community-card.is-featured { grid-column: span 2; }
    .game-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
    .hero { padding-top: 44px; }
    .section { padding: 68px 0; }
    .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
    .pwa-band { align-items: center; }
}

@media (min-width: 1024px) {
    .nav-toggle, .mobile-panel { display: none !important; }
    .header-nav, .header-actions .header-login { display: flex; align-items: center; gap: 10px; }
    .header-nav { gap: 22px; flex: 1; justify-content: center; }
    .header-actions {
        margin-left: 0;
        gap: 10px;
    }
    .header-actions .btn {
        min-height: 46px;
        padding: 11px 20px;
        font-size: 0.95rem;
    }
    .hero {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        gap: 24px;
        padding: 52px 0 72px;
    }
    .hero-visual { min-height: 0; }
    .device {
        position: relative;
        z-index: 2;
        margin-right: 12px;
        margin-left: auto;
    }
    .use-grid { grid-template-columns: repeat(4, 1fr); }
    .community-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-body {
    min-height: 100dvh;
    background: var(--ado-bg);
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ado-bg);
    border-bottom: 1px solid var(--ado-border);
    padding-top: env(safe-area-inset-top, 0px);
}

.app-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    width: min(1280px, 100%);
    margin-inline: auto;
}

.app-search {
    display: none;
    flex: 1;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    margin-inline: auto;
    padding: 0 12px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius-pill);
    background: var(--ado-surface);
    color: var(--ado-muted);
}
.app-search .input {
    border: 0;
    background: transparent;
    min-height: 40px;
    padding: 8px 0;
    box-shadow: none;
}
.app-search .input:focus {
    outline: none;
}

.app-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.app-icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--ado-text);
    text-decoration: none;
}
.app-icon-btn { position: relative; }
.app-icon-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ado-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
}
.app-icon-btn:hover,
.app-icon-btn.is-current { background: var(--ado-surface); }
.app-icon-btn.is-current { color: var(--ado-primary); }
.app-icon-btn:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}
.app-icon-btn-search { display: grid; }

.app-account { position: relative; }
.app-account > summary {
    list-style: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 2px;
}
.app-account > summary::-webkit-details-marker { display: none; }
.app-account > summary:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
    border-radius: 12px;
}
.app-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 6px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    box-shadow: var(--ado-shadow);
    z-index: 50;
}
.app-account-info {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--ado-border);
    margin-bottom: 4px;
}
.app-account-name {
    margin: 0;
    font-weight: 700;
}
.app-account-handle {
    margin: 2px 0 0;
    color: var(--ado-muted);
    font-size: 0.85rem;
}
.app-account-links {
    display: grid;
    gap: 2px;
}
.app-account-logout {
    border-top: 1px solid var(--ado-border);
    margin-top: 4px;
    padding-top: 4px;
}
.app-account-menu a {
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ado-text);
    font-size: 0.92rem;
}
.app-account-menu a .ui-icon { width: 18px; height: 18px; color: var(--ado-muted); flex-shrink: 0; }
.app-account-menu a:hover { background: var(--ado-surface-soft); }
.app-account-menu a:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: -2px;
}

.app-shell {
    width: min(1280px, 100%);
    margin-inline: auto;
}

.app-sidebar { display: none; }

.app-main {
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.app-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ado-muted);
}

.app-hello h1 {
    margin: 0;
    font-size: clamp(1.35rem, 4.4vw, 1.75rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-weight: 800;
}
.app-hello p {
    margin: 8px 0 0;
    color: var(--ado-muted);
}

.app-composer {
    padding: 2px 0 8px;
    border-bottom: 1px solid var(--ado-border);
}
.app-composer-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.app-composer-field {
    margin: 0;
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: var(--ado-radius-pill);
    background: var(--ado-surface);
    border: 1px solid var(--ado-border);
    color: var(--ado-muted);
    font: inherit;
    font-weight: 500;
    text-align: left;
    min-width: 0;
    cursor: pointer;
}
.app-composer-editor {
    display: none;
    flex: 1;
    min-width: 0;
}
.app-composer.is-open .app-composer-row { align-items: flex-start; }
.app-composer.is-open .app-composer-field { display: none; }
.app-composer.is-open .app-composer-editor { display: block; }
.app-composer:not(.is-open) .app-composer-submit { display: none; }
.app-composer.is-open .app-composer-publish { display: none; }
.app-composer-text {
    display: block;
    width: 100%;
    min-height: 120px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    color: var(--ado-text);
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}
.app-composer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 12px 52px;
}
.app-composer.is-open .app-composer-actions { margin-top: 8px; }
.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 4px 12px;
    border-radius: var(--ado-radius-pill);
    border: 0;
    background: transparent;
    color: var(--ado-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}
.app-chip:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.app-chip:not(:disabled):hover,
.app-chip-file:hover {
    color: var(--ado-text);
    background: var(--ado-surface);
}
.app-chip:disabled:hover {
    color: var(--ado-muted);
    background: transparent;
}
.app-chip .ui-icon { color: var(--ado-primary); }
.app-chip:disabled .ui-icon { color: var(--ado-primary); }
.app-chip-file { cursor: pointer; }
.app-composer-preview {
    position: relative;
    margin: 10px 0 0;
    max-width: 100%;
}
.app-composer-preview[hidden] { display: none !important; }
.app-composer-preview img {
    display: block;
    width: 100%;
    max-height: min(48vh, 360px);
    object-fit: contain;
    background: var(--ado-surface-soft);
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
}
.app-composer-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    min-height: 36px;
    padding: 4px 12px;
    border: 0;
    border-radius: var(--ado-radius-pill);
    background: var(--ado-surface);
    color: var(--ado-text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.app-composer-count {
    margin: 8px 0 0;
    color: var(--ado-muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.app-composer-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.app-composer-submit .btn-ghost,
.app-composer-submit .btn-primary {
    min-height: 40px;
    padding: 6px 16px;
}
.app-composer-submit .btn-ghost {
    color: var(--ado-text);
    background: transparent;
    border-color: var(--ado-border);
}
.app-composer-submit .btn-ghost:hover,
.app-composer-submit .btn-ghost:focus-visible {
    color: var(--ado-text);
    background: var(--ado-surface);
}
.app-composer-submit .btn-primary:disabled,
.app-composer-submit .btn-primary:disabled:hover {
    opacity: 0.5;
    color: #fff;
    background: var(--ado-primary);
    border-color: transparent;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: no-preference) {
    .app-composer.is-open .app-composer-editor {
        animation: ado-composer-in 140ms ease-out;
    }
}
@keyframes ado-composer-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 374px) {
    .app-composer-actions { margin-left: 0; }
    .app-composer-submit { width: 100%; justify-content: flex-end; margin-left: 0; }
}

.app-flash {
    margin: 0;
    padding: 8px 0;
    color: var(--ado-text);
    font-size: 0.92rem;
    font-weight: 600;
}
.app-flash-error { color: var(--ado-muted); }

.pub {
    padding: 16px 0;
    border-bottom: 1px solid var(--ado-border);
    min-width: 0;
    color: var(--ado-text);
    position: relative;
    z-index: 1;
}
.pub-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pub-avatar { flex: 0 0 auto; text-decoration: none; }
.pub-who { flex: 1; min-width: 0; }
.pub-name {
    display: inline-block;
    margin: 0;
    font-weight: 700;
    color: var(--ado-text);
    text-decoration: none;
}
a.pub-name:hover,
a.pub-name:focus-visible { color: var(--ado-primary); }
.pub-meta {
    margin: 2px 0 0;
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.pub-delete { margin-left: auto; }
.pub-owner-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pub-owner-actions .pub-delete { margin-left: 0; }
.pub-edit-btn {
    min-height: 36px;
    padding: 4px 8px;
    color: var(--ado-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.pub-edit-btn:hover,
.pub-edit-btn:focus-visible { color: var(--ado-text); }
.pub-delete-btn {
    min-height: 36px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--ado-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.pub-delete-btn:hover,
.pub-delete-btn:focus-visible { color: var(--ado-text); }
.pub-body {
    display: block;
    margin: 10px 0 0;
    overflow-wrap: anywhere;
    color: var(--ado-text);
}
.pub-open {
    margin: 8px 0 0;
}
.pub.is-detail .pub-body {
    font-size: 1.05rem;
    line-height: 1.55;
}
.pub-media {
    margin: 12px 0 0;
    padding: 0;
    max-width: 100%;
}
.pub-media a {
    display: block;
    color: inherit;
}
.pub-media img {
    display: block;
    width: 100%;
    max-height: min(70vh, 720px);
    object-fit: contain;
    background: var(--ado-surface-soft);
    border-radius: var(--ado-radius);
}
.pub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 2px;
    position: relative;
    z-index: 2;
}
.pub-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 8px;
    border-radius: 10px;
    color: var(--ado-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}
.pub-action:hover,
.pub-action:focus-visible {
    color: var(--ado-text);
    background: color-mix(in srgb, var(--ado-primary) 10%, transparent);
}
.pub-action-icon {
    display: inline-grid;
    place-items: center;
    color: inherit;
}
.pub-action-icon .ui-icon {
    width: 18px;
    height: 18px;
}
.app-feed-more { padding: 12px 0 4px; }

@media (max-width: 374px) {
    .app-composer-actions { margin-left: 0; }
}

.app-feed { min-height: 0; }
.app-feed-empty {
    padding: 10px 8px 8px;
    text-align: center;
}
.app-feed-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}
.app-feed-empty p { margin: 0 auto 8px; max-width: 32ch; }
.app-feed-empty .app-feed-title + p { color: var(--ado-muted); font-size: 0.92rem; }
.app-feed-empty .btn {
    margin-top: 4px;
    min-height: 40px;
    padding: 8px 16px;
}

.app-strip { padding-top: 4px; }
.app-strip > p { margin: 0 0 6px; font-size: 0.95rem; }
.app-comm-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.app-comm-row li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--ado-radius-pill);
    background: var(--ado-surface);
    border: 1px solid var(--ado-border);
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
}
.app-comm-icon { display: grid; place-items: center; color: var(--ado-primary); }
.app-text-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-weight: 700;
    color: var(--ado-primary);
    text-decoration: none;
}
.app-text-link:hover { text-decoration: underline; }
.app-muted { margin: 0; color: var(--ado-muted); font-size: 0.92rem; }
.app-empty-page { padding: 32px 8px; }
.app-empty-page h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
}
.app-empty-page p { margin: 0 0 18px; color: var(--ado-muted); }

.app-rail { display: none; }
.app-rail-profile,
.app-rail-discover { padding: 4px 0 18px; }
.app-rail-discover { border-top: 1px solid var(--ado-border); }
.app-profile-mini-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.app-profile-mini-row > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.app-profile-name { margin: 0; font-weight: 700; }
.app-profile-pseudo { margin: 0; color: var(--ado-muted); font-size: 0.9rem; }
.app-profile-mini-row .app-muted { font-size: 0.85rem; }
.app-profile-mini-row .app-text-link { margin-top: 4px; }

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ado-text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.18s ease, color 0.18s ease;
}
.app-nav-link .ui-icon { transition: color 0.18s ease; }
.app-nav-link:hover { background: var(--ado-surface); }
.app-nav-link.is-current {
    background: color-mix(in srgb, var(--ado-primary) 12%, var(--ado-surface));
    color: var(--ado-primary);
}
.app-nav-link.is-current .ui-icon { color: var(--ado-primary); }

.app-sidebar-nav {
    display: grid;
    gap: 2px;
}
.app-sidebar > .app-nav-create {
    margin-top: 12px;
    justify-content: center;
    background: var(--ado-primary);
    color: #fff;
    transition: background 0.18s ease, transform 0.15s ease;
}
.app-sidebar > .app-nav-create:hover { background: #5b4dd6; color: #fff; }
.app-sidebar > .app-nav-create:active { transform: scale(0.97); }
.app-sidebar > .app-nav-create.is-current {
    background: var(--ado-primary);
    color: #fff;
}
.app-sidebar > .app-nav-create.is-current .ui-icon { color: #fff; }

.app-sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ado-text);
    transition: background 0.18s ease;
}
.app-sidebar-account:hover { background: var(--ado-surface); }
.app-sidebar-who {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.app-sidebar-name {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-sidebar-handle {
    font-size: 0.78rem;
    color: var(--ado-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0;
    padding: 2px 2px calc(2px + env(safe-area-inset-bottom, 0px));
    background: var(--ado-bg);
    border-top: 1px solid var(--ado-border);
}
.app-bottom .app-nav-link {
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 5px 4px 3px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--ado-muted);
    border-radius: 10px;
    transition: color 0.18s ease, background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.app-bottom .app-nav-link .ui-icon {
    width: 21px;
    height: 21px;
    transition: color 0.18s ease;
}
.app-bottom .app-nav-link:active { opacity: 0.7; }
.app-bottom .app-nav-link.is-current {
    background: color-mix(in srgb, var(--ado-primary) 10%, transparent);
    color: var(--ado-primary);
    box-shadow: none;
}
.app-bottom .app-nav-link.is-current .ui-icon { color: var(--ado-primary); }

.app-bottom .app-nav-create {
    background: var(--ado-primary);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    justify-self: center;
    margin-top: -14px;
    margin-bottom: 1px;
    gap: 0;
    box-shadow: 0 2px 10px rgba(101, 86, 221, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.app-bottom .app-nav-create .ui-icon { width: 22px; height: 22px; color: #fff; }
.app-bottom .app-nav-create span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}
.app-bottom .app-nav-create:active {
    transform: scale(0.96);
    box-shadow: 0 1px 6px rgba(101, 86, 221, 0.3);
    opacity: 1;
}
.app-bottom .app-nav-create:hover { background: #5b4dd6; }

.ntf {
    display: grid;
    gap: 16px;
    max-width: 760px;
}
.ntf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.ntf-head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    letter-spacing: -0.03em;
}
.ntf-head p {
    margin: 6px 0 0;
    color: var(--ado-muted);
}
.ntf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ntf-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: var(--ado-radius-pill);
    border: 1px solid var(--ado-border);
    color: var(--ado-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.ntf-chip.is-on {
    border-color: color-mix(in srgb, var(--ado-primary) 40%, var(--ado-border));
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 8%, transparent);
}
.ntf-mark-all { margin: 0; }
.ntf-empty {
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    padding: 20px;
    text-align: center;
}
.ntf-empty .ui-icon {
    width: 28px;
    height: 28px;
    color: var(--ado-primary);
}
.ntf-empty h2 {
    margin: 8px 0 6px;
    font-size: 1.15rem;
}
.ntf-empty p { margin: 0; }
.ntf-list {
    display: grid;
    gap: 14px;
}
.ntf-group {
    display: grid;
    gap: 8px;
}
.ntf-group h2 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ado-muted);
}
.ntf-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    padding: 10px 12px;
}
.ntf-item.is-unread {
    background: color-mix(in srgb, var(--ado-primary) 6%, var(--ado-surface));
}
.ntf-avatar {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ntf-type-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ado-primary) 14%, transparent);
    color: var(--ado-primary);
}
.ntf-body { margin: 0; min-width: 0; }
.ntf-open {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ado-text);
    text-align: left;
    padding: 0;
    display: grid;
    gap: 3px;
    cursor: pointer;
}
.ntf-open strong {
    font-size: 0.93rem;
    line-height: 1.35;
}
.ntf-open span,
.ntf-open time {
    font-size: 0.83rem;
    color: var(--ado-muted);
    line-height: 1.35;
}
.ntf-dot {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ado-primary);
}
.ntf-more {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.crt {
    display: grid;
    gap: 16px;
    max-width: 920px;
}
.crt-head h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4.4vw, 1.9rem);
    letter-spacing: -0.03em;
}
.crt-head p {
    margin: 8px 0 0;
    color: var(--ado-muted);
}
.crt-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
.crt-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    color: var(--ado-text);
    text-decoration: none;
    padding: 14px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}
.crt-card:hover {
    border-color: color-mix(in srgb, var(--ado-primary) 28%, var(--ado-border));
    background: color-mix(in srgb, var(--ado-primary) 5%, var(--ado-surface));
}
.crt-card:active { transform: scale(0.99); }
.crt-card h2 {
    margin: 0;
    font-size: 1.02rem;
}
.crt-card p {
    margin: 0;
    color: var(--ado-muted);
    line-height: 1.45;
}
.crt-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ado-primary) 12%, transparent);
    color: var(--ado-primary);
}
.crt-icon .ui-icon {
    width: 20px;
    height: 20px;
}
.crt-go {
    color: var(--ado-primary);
    font-weight: 600;
    font-size: 0.88rem;
}
.crt-card.is-disabled {
    opacity: 0.9;
    cursor: default;
}
.crt-card.is-disabled:hover {
    border-color: var(--ado-border);
    background: var(--ado-surface);
}
.crt-soon {
    color: var(--ado-muted);
    font-size: 0.88rem;
}

@media (min-width: 768px) {
    .app-main { padding: 20px 24px 32px; }
    .crt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .app-body { padding-bottom: 0; }
    .app-search { display: flex; }
    .app-icon-btn-search { display: none; }
    .app-header-inner { padding: 8px 20px; }
    .app-shell {
        display: grid;
        grid-template-columns: 212px minmax(0, 1fr);
        align-items: start;
    }
    .app-sidebar {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: sticky;
        top: 72px;
        padding: 16px 10px;
        height: calc(100dvh - 72px);
        overflow-y: auto;
    }
    .app-bottom { display: none; }
    .app-main { padding: 20px 16px 40px; }
    .app-discover-inline { display: none; }
}

@media (min-width: 1280px) {
    .app-main-wrap {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 260px;
        align-items: start;
        gap: 12px;
    }
    .app-rail {
        display: grid;
        gap: 0;
        position: sticky;
        top: 80px;
        padding: 24px 8px 48px 4px;
        align-content: start;
    }
}

.xpl {
    padding: 20px 0 48px;
    display: grid;
    gap: 18px;
}
.xpl-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4.5vw, 2.35rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
    font-weight: 800;
}
.xpl-hero .lede { max-width: 36rem; }
.xpl-hero-compact { gap: 0; }
.xpl-hero-compact h1 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.xpl-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
}
.xpl-search-icon {
    display: grid;
    place-items: center;
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--ado-muted);
    pointer-events: none;
}
.xpl-search .input {
    min-height: 52px;
    border-radius: var(--ado-radius-pill);
    padding-inline: 44px 18px;
}
.xpl-search .input:focus {
    outline: 2px solid var(--ado-secondary);
    outline-offset: 2px;
    border-color: var(--ado-primary);
}
.xpl-search .btn { width: 100%; min-height: 48px; }
.xpl-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.xpl-filters .chip {
    flex: 0 0 auto;
    text-decoration: none;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    background: transparent;
    color: var(--ado-muted);
}
.xpl-filters .chip.is-on {
    background: color-mix(in srgb, var(--ado-primary) 16%, var(--ado-surface));
    border-color: color-mix(in srgb, var(--ado-primary) 45%, var(--ado-border));
    color: var(--ado-text);
    font-weight: 700;
}
.xpl-status {
    margin: 0;
    color: var(--ado-muted);
    font-weight: 600;
}
.xpl-none h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}
.xpl-none p { margin: 0; color: var(--ado-muted); }
.xpl-block + .xpl-block {
    padding-top: 16px;
    border-top: 1px solid var(--ado-border);
}
.xpl-block h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}
.xpl-grid {
    display: grid;
    gap: 12px;
}
.xpl-card {
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
}
.xpl-card h3 { margin: 8px 0 4px; font-size: 1rem; }
.xpl-card p { margin: 0; color: var(--ado-muted); font-size: 0.92rem; }
.xpl-meta { margin: 0; color: var(--ado-muted); font-size: 0.85rem; }
.xpl-official-badge {
    margin: 2px 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ado-primary);
}
.xpl-person-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.xpl-person-row h3 { margin: 0; }
.xpl-person .xpl-meta { margin-top: 2px; }
.xpl-person p,
.xpl-card .app-text-link { margin-top: 8px; }
.xpl-ready {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0 2px;
}
.xpl-ready h3 { margin: 0 0 4px; font-size: 1rem; }
.xpl-ready p { margin: 0; color: var(--ado-muted); font-size: 0.92rem; }
.xpl-ready .app-text-link { margin-top: 4px; min-height: 32px; }
.xpl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.xpl-tags .chip { text-decoration: none; }
.xpl-posts { display: grid; gap: 12px; }
.xpl-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--ado-muted);
}
.xpl-cta {
    text-align: center;
    padding: 20px 8px 4px;
    border-top: 1px solid var(--ado-border);
}
.xpl-cta h2 {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
}
.xpl-cta .lede { margin-top: 8px; }
.xpl-cta .btn,
.xpl-cta .cta-actions { margin-top: 16px; }

@media (min-width: 600px) {
    .xpl-search {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .xpl-search .btn { width: auto; min-width: 132px; }
    .xpl-search-icon { top: 16px; }
    .xpl-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .xpl { padding: 32px 0 64px; gap: 22px; }
    .xpl-grid { grid-template-columns: repeat(3, 1fr); }
    .xpl-people { grid-template-columns: 1fr 1fr; }
}

.com-cats .chip {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    text-decoration: none;
    min-height: 36px;
    align-items: center;
    padding: 6px 12px;
    background: transparent;
    color: var(--ado-muted);
    white-space: nowrap;
}
.com-cats .chip.is-on {
    background: color-mix(in srgb, var(--ado-primary) 16%, var(--ado-surface));
    border-color: var(--ado-primary);
    color: var(--ado-primary);
    font-weight: 700;
}
.com-cats .chip:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}

.app-main:has(.com) {
    max-width: 960px;
}

.com {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding-bottom: 8px;
}
.com-intro h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
    font-weight: 800;
}
.com-intro p {
    margin: 8px 0 0;
    color: var(--ado-muted);
    max-width: 40rem;
}
.com-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
}
.com-search-icon {
    display: grid;
    place-items: center;
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--ado-muted);
    pointer-events: none;
}
.com-search .input {
    min-height: 52px;
    border-radius: var(--ado-radius-pill);
    padding-inline: 44px 18px;
}
.com-search .input:focus {
    outline: 2px solid var(--ado-secondary);
    outline-offset: 2px;
    border-color: var(--ado-primary);
}
.com-search .btn { width: 100%; min-height: 48px; }
.com-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    max-width: 100%;
}
.com-status {
    margin: 0;
    color: var(--ado-muted);
    font-weight: 600;
}
.com-none { margin: 0; }
.com-none-title,
.com-empty-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
}
.com-none p,
.com-empty p { margin: 0; color: var(--ado-muted); }
.com-list { min-width: 0; }
.com-grid {
    display: grid;
    gap: 12px;
}
.com-skels {
    display: none;
    gap: 12px;
}
.com-skels[hidden] { display: none !important; }
.com-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
}
.com-card h3 {
    margin: 8px 0 4px;
    font-size: 1rem;
    overflow-wrap: anywhere;
}
.com-card h3 a {
    color: inherit;
    text-decoration: none;
}
.com-card h3 a:hover,
.com-card h3 a:focus-visible { color: var(--ado-primary); }
.com-card p {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}
.com-card-meta {
    margin-top: 8px !important;
    font-size: 0.82rem !important;
}
.com-card-slug {
    margin: -2px 0 0;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.com-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ado-surface-soft);
    color: var(--ado-primary);
}
.com-card-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.com-card-actions form { margin: 0; }
.com-card-actions .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
}
.com-joined {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ado-muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.com-card.is-official {
    border-color: color-mix(in srgb, var(--ado-primary) 35%, var(--ado-border));
}
.com-skel {
    min-height: 148px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface-soft);
    opacity: 0.7;
}
.com-empty {
    max-width: 36rem;
    padding: 6px 0 2px;
}
.com-empty .btn { margin-top: 14px; min-height: 40px; padding: 8px 16px; }
.com-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--ado-muted);
}
.com-guest {
    margin: 8px 0 0;
    color: var(--ado-muted);
    font-size: 0.92rem;
}
.com-list.is-loading .com-grid,
.com-list.is-loading .com-empty { display: none; }
.com-list.is-loading .com-skels,
.com-list.is-loading .com-skels[hidden] {
    display: grid !important;
}

@media (min-width: 600px) {
    .com-search {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .com-search .btn { width: auto; min-width: 132px; }
    .com-grid { grid-template-columns: 1fr 1fr; }
    .com-list.is-loading .com-skels,
    .com-list.is-loading .com-skels[hidden] { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .com-grid { grid-template-columns: repeat(3, 1fr); }
    .com-list.is-loading .com-skels,
    .com-list.is-loading .com-skels[hidden] { grid-template-columns: repeat(3, 1fr); }
}
.xpl-card.is-official {
    border-color: color-mix(in srgb, var(--ado-primary) 35%, var(--ado-border));
}

.app-main:has(.prf) {
    max-width: 760px;
}

.prf {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 16px;
    min-width: 0;
}
.prf-identity {
    text-align: center;
    padding: 10px 0 26px;
    border-bottom: 1px solid var(--ado-border);
}
.prf-identity .avatar-xl {
    margin: 0 auto 16px;
    width: 104px;
    height: 104px;
    font-size: 2rem;
    border-radius: 32px;
}
.prf-who {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.prf-identity h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4.6vw, 1.95rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.prf-handle {
    margin: 0;
    color: var(--ado-muted);
    font-weight: 600;
}
.prf-sub {
    margin: 6px 0 0;
    max-width: 38ch;
    color: var(--ado-muted);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.prf-sub-mark { color: var(--ado-primary); }
.prf-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 16px;
}
.prf-actions .btn-primary {
    min-height: 44px;
    padding: 8px 18px;
}
.prf-actions .btn-text {
    color: var(--ado-muted);
    font-weight: 600;
}
.prf-actions .btn-text:hover,
.prf-actions .btn-text:focus-visible {
    color: var(--ado-text);
}
.prf-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    margin-top: 14px;
}
.prf-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: var(--ado-primary);
    font-size: 0.82rem;
    font-weight: 700;
}
.prf-official .ui-icon { width: 16px; height: 16px; }
.prf-presence,
.prf-joined {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.prf-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--ado-muted);
}
.prf-presence-en-ligne .prf-dot { background: var(--ado-primary); }
.prf-presence-absent .prf-dot { background: var(--ado-accent); }
.prf-presence-hors-ligne .prf-dot { background: var(--ado-muted); }
.prf-note {
    margin: 12px auto 0;
    max-width: 36ch;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.prf-section {
    padding: 24px 0 22px;
    border-bottom: 1px solid var(--ado-border);
    min-width: 0;
}
.prf-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.prf-section-head .app-kicker { margin: 0; }
.prf-section-head .app-text-link { margin-top: 0; }
.prf-section-last,
.prf-section:last-child { border-bottom: 0; }
.prf-bio {
    margin: 0;
    max-width: 42ch;
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.prf-lead {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.prf-empty {
    margin: 0;
    color: var(--ado-muted);
}
.prf-hint {
    margin: 6px 0 0;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.prf-vacant {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.prf-vacant-icon {
    display: grid;
    place-items: center;
    margin-top: 1px;
    color: var(--ado-primary);
    opacity: 0.75;
    flex: 0 0 auto;
}
.prf-vacant .prf-empty { padding-top: 1px; }
.prf-section .app-text-link { margin-top: 10px; }
.prf-meta {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
    color: var(--ado-muted);
    font-size: 0.92rem;
}
.prf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.prf-tags li {
    padding: 4px 10px;
    border-radius: var(--ado-radius-pill);
    background: var(--ado-surface-soft);
    border: 1px solid var(--ado-border);
    font-size: 0.82rem;
    font-weight: 600;
}
.prf-progress .prf-level {
    margin: 0;
    font-weight: 700;
}
.prf-xp {
    margin: 4px 0 0;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.prf-xp-bar {
    margin-top: 10px;
    height: 6px;
    max-width: 220px;
    border-radius: 99px;
    background: var(--ado-surface-soft);
    overflow: hidden;
}
.prf-xp-bar span {
    display: block;
    height: 100%;
    background: var(--ado-primary);
    border-radius: 99px;
}
.prf-badges,
.prf-comms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.prf-badges li,
.prf-badge-item {
    --bdg-tone: var(--ado-primary);
    --bdg-tone-soft: var(--ado-secondary);
    --bdg-tone-deep: #5548C8;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(220px, 78vw);
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--bdg-tone) 22%, var(--ado-border));
    border-radius: 16px;
    background:
        radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--bdg-tone) 16%, transparent), transparent 55%),
        var(--ado-surface);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--bdg-tone) 10%, transparent);
}
.prf-comms li { flex: 0 0 auto; }
.prf-comms a,
.prf-comm-static {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(240px, 78vw);
    padding: 8px 12px;
    border-radius: var(--ado-radius-pill);
    background: var(--ado-surface);
    border: 1px solid var(--ado-border);
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
.prf-comms a:hover,
.prf-comms a:focus-visible {
    border-color: color-mix(in srgb, var(--ado-primary) 40%, var(--ado-border));
}
.prf-badge-medal {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}
.prf-badge-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--bdg-tone-soft), var(--bdg-tone), var(--bdg-tone-deep), var(--bdg-tone-soft));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--bdg-tone) 28%, transparent);
}
.prf-badge-ring::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5), transparent 42%),
        linear-gradient(160deg, color-mix(in srgb, var(--bdg-tone) 18%, var(--ado-surface)), var(--ado-surface));
}
.prf-badge-icon,
.prf-comm-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--bdg-tone);
    flex: 0 0 auto;
}
.prf-badge-icon .bdg-glyph {
    width: 22px;
    height: 22px;
    display: block;
    filter: drop-shadow(0 1px 2px color-mix(in srgb, var(--bdg-tone) 30%, transparent));
}
.prf-badge-icon .ui-icon {
    width: 20px;
    height: 20px;
}
.prf-comm-icon { color: var(--ado-primary); }
.prf-badges strong,
.prf-comms strong {
    display: block;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prf-comms .prf-badge-desc {
    display: none;
}
.prf-badge-desc {
    display: block;
    margin-top: 2px;
    color: var(--ado-muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.prf-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.prf-posts li {
    padding: 14px 0;
    border-bottom: 1px solid var(--ado-border);
}
.prf-posts li:last-child { border-bottom: 0; }
.prf-posts a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.prf-posts a:hover p:first-child,
.prf-posts a:focus-visible p:first-child {
    color: var(--ado-primary);
}
.prf-posts p { margin: 0; overflow-wrap: anywhere; }
.prf-pub-list {
    min-width: 0;
}
.prf-pub-list .pub:last-child {
    border-bottom: 0;
}
.prf-post-meta {
    margin-top: 6px !important;
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.prf-private h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.prf-private p { margin: 0; color: var(--ado-muted); }
.prf-state {
    padding: 28px 4px 12px;
    text-align: center;
}
.prf-state h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    letter-spacing: -0.03em;
}
.prf-state p {
    margin: 0 auto 18px;
    max-width: 36ch;
    color: var(--ado-muted);
}

.pmf {
    display: grid;
    gap: 14px;
    max-width: 760px;
}
.pmf-head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    letter-spacing: -0.03em;
}
.pmf-head p {
    margin: 8px 0 0;
    color: var(--ado-muted);
}
.pmf-form {
    display: grid;
    gap: 12px;
}
.pmf-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
}
.pmf-avatar-actions {
    display: grid;
    gap: 6px;
}
.pmf-remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ado-muted);
    font-size: 0.86rem;
}
.field-help {
    margin: 6px 0 0;
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.field-help.is-error {
    color: #f79ba1;
}
.pmf-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

@media (max-width: 374px) {
    .prf-identity .avatar-xl {
        width: 88px;
        height: 88px;
        border-radius: 26px;
    }
    .prf-actions .btn-primary {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .prf-identity { padding: 16px 0 32px; }
    .prf-identity .avatar-xl {
        width: 112px;
        height: 112px;
        border-radius: 34px;
    }
    .prf-bio { max-width: 48ch; }
    .prf-badges { flex-wrap: wrap; overflow: visible; }
    .prf-comms { flex-wrap: wrap; overflow: visible; }
    .prf-badges li { min-width: 0; flex: 1 1 calc(50% - 8px); }
    .prf-comms a,
    .prf-comm-static { max-width: none; }
}

.app-main:has(.cv) {
    max-width: 760px;
}

.cv {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-bottom: 16px;
}
.cv-state {
    padding: 28px 4px 12px;
    text-align: center;
}
.cv-state h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    letter-spacing: -0.03em;
}
.cv-state p {
    margin: 0 auto 18px;
    max-width: 36ch;
    color: var(--ado-muted);
}
.cv-head {
    display: grid;
    gap: 14px;
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--ado-border);
    min-width: 0;
}
.cv-mark,
.cv-photo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    background: var(--ado-surface-soft);
}
.cv-mark {
    display: grid;
    place-items: center;
    color: var(--ado-primary);
}
.cv-who { min-width: 0; }
.cv-head h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.cv-handle {
    margin: 4px 0 0;
    color: var(--ado-muted);
    font-weight: 600;
}
.cv-sub,
.cv-count,
.cv-meta {
    margin: 8px 0 0;
    color: var(--ado-muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.cv-lead,
.cv-about {
    margin: 10px 0 0;
    max-width: 42rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.cv-actions { margin-top: 4px; }
.cv-actions form { margin: 0; }
.cv-joined {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ado-muted);
    font-weight: 700;
}
.cv-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    max-width: 100%;
    padding: 10px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.cv-tabs a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: var(--ado-radius-pill);
    color: var(--ado-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}
.cv-tabs a[aria-current="page"],
.cv-tabs a:hover,
.cv-tabs a:focus-visible {
    color: var(--ado-text);
    background: var(--ado-surface-soft);
}
.cv-tabs a:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}
.cv-section {
    padding: 22px 0 20px;
    border-bottom: 1px solid var(--ado-border);
    min-width: 0;
}
.cv-section-last,
.cv-section:last-child { border-bottom: 0; }
.cv-empty,
.cv-empty-block p {
    margin: 0;
    color: var(--ado-muted);
}
.cv-empty-title {
    margin: 0 0 4px;
    font-weight: 700;
    color: var(--ado-text);
}
.cv-empty-block { max-width: 36rem; padding: 4px 0 0; }
.cv-feed { min-width: 0; }
.cv-feed .pub:last-child { border-bottom: 0; }
.cv-people {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.cv-people a,
.cv-people-static {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.cv-people a:hover strong,
.cv-people a:focus-visible strong { color: var(--ado-primary); }
.cv-people a:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
    border-radius: 10px;
}
.cv-people strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cv-people-handle {
    display: block;
    color: var(--ado-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .cv-head {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: start;
    }
    .cv-actions { justify-self: end; }
}

@media (max-width: 639px) {
    .cv-actions .btn { min-height: 44px; }
}

.about-intro {
    padding: 36px 0 8px;
    max-width: 40rem;
}
.about-intro h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-weight: 800;
}
.about-lead {
    margin: 14px 0 0;
    font-size: 1.08rem;
    max-width: 34rem;
}
.about-intro p {
    margin: 12px 0 0;
    color: var(--ado-muted);
    max-width: 34rem;
}
.about-intro .about-lead { color: var(--ado-text); }
.about-copy {
    max-width: 36rem;
}
.about-copy h2 {
    margin: 0 0 14px;
}
.about-copy p {
    margin: 0 0 12px;
    color: var(--ado-muted);
}
.about-copy p:last-child { margin-bottom: 0; }
.about .about-sig {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 3.4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ado-text);
}
.about-cta { margin-top: 22px !important; }
.about-actions {
    max-width: 44rem;
}
.about-values {
    display: grid;
    gap: 22px 28px;
    max-width: 44rem;
}
.about-values h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}
.about-values p {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .about-intro { padding-top: 52px; }
    .about-values { grid-template-columns: 1fr 1fr; }
    .about .about-actions.use-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .about .about-actions.use-grid { grid-template-columns: 1fr 1fr; }
}

.sec-hero {
    display: grid;
    gap: 24px;
    padding: 36px 0 8px;
    align-items: center;
}
.sec-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-weight: 800;
}
.sec-hero .about-lead { color: var(--ado-text); }
.sec-hero-mark {
    justify-self: start;
}
.sec-hero-mark .use-mark {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    border: 1px solid var(--ado-border);
    background: var(--ado-surface);
    color: var(--ado-primary);
}
.sec-hero-mark .ui-icon {
    width: 36px;
    height: 36px;
}
.sec-list {
    margin: 16px 0 0;
    padding-left: 1.15rem;
    color: var(--ado-muted);
}
.sec-list li { margin: 0 0 8px; }
.sec-list li:last-child { margin-bottom: 0; }
.sec-steps {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: sec-step;
}
.sec-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--ado-muted);
}
.sec-steps li::before {
    counter-increment: sec-step;
    content: counter(sec-step);
    width: 28px;
    height: 28px;
    border-radius: 99px;
    background: var(--ado-surface-soft);
    color: var(--ado-primary);
    font-size: 0.82rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.about-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .sec-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-top: 52px;
    }
    .sec .sec-mod.use-grid { grid-template-columns: 1fr 1fr 1fr; }
    .sec .sec-tips.use-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .sec .sec-mod.use-grid { grid-template-columns: 1fr 1fr 1fr; }
    .sec .sec-tips.use-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.ia-hero-mark .use-mark {
    background: color-mix(in srgb, var(--ado-primary) 14%, var(--ado-surface));
    color: var(--ado-primary);
}
.ia-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--ado-border);
    max-width: 28rem;
}
.ia-flow li {
    position: relative;
    padding: 0 0 18px 18px;
    color: var(--ado-muted);
}
.ia-flow li:last-child { padding-bottom: 0; }
.ia-flow li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--ado-primary);
}
.ia .sec-mod { max-width: 52rem; }
.ai-more { margin: 14px 0 0; }

@media (min-width: 768px) {
    .ia .sec-mod.use-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ia .sec-mod.use-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.help-hero {
    padding: 36px 0 8px;
}
.help-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-weight: 800;
}
.help-hero .about-lead {
    color: var(--ado-text);
    margin-bottom: 22px;
}
.help-search { max-width: 40rem; }
.help-hint {
    margin: 10px 0 0;
    color: var(--ado-muted);
    font-size: 0.92rem;
    max-width: 40rem;
}
.help-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.help-cat-card:hover { border-color: var(--ado-primary); }
.help-cat-card:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}
.help-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    max-width: 44rem;
}
.help-list a {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--ado-border);
    border-radius: var(--ado-radius);
    background: var(--ado-surface);
    text-decoration: none;
    color: inherit;
}
.section-alt .help-list a { background: var(--ado-bg); }
.help-list a:hover { border-color: var(--ado-primary); }
.help-list a:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}
.help-list strong { font-size: 1.02rem; }
.help-list a > span:not(.help-cat-label) { color: var(--ado-muted); font-size: 0.92rem; }
.help-cat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ado-primary);
}
.help-useful {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 0;
    margin: 12px 0 0;
}
.help-useful a {
    color: var(--ado-muted);
    text-decoration: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}
.help-useful a:hover { color: var(--ado-text); }
.help-article {
    padding: 36px 0 56px;
    max-width: 40rem;
}
.help-article .kicker a {
    color: inherit;
    text-decoration: none;
}
.help-article .kicker a:hover { color: var(--ado-primary); }

@media (min-width: 768px) {
    .help-hero { padding-top: 52px; }
    .help .help-cats.use-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .help .help-cats.use-grid { grid-template-columns: repeat(4, 1fr); }
}

.contact-hero {
    padding: 36px 0 8px;
}
.contact-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-weight: 800;
}
.contact-hero .about-lead {
    color: var(--ado-text);
    max-width: 36rem;
}
.contact-layout {
    display: grid;
    gap: 28px;
}
.contact-form {
    display: grid;
    gap: 16px;
    max-width: 40rem;
}
.contact-form .btn-primary {
    justify-self: start;
    min-width: 12rem;
}
.contact-message {
    min-height: 180px;
    resize: vertical;
}
.contact-hint,
.contact-count {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.85rem;
}
.contact-count {
    font-variant-numeric: tabular-nums;
}
.contact-form .input[readonly] {
    background: color-mix(in srgb, var(--ado-muted) 10%, var(--ado-surface));
    color: var(--ado-text);
}
.contact-form select.input {
    appearance: auto;
    cursor: pointer;
}
.contact-aside .use-card {
    display: grid;
    gap: 12px;
    padding: 22px 20px;
}
.contact-aside .use-card h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.contact-aside .use-card p {
    margin: 0;
}
.contact-aside .btn {
    justify-self: start;
}
.contact-success {
    max-width: 36rem;
}
.contact-success-text {
    margin: 0 0 20px;
    color: var(--ado-muted);
}

@media (min-width: 768px) {
    .contact-hero { padding-top: 52px; }
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.7fr);
        align-items: start;
        gap: 48px;
    }
    .contact-form { max-width: none; }
}

.legal-hero {
    padding: 36px 0 8px;
}
.legal-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 5vw, 2.45rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-weight: 800;
}
.legal-hero .about-lead {
    color: var(--ado-text);
    max-width: 38rem;
}
.legal-meta {
    margin: 14px 0 0;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
}
.legal-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: var(--ado-radius-pill);
    border: 1px solid var(--ado-border);
    background: var(--ado-surface);
    color: var(--ado-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}
.legal-nav a:hover { color: var(--ado-text); border-color: var(--ado-primary); }
.legal-nav a:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}
.legal-nav a.is-current,
.legal-nav a[aria-current="page"] {
    color: #fff;
    background: var(--ado-primary);
    border-color: var(--ado-primary);
}
.legal-doc {
    max-width: 40rem;
    padding: 28px 0 64px;
}
.legal-doc h2 {
    margin: 32px 0 12px;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
    margin: 0 0 12px;
    color: var(--ado-text);
    line-height: 1.55;
}
.legal-doc ul,
.legal-doc ol {
    margin: 0 0 14px;
    padding-left: 1.15rem;
    color: var(--ado-text);
    line-height: 1.5;
}
.legal-doc li { margin: 0 0 6px; }
.legal-doc a {
    color: var(--ado-primary);
    text-underline-offset: 2px;
}
.legal-doc a:focus-visible {
    outline: 2px solid var(--ado-primary);
    outline-offset: 2px;
}
.legal-note {
    margin: 16px 0 18px;
    padding: 16px 18px;
}
.legal-note p { margin: 0; color: var(--ado-muted); }
.legal-note p + p { margin-top: 8px; }
.legal-gap {
    margin: 0 0 12px;
    color: var(--ado-muted);
    font-size: 0.92rem;
}
.legal-end {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.legal-doc code {
    font-size: 0.88em;
    word-break: break-all;
}

/* ?? Badges collection ?? */
.bdg {
    --bdg-tone: var(--ado-primary);
    --bdg-tone-soft: #8B7CF6;
    --bdg-tone-deep: #4F46B8;
    padding: 8px 0 48px;
    display: grid;
    gap: 22px;
    min-width: 0;
}
.bdg-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.bdg-head p {
    margin: 0;
    color: var(--ado-muted);
    max-width: 40rem;
}
.bdg-summary {
    margin-top: 12px !important;
    color: var(--ado-text) !important;
    font-size: 0.98rem;
}
.bdg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bdg-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--ado-border);
    border-radius: 999px;
    color: var(--ado-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--ado-surface);
    box-shadow: 0 1px 0 rgba(17, 17, 28, 0.03);
    transition: border-color var(--ado-fast) ease, color var(--ado-fast) ease, background var(--ado-fast) ease, transform var(--ado-fast) ease;
}
.bdg-chip:hover {
    border-color: color-mix(in srgb, var(--ado-primary) 45%, var(--ado-border));
    color: var(--ado-text);
    transform: translateY(-1px);
}
.bdg-chip.is-on {
    border-color: transparent;
    color: #fff;
    background: var(--ado-gradient);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--ado-primary) 28%, transparent);
}
.bdg-section {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.bdg-section h2 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}
.bdg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.bdg-card {
    --bdg-tone: var(--ado-primary);
    --bdg-tone-soft: var(--ado-secondary);
    --bdg-tone-deep: #5548C8;
    position: relative;
    display: grid;
    gap: 14px;
    padding: 18px 16px 16px;
    border: 1px solid color-mix(in srgb, var(--bdg-tone) 22%, var(--ado-border));
    border-radius: 20px;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--bdg-tone) 18%, transparent), transparent 55%),
        linear-gradient(165deg, var(--ado-surface) 0%, color-mix(in srgb, var(--bdg-tone) 6%, var(--ado-surface-soft)) 100%);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--bdg-tone) 10%, transparent);
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    transition: border-color var(--ado-normal) ease, box-shadow var(--ado-normal) ease, transform var(--ado-normal) ease;
}
.bdg-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bdg-tone), var(--bdg-tone-soft));
    opacity: 0.9;
    pointer-events: none;
}
.bdg-card:hover {
    border-color: color-mix(in srgb, var(--bdg-tone) 48%, var(--ado-border));
    box-shadow: 0 16px 36px color-mix(in srgb, var(--bdg-tone) 18%, transparent);
    transform: translateY(-2px);
}
.bdg-tone-community { --bdg-tone: #0EA5A4; --bdg-tone-soft: #2DD4BF; --bdg-tone-deep: #0F766E; }
.bdg-tone-publications { --bdg-tone: #7C5CF5; --bdg-tone-soft: #A78BFA; --bdg-tone-deep: #5B3FD6; }
.bdg-tone-social { --bdg-tone: #E11D74; --bdg-tone-soft: #F472B6; --bdg-tone-deep: #BE185D; }
.bdg-tone-exploration { --bdg-tone: #2563EB; --bdg-tone-soft: #60A5FA; --bdg-tone-deep: #1D4ED8; }
.bdg-tone-seniority { --bdg-tone: #D97706; --bdg-tone-soft: #FBBF24; --bdg-tone-deep: #B45309; }
.bdg-tone-special { --bdg-tone: #6C5CE7; --bdg-tone-soft: #A78BFA; --bdg-tone-deep: #4F46B8; }

.bdg-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.bdg-medal {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
}
.bdg-medal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 210deg, var(--bdg-tone-soft), var(--bdg-tone), var(--bdg-tone-deep), var(--bdg-tone-soft));
    box-shadow:
        0 10px 22px color-mix(in srgb, var(--bdg-tone) 35%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.bdg-medal-ring::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(160deg, color-mix(in srgb, var(--bdg-tone) 22%, var(--ado-surface)), var(--ado-surface));
    border: 1px solid color-mix(in srgb, var(--bdg-tone) 28%, var(--ado-border));
}
.bdg-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--bdg-tone-deep);
}
.bdg-icon .bdg-glyph {
    width: 30px;
    height: 30px;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}
.bdg-icon .ui-icon {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
}
.bdg-card.is-earned .bdg-icon {
    color: var(--bdg-tone);
}
.bdg-card.is-earned .bdg-icon .bdg-glyph {
    filter:
        drop-shadow(0 2px 4px color-mix(in srgb, var(--bdg-tone) 35%, transparent))
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4));
}
.bdg-earned-pill,
.bdg-lock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    flex: 0 0 auto;
}
.bdg-earned-pill {
    color: #fff;
    background: linear-gradient(135deg, var(--bdg-tone), var(--bdg-tone-soft));
    box-shadow: 0 6px 14px color-mix(in srgb, var(--bdg-tone) 30%, transparent);
}
.bdg-lock-pill {
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--ado-muted);
    background: color-mix(in srgb, var(--ado-border) 55%, var(--ado-surface));
    border: 1px solid var(--ado-border);
}
.bdg-lock-pill .ui-icon {
    width: 15px;
    height: 15px;
}
.bdg-card-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}
.bdg-cat {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bdg-tone);
}
.bdg-card h3 {
    margin: 0;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
.bdg-desc,
.bdg-card p {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.bdg-condition {
    margin-top: 2px !important;
    color: var(--ado-text) !important;
    font-size: 0.9rem !important;
    font-weight: 500;
}
.bdg-meta {
    font-size: 0.84rem !important;
    color: var(--ado-muted) !important;
}
.bdg-progress {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--bdg-tone) 14%, var(--ado-border));
}
.bdg-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ado-text);
}
.bdg-bar {
    height: 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ado-border) 75%, transparent);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(17, 17, 28, 0.06);
}
.bdg-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bdg-tone), var(--bdg-tone-soft));
    box-shadow: 0 0 12px color-mix(in srgb, var(--bdg-tone) 35%, transparent);
    transition: width var(--ado-normal) ease;
}

.bdg-card.is-earned .bdg-medal-ring {
    animation: bdg-medal-shine 3.6s ease-in-out infinite;
}
.bdg-card.is-locked {
    opacity: 1;
    filter: none;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--bdg-tone) 8%, transparent), transparent 55%),
        linear-gradient(165deg, var(--ado-surface-soft), color-mix(in srgb, var(--ado-border) 35%, var(--ado-surface)));
    box-shadow: none;
}
.bdg-card.is-locked .bdg-medal-ring {
    filter: grayscale(0.35) saturate(0.7);
    opacity: 0.85;
    box-shadow: none;
}
.bdg-card.is-locked .bdg-icon {
    color: var(--ado-muted);
}
.bdg-card.is-locked:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--bdg-tone) 30%, var(--ado-border));
}

@keyframes bdg-medal-shine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .bdg-chip,
    .bdg-card { transition: none; }
    .bdg-chip:hover,
    .bdg-card:hover { transform: none; }
    .bdg-card.is-earned .bdg-medal-ring { animation: none; }
}

.bdg-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 18px;
    border: 1px solid var(--ado-border);
    border-radius: 20px;
    background:
        radial-gradient(90% 80% at 10% 0%, color-mix(in srgb, var(--ado-primary) 14%, transparent), transparent 60%),
        var(--ado-surface);
}
.bdg-empty .ui-icon {
    color: var(--ado-primary);
    width: 28px;
    height: 28px;
}
.bdg-empty h2 {
    margin: 0;
    font-size: 1.15rem;
}
.bdg-empty p { margin: 0; color: var(--ado-muted); }
.bdg-empty-inline {
    border: 0;
    padding: 0;
    background: transparent;
}
.bdg-empty-banner { margin-bottom: 4px; }
.bdg-back { margin: 4px 0 0; }

@media (min-width: 560px) {
    .bdg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .bdg { padding-bottom: 32px; }
    .bdg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bdg-medal { width: 78px; height: 78px; }
}

@media (min-width: 768px) {
    .legal-hero { padding-top: 52px; }
}

/* ?? Profile tabs ?? */
.prf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}
.prf-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--ado-border);
    color: var(--ado-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.prf-tab:hover {
    color: var(--ado-text);
    border-color: color-mix(in srgb, var(--ado-primary) 40%, var(--ado-border));
}
.prf-tab.is-on {
    color: var(--ado-text);
    border-color: color-mix(in srgb, var(--ado-primary) 55%, var(--ado-border));
    background: color-mix(in srgb, var(--ado-primary) 14%, transparent);
}

/* ?? Photos gallery ?? */
.pho {
    padding: 8px 0 48px;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.pho-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.pho-head p {
    margin: 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.pho-summary {
    margin-top: 10px !important;
    color: var(--ado-text) !important;
    font-size: 0.98rem;
}
.pho-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.pho-hint {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.86rem;
}
.pho-file,
.pho-submit-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.pho-upload-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.pho-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.pho-cell {
    margin: 0;
    position: relative;
    min-width: 0;
}
.pho-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 1px solid var(--ado-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--ado-surface-soft);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.pho-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pho-thumb:hover {
    border-color: color-mix(in srgb, var(--ado-primary) 45%, var(--ado-border));
}
.pho-add-card {
    aspect-ratio: 1 / 1;
}
.pho-add-tile {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    border: 1px dashed color-mix(in srgb, var(--ado-primary) 40%, var(--ado-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--ado-primary) 8%, var(--ado-surface-soft));
    color: var(--ado-text);
    text-align: center;
    cursor: pointer;
    font-size: 0.86rem;
}
.pho-add-tile span:first-child {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ado-primary);
}
.pho-delete-trigger {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 1;
    border: 0;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(18, 18, 26, 0.78);
    cursor: pointer;
}
.pho-delete-trigger:hover {
    background: rgba(18, 18, 26, 0.92);
}
.pho-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pho-empty .ui-icon { color: var(--ado-primary); }
.pho-empty h2 {
    margin: 0;
    font-size: 1.15rem;
}
.pho-empty p {
    margin: 0;
    color: var(--ado-muted);
}

.pho-lightbox {
    border: 0;
    padding: 0;
    max-width: min(96vw, 920px);
    max-height: 92dvh;
    background: transparent;
    color: var(--ado-text);
}
.pho-lightbox::backdrop {
    background: rgba(8, 8, 14, 0.82);
}
.pho-lightbox-inner {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 40vh;
    padding: 48px 44px 28px;
    border: 1px solid var(--ado-border);
    border-radius: 18px;
    background: #15151d;
}
.pho-lightbox-inner img {
    max-width: min(86vw, 860px);
    max-height: min(72dvh, 760px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}
.pho-lightbox-close,
.pho-lightbox-nav {
    position: absolute;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ado-border);
    border-radius: 999px;
    background: color-mix(in srgb, #15151d 88%, transparent);
    color: var(--ado-text);
    cursor: pointer;
}
.pho-lightbox-close { top: 10px; right: 10px; }
.pho-lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.pho-lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

.pho-confirm {
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    padding: 0;
    max-width: min(92vw, 380px);
    background: #15151d;
    color: var(--ado-text);
}
.pho-confirm::backdrop {
    background: rgba(8, 8, 14, 0.72);
}
.pho-confirm form {
    display: grid;
    gap: 10px;
    padding: 20px 18px;
}
.pho-confirm h2 {
    margin: 0;
    font-size: 1.15rem;
}
.pho-confirm p {
    margin: 0;
    color: var(--ado-muted);
}
.pho-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

@media (max-width: 420px) {
    .pho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .pho-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .pho-thumb:hover { transform: translateY(-1px); }
}

@media (min-width: 1024px) {
    .pho { padding-bottom: 32px; }
    .pho-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ?? Profile publications ?? */
.pup {
    padding: 8px 0 48px;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.pup-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.pup-head p {
    margin: 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.pup-summary {
    margin-top: 10px !important;
    color: var(--ado-text) !important;
    font-size: 0.98rem;
}
.pup-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.pup-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pup-empty .ui-icon { color: var(--ado-primary); }
.pup-empty h2 {
    margin: 0;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}
.pup-empty p {
    margin: 0;
    color: var(--ado-muted);
}
.pup-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pup-pager-status {
    color: var(--ado-muted);
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .pup { padding-bottom: 32px; }
}

/* ?? Profile communities ?? */
.pcm {
    padding: 8px 0 48px;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.pcm-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.pcm-head p {
    margin: 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.pcm-summary {
    margin-top: 10px !important;
    color: var(--ado-text) !important;
    font-size: 0.98rem;
}
.pcm-grid {
    margin: 0;
}
.pcm-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pcm-empty .ui-icon { color: var(--ado-primary); }
.pcm-empty h2 {
    margin: 0;
    font-size: 1.15rem;
    overflow-wrap: anywhere;
}
.pcm-empty p {
    margin: 0;
    color: var(--ado-muted);
}

@media (min-width: 1024px) {
    .pcm { padding-bottom: 32px; }
}

/* ?? Social feed ?? */
.feed {
    padding: 8px 0 48px;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.feed-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.feed-head p {
    margin: 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.feed-tab {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--ado-border);
    border-radius: 999px;
    color: var(--ado-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.feed-tab:hover {
    color: var(--ado-text);
    border-color: color-mix(in srgb, var(--ado-primary) 40%, var(--ado-border));
}
.feed-tab.is-on {
    color: var(--ado-text);
    border-color: color-mix(in srgb, var(--ado-primary) 55%, var(--ado-border));
    background: color-mix(in srgb, var(--ado-primary) 14%, transparent);
}
.feed-empty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 12%, transparent);
    margin-bottom: 4px;
}
.feed-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.feed-pager-status {
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.app-feed .app-strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.app-feed .app-strip-head .app-kicker { margin: 0; }

@media (min-width: 1024px) {
    .feed { padding-bottom: 32px; }
}

/* ?? Publications enregistr?es ?? */
.psaved {
    padding: 8px 0 48px;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.psaved-head h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
}
.psaved-head p {
    margin: 8px 0 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.psaved-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.psaved-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 14%, transparent);
}
.psaved-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.psaved-empty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 12%, transparent);
}
.psaved-empty h2 {
    margin: 0;
    font-size: 1.2rem;
}
.psaved-empty p {
    margin: 0;
    color: var(--ado-muted);
}
.pub-save {
    display: inline-flex;
    margin: 0;
}
button.pub-action-save {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}
button.pub-action-save.is-on {
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 12%, transparent);
}

@media (min-width: 1024px) {
    .psaved { padding-bottom: 32px; max-width: 720px; }
}

/* ?? Brouillons de publications ?? */
.pdrafts {
    padding: 8px 0 48px;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.pdrafts-head h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
}
.pdrafts-head p {
    margin: 8px 0 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.pdrafts-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pdrafts-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 14%, transparent);
}
.pdrafts-summary {
    margin-top: 10px !important;
    font-size: 0.95rem;
    color: var(--ado-text) !important;
}
.pdrafts-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pdrafts-empty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 12%, transparent);
}
.pdrafts-empty h2 {
    margin: 0;
    font-size: 1.2rem;
}
.pdrafts-empty p {
    margin: 0;
    color: var(--ado-muted);
}
.pdrafts-list {
    display: grid;
    gap: 12px;
    min-width: 0;
}
.pdraft-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
    min-width: 0;
}
.pdraft-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pdraft-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ado-primary);
}
.pdraft-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ado-muted);
}
.pdraft-preview {
    margin: 0;
    color: var(--ado-text);
    line-height: 1.45;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pdraft-preview.is-empty {
    color: var(--ado-muted);
    font-style: italic;
}
.pdraft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.pdraft-actions form {
    margin: 0;
}

@media (min-width: 1024px) {
    .pdrafts { padding-bottom: 32px; max-width: 720px; }
}

/* ?? Publication detail ?? */
.pview {
    padding: 8px 0 48px;
    display: grid;
    gap: 16px;
    min-width: 0;
}
.pview-back { margin: 0; }
.pview-head .app-kicker { margin: 0; }
.pview-card {
    min-width: 0;
}
.pview-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pview-empty .ui-icon { color: var(--ado-primary); }
.pview-empty h1 {
    margin: 0;
    font-size: 1.25rem;
}
.pview-empty p {
    margin: 0;
    color: var(--ado-muted);
}

@media (min-width: 1024px) {
    .pview { padding-bottom: 32px; max-width: 720px; }
}

.pview-comments {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pview-comments-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pview-comments-head h2 {
    margin: 0;
    font-size: 1.05rem;
}
.pview-comments-hint {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.92rem;
}

/* ?? Commentaires publication ?? */
.pcmts {
    padding: 8px 0 calc(88px + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 16px;
    min-width: 0;
}
.pcmts-back { margin: 0; }
.pcmts-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
}
.pcmts-summary {
    margin: 0;
    color: var(--ado-muted);
}
.pcmts-preview {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pcmts-preview-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pcmts-preview-name {
    margin: 0;
    font-weight: 700;
}
.pcmts-preview-meta {
    margin: 2px 0 0;
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.pcmts-preview-body {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ado-text);
}
.pcmts-preview-media {
    margin: 0;
    padding: 0;
}
.pcmts-preview-media img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--ado-surface);
}
.pcmts-preview-link { margin: 0; }
.pcmts-list {
    display: grid;
    gap: 10px;
}
.cmt {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--ado-border);
    border-radius: 14px;
    background: var(--ado-surface);
}
.cmt-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cmt-avatar { flex: 0 0 auto; text-decoration: none; }
.cmt-who { flex: 1; min-width: 0; }
.cmt-name {
    display: inline-block;
    margin: 0;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}
a.cmt-name:hover,
a.cmt-name:focus-visible { color: var(--ado-primary); }
.cmt-meta {
    margin: 2px 0 0;
    color: var(--ado-muted);
    font-size: 0.8rem;
}
.cmt-body {
    margin: 0;
    overflow-wrap: anywhere;
}
.cmt-delete { margin-left: auto; }
.cmt-delete-btn {
    min-height: 36px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--ado-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.cmt-delete-btn:hover,
.cmt-delete-btn:focus-visible { color: var(--ado-text); }
.pcmts-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 3;
}
.pcmts-form-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}
.pcmts-input {
    width: 100%;
    min-height: 84px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid var(--ado-border);
    border-radius: 12px;
    background: var(--ado-surface);
    color: var(--ado-text);
    font: inherit;
    line-height: 1.45;
}
.pcmts-input:focus {
    outline: 2px solid color-mix(in srgb, var(--ado-primary) 55%, transparent);
    outline-offset: 1px;
}
.pcmts-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pcmts-count {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.85rem;
}
.pcmts-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pcmts-empty .ui-icon { color: var(--ado-primary); }
.pcmts-empty h1,
.pcmts-empty h2 {
    margin: 0;
    font-size: 1.2rem;
}
.pcmts-empty p {
    margin: 0;
    color: var(--ado-muted);
}
.pcmts-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.pcmts-pager-status {
    color: var(--ado-muted);
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .pcmts {
        padding-bottom: 32px;
        max-width: 720px;
    }
    .pcmts-form {
        position: static;
        bottom: auto;
    }
}

/* ?? Publication edit ?? */
.pedit {
    padding: 8px 0 48px;
    display: grid;
    gap: 16px;
    min-width: 0;
    max-width: 720px;
}
.pedit-back { margin: 0; }
.pedit-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
}
.pedit-head p {
    margin: 0;
    color: var(--ado-muted);
}
.pedit .app-composer {
    margin: 0;
}
.pedit .app-composer.is-edit {
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    padding: 14px;
    background: var(--ado-surface-soft);
}
.pedit .app-composer.is-edit .app-composer-editor {
    display: block;
    width: 100%;
}
.pedit .app-composer.is-edit .app-composer-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}
.pedit-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.pedit-empty .ui-icon { color: var(--ado-primary); }
.pedit-empty h1 {
    margin: 0;
    font-size: 1.25rem;
}
.pedit-empty p {
    margin: 0;
    color: var(--ado-muted);
}

@media (min-width: 1024px) {
    .pedit { padding-bottom: 32px; }
}

/* ?? Messagerie ADO+ ?? */
.msg {
    padding: 8px 0 48px;
    display: grid;
    gap: 16px;
    min-width: 0;
}
.msg-head h1 {
    margin: 0;
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    letter-spacing: -0.03em;
}
.msg-head p {
    margin: 8px 0 0;
    color: var(--ado-muted);
    max-width: 36rem;
}
.msg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.msg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.msg-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 22px 16px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.msg-empty-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--ado-primary);
    background: color-mix(in srgb, var(--ado-primary) 12%, transparent);
}
.msg-empty h2,
.msg-empty h3 {
    margin: 0;
    font-size: 1.2rem;
}
.msg-empty p { margin: 0; color: var(--ado-muted); }
.msg-list,
.msg-user-list,
.msg-req-list,
.msg-search-results {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.msg-item,
.msg-user-card,
.msg-req-card,
.msg-search-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.msg-item { grid-template-columns: auto 1fr; }
.msg-item.is-unread {
    border-color: color-mix(in srgb, var(--ado-primary) 45%, var(--ado-border));
    background: color-mix(in srgb, var(--ado-primary) 8%, var(--ado-surface));
}
.msg-item-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.msg-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.msg-item-name,
.msg-user-name,
.msg-search-name,
.msg-thread-name {
    font-weight: 700;
}
.msg-item-handle,
.msg-user-handle,
.msg-thread-handle,
.msg-search-conv {
    color: var(--ado-muted);
    font-size: 0.88rem;
}
.msg-item-preview,
.msg-search-excerpt {
    color: var(--ado-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.msg-item.is-unread .msg-item-preview {
    color: var(--ado-text);
    font-weight: 600;
}
.msg-item-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ado-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
.msg-item-time {
    color: var(--ado-muted);
    font-size: 0.82rem;
    white-space: nowrap;
}
.msg-item-time-sub { margin-top: 2px; }
.msg-search-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.msg-search-form .input { border: 0; background: transparent; box-shadow: none; }
.msg-search-icon { color: var(--ado-muted); display: grid; place-items: center; }
.msg-user-meta { min-width: 0; }
.msg-user-meta p { margin: 0; }
.msg-section-title {
    margin: 8px 0 0;
    font-size: 1rem;
}
.msg-req-card {
    grid-template-columns: 1fr;
    justify-items: stretch;
}
.msg-req-identity {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.msg-req-identity span { display: grid; gap: 2px; min-width: 0; }
.msg-req-card-link {
    grid-template-columns: auto 1fr;
    text-decoration: none;
    color: inherit;
}
.msg-req-card-link > span { display: grid; gap: 2px; min-width: 0; }
.msg-request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.msg-request-actions form { margin: 0; }
.msg-request-banner {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface-soft);
}
.msg-request-banner p { margin: 0; }
.msg-backline { margin: 0; }
.msg-search-item { grid-template-columns: 1fr; gap: 4px; }
.msg-search-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.msg-search-excerpt mark {
    background: color-mix(in srgb, var(--ado-primary) 28%, transparent);
    color: inherit;
    border-radius: 4px;
    padding: 0 2px;
}

/* Thread */
.msg-thread-page .app-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.msg-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: calc(100dvh - 140px);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.msg-thread-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 4px 0 8px;
    background: color-mix(in srgb, var(--ado-bg) 92%, transparent);
    backdrop-filter: blur(8px);
}
.msg-back {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--ado-text);
    text-decoration: none;
}
.msg-thread-peer {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.msg-thread-peer span { display: grid; min-width: 0; }
.msg-thread-handle { font-size: 0.86rem; color: var(--ado-muted); }
.msg-thread-menu { position: relative; }
.msg-thread-menu summary { list-style: none; cursor: pointer; }
.msg-thread-menu summary::-webkit-details-marker { display: none; }
.msg-thread-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--ado-border);
    border-radius: 14px;
    background: var(--ado-surface);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    z-index: 8;
}
.msg-thread-menu-panel a,
.msg-thread-menu-panel button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ado-text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.msg-thread-menu-panel a:hover,
.msg-thread-menu-panel button:hover {
    background: var(--ado-surface-soft);
}
.msg-bubbles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    min-height: 180px;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}
.msg-thread-empty {
    margin: auto;
    color: var(--ado-muted);
    text-align: center;
}
.msg-day {
    display: grid;
    place-items: center;
    margin: 8px 0;
}
.msg-day span {
    font-size: 0.8rem;
    color: var(--ado-muted);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ado-surface-soft);
}
.msg-bubble {
    max-width: min(78%, 420px);
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--ado-border);
    background: var(--ado-surface);
}
.msg-bubble.is-mine {
    align-self: flex-end;
    background: color-mix(in srgb, var(--ado-primary) 18%, var(--ado-surface));
    border-color: color-mix(in srgb, var(--ado-primary) 35%, var(--ado-border));
    border-bottom-right-radius: 6px;
}
.msg-bubble.is-theirs {
    align-self: flex-start;
    border-bottom-left-radius: 6px;
}
.msg-bubble-text {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.msg-bubble-time {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: var(--ado-muted);
}
.msg-composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    padding: 10px;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
}
.msg-composer-input {
    min-height: 44px;
    max-height: 140px;
    resize: vertical;
}
.msg-composer-send {
    min-width: 48px;
    min-height: 44px;
    padding-inline: 14px;
}
.msg-composer-note {
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    background: var(--ado-surface-soft);
    color: var(--ado-muted);
}

@media (min-width: 1024px) {
    .msg { max-width: 760px; padding-bottom: 32px; }
    .msg-thread {
        min-height: calc(100dvh - 120px);
        max-width: 760px;
    }
    .msg-composer {
        bottom: 16px;
    }
    .msg-thread-page .app-bottom { display: none; }
}

/* ?? Explorer / Recherche (espace connect?) ?? */
.app-xpl { padding-bottom: 48px; }
.xpl-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.xpl-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.xpl-block-head h2 { margin: 0; }
.xpl-note {
    margin: 0 0 12px;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.xpl-tag-count {
    margin-left: 6px;
    opacity: 0.75;
    font-size: 0.85em;
}
.xpl-trend-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.xpl-trend-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--ado-border);
    border-radius: 14px;
    background: var(--ado-surface);
    color: inherit;
    text-decoration: none;
}
.xpl-trend-rank {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
}
.xpl-trend-body { display: grid; gap: 2px; min-width: 0; }
.xpl-trend-name { font-weight: 700; }
.xpl-trend-meta { color: var(--ado-muted); font-size: 0.88rem; }

@media (min-width: 1024px) {
    .app-xpl { max-width: 760px; }
}

/* ?? Param?tres (centre unique) ?? */
.btn-danger {
    background: #b42318;
    color: #fff;
    border: 1px solid #912018;
}
.btn-danger:hover,
.btn-danger:focus-visible {
    background: #912018;
}
.set {
    width: 100%;
    max-width: 980px;
}
.set-layout {
    display: grid;
    gap: 1.25rem;
}
.set-nav {
    display: none;
}
.set-nav-home,
.set-nav-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: inherit;
    text-decoration: none;
}
.set-nav-home.is-on,
.set-nav-link.is-on {
    background: var(--ado-surface);
    border-color: var(--ado-border);
}
.set-nav-home:hover,
.set-nav-link:hover {
    background: var(--ado-surface);
}
.set-nav-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}
.set-nav-icon {
    flex: 0 0 auto;
    opacity: 0.85;
}
.set-nav-text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}
.set-nav-text strong {
    font-size: 0.95rem;
}
.set-nav-text span {
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.set-head {
    margin-bottom: 1rem;
}
.set-head h1 {
    margin: 0.15rem 0 0.35rem;
}
.set-head p {
    margin: 0;
    color: var(--ado-muted);
}
.set-head a {
    color: inherit;
}
.set-grid {
    display: grid;
    gap: 0.75rem;
}
.set-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
    color: inherit;
    text-decoration: none;
}
.set-card:hover,
.set-card:focus-visible {
    border-color: #7c6cf0;
}
.set-card-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    background: rgba(124, 108, 240, 0.12);
    color: #7c6cf0;
}
.set-card-body {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}
.set-card-body span {
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.set-card-chevron {
    color: var(--ado-muted);
    font-size: 1.35rem;
    line-height: 1;
}
.set-panel {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
    margin-bottom: 1rem;
}
.set-panel-muted {
    opacity: 0.92;
}
.set-panel-danger {
    border-color: rgba(180, 35, 24, 0.35);
}
.set-panel-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}
.set-panel-desc {
    margin: 0 0 1rem;
    color: var(--ado-muted);
}
.set-form {
    display: grid;
    gap: 0.85rem;
}
.set-actions {
    margin: 1rem 0 0;
}
.set-note {
    margin: 0.85rem 0;
    color: var(--ado-muted);
    font-size: 0.88rem;
}
.set-dl {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
}
.set-dl > div {
    display: grid;
    gap: 0.15rem;
}
.set-dl dt {
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.set-dl dd {
    margin: 0;
    white-space: pre-wrap;
}
.set-profile-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.set-profile-name {
    margin: 0;
    font-weight: 700;
}
.set-profile-handle {
    margin: 0.15rem 0 0;
    color: var(--ado-muted);
}
.set-toggle-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.set-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ado-border);
}
.set-toggle:last-child {
    border-bottom: 0;
}
.set-toggle-text label {
    font-weight: 650;
}
.set-toggle-text p {
    margin: 0.2rem 0 0;
    color: var(--ado-muted);
    font-size: 0.88rem;
}
.set-toggle-state {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--ado-muted);
}
.set-switch {
    width: 2.75rem;
    height: 1.55rem;
    appearance: none;
    border-radius: 999px;
    background: #9ca3af;
    position: relative;
    cursor: pointer;
    border: 0;
    flex-shrink: 0;
}
.set-switch::after {
    content: "";
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}
.set-switch:checked {
    background: #7c6cf0;
}
.set-switch:checked::after {
    transform: translateX(1.15rem);
}
.set-switch:focus-visible {
    outline: 2px solid #7c6cf0;
    outline-offset: 3px;
}
.set-theme-choices {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}
.set-theme-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--ado-border);
    border-radius: 12px;
    cursor: pointer;
}
.set-theme-option.is-on {
    border-color: #7c6cf0;
    box-shadow: inset 0 0 0 1px #7c6cf0;
}
.set-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--ado-border);
    border-radius: 16px;
    color: var(--ado-muted);
}
.set-empty h2 {
    margin: 0.75rem 0 0.35rem;
    color: inherit;
}

@media (min-width: 1024px) {
    .set-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
        gap: 1.5rem;
    }
    .set-nav {
        display: block;
        position: sticky;
        top: 5.5rem;
    }
}

@media (prefers-reduced-motion: reduce),
body.reduce-motion {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.ado-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--ado-border);
    background: var(--ado-surface-soft);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.2;
    vertical-align: middle;
    margin-left: 0.25rem;
}
.ado-role-badge.is-sm {
    font-size: 0.75rem;
    padding: 0.12rem 0.45rem;
}
.ado-role-moderator {
    border-color: rgba(108, 92, 231, 0.35);
    color: #5b4dd6;
}
.ado-role-super_moderator {
    border-color: rgba(245, 158, 11, 0.4);
    color: #b45309;
}
.ado-role-administrator {
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}
[data-theme="dark"] .ado-role-moderator { color: #c4b5fd; }
[data-theme="dark"] .ado-role-super_moderator { color: #fbbf24; }
[data-theme="dark"] .ado-role-administrator { color: #fca5a5; }
.prf-who .ado-role-badge { margin: 0.35rem 0 0; }

/* —— Signalements utilisateur —— */
.rpt {
    width: 100%;
    max-width: 720px;
}
.rpt-head {
    margin-bottom: 1rem;
}
.rpt-head h1 {
    margin: 0.15rem 0 0.35rem;
}
.rpt-head p {
    margin: 0;
    color: var(--ado-muted);
}
.rpt-head a {
    color: inherit;
}
.rpt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}
.rpt-toolbar {
    margin: 0 0 1rem;
}
.rpt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
.rpt-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
}
.rpt-id {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.85rem;
    font-weight: 650;
}
.rpt-reason {
    margin: 0;
    font-size: 1.05rem;
}
.rpt-meta {
    margin: 0;
    color: var(--ado-muted);
    font-size: 0.9rem;
}
.rpt-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.15rem 0 0.55rem;
    font-size: 0.9rem;
    font-weight: 650;
}
.rpt-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: currentColor;
}
.rpt-status-wait { color: #b45309; }
.rpt-status-progress { color: #5b4dd6; }
.rpt-status-ok { color: #0f766e; }
.rpt-status-bad { color: #b42318; }
[data-theme="dark"] .rpt-status-wait { color: #fbbf24; }
[data-theme="dark"] .rpt-status-progress { color: #c4b5fd; }
[data-theme="dark"] .rpt-status-ok { color: #5eead4; }
[data-theme="dark"] .rpt-status-bad { color: #fca5a5; }
.rpt-empty {
    text-align: center;
    padding: 2.4rem 1rem;
    border: 1px dashed var(--ado-border);
    border-radius: 16px;
    color: var(--ado-muted);
}
.rpt-empty h2 {
    margin: 0.75rem 0 0.4rem;
    color: inherit;
    font-size: 1.1rem;
}
.rpt-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--ado-primary);
}
.rpt-form {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
}
.rpt-form select.input {
    appearance: auto;
}
.rpt-opt {
    color: var(--ado-muted);
    font-weight: 500;
}
.rpt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.rpt-panel {
    padding: 1rem 1.1rem;
    border: 1px solid var(--ado-border);
    border-radius: 16px;
    background: var(--ado-surface);
    margin-bottom: 0.85rem;
}
.rpt-panel-title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
}
.rpt-dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}
.rpt-dl dt {
    color: var(--ado-muted);
    font-size: 0.82rem;
}
.rpt-dl dd {
    margin: 0.15rem 0 0;
}
.rpt-excerpt,
.rpt-desc {
    margin: 0.5rem 0 0;
    white-space: pre-wrap;
}
.rpt-muted {
    color: var(--ado-muted);
}
.rpt-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}
.rpt-more {
    margin-top: 1rem;
}
.rpt-state {
    text-align: center;
    padding: 2rem 0;
}
.cmt-report {
    display: inline-block;
    margin: 0.2rem 0 0;
    color: var(--ado-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.cmt-report:hover {
    color: var(--ado-text);
}
