:root {
  color-scheme: dark;
  --bg: #090611;
  --bg-soft: #100a1d;
  --panel: rgba(25, 16, 43, 0.84);
  --panel-solid: #1a112d;
  --panel-2: #21143a;
  --line: rgba(222, 202, 255, 0.12);
  --text: #f8f5ff;
  --muted: #bdb1d3;
  --violet: #9b73ff;
  --violet-2: #6540c5;
  --gold: #e3bd66;
  --gold-soft: #ffe4a0;
  --danger: #ff7890;
  --success: #78dfb1;
  --shadow: 0 22px 70px rgba(0,0,0,.34);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background:
  radial-gradient(circle at 20% 0%, rgba(104, 61, 196, .27), transparent 34rem),
  radial-gradient(circle at 90% 24%, rgba(220, 171, 79, .11), transparent 28rem),
  linear-gradient(180deg, #0c0716, #08060d 60%);
}
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

#app { min-height: 100vh; }

.ambient-orbit { position: fixed; inset: auto; pointer-events: none; border: 1px solid rgba(169, 127, 255, .13); border-radius: 50%; filter: blur(.2px); }
.orbit-a { width: 52rem; height: 20rem; right: -20rem; top: 4rem; transform: rotate(-20deg); }
.orbit-b { width: 34rem; height: 12rem; left: -16rem; bottom: 8rem; transform: rotate(24deg); }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .01em; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 16px rgba(155,115,255,.35)); }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }

.btn { border: 1px solid transparent; border-radius: 14px; padding: 11px 16px; cursor: pointer; transition: .2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #9c75ff, #6840c7); box-shadow: 0 10px 30px rgba(112, 65, 204, .28); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, #f6d98a, #bd8130); color: #21150a; }
.btn-ghost { background: rgba(255,255,255,.035); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.07); }
.btn-danger { background: rgba(255, 104, 131, .12); border-color: rgba(255,104,131,.25); color: #ffadc0; }
.btn-sm { padding: 8px 11px; border-radius: 11px; font-size: .86rem; }
.icon-btn { width: 39px; height: 39px; padding: 0; border-radius: 50%; background: transparent; border: 1px solid transparent; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.06); border-color: var(--line); }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); position: relative; overflow: hidden; }
.hero { padding: clamp(42px, 7vw, 92px); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; }
.hero-copy { max-width: 760px; margin-block: auto; }
.kicker { color: var(--gold); letter-spacing: .17em; text-transform: uppercase; font-size: .78rem; font-weight: 800; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); margin: 10px 0 12px; line-height: .91; letter-spacing: -.065em; }
.hero h1 span { color: var(--gold-soft); }
.hero p { max-width: 690px; color: #d5cbe6; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.65; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.principle { border: 1px solid var(--line); background: rgba(255,255,255,.028); border-radius: 18px; padding: 16px; backdrop-filter: blur(15px); }
.principle strong { display: block; margin-bottom: 6px; }
.principle span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.hero-footer { color: #8f84a4; font-size: .82rem; }

.auth-panel { min-height: 100vh; padding: 24px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); background: rgba(9,6,17,.46); backdrop-filter: blur(18px); }
.auth-card { width: min(100%, 470px); background: linear-gradient(160deg, rgba(34,21,60,.92), rgba(18,12,31,.93)); border: 1px solid rgba(219,198,255,.14); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 8px 0 8px; font-size: 1.65rem; }
.auth-card > p { color: var(--muted); line-height: 1.55; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; border-radius: 15px; background: rgba(255,255,255,.04); margin: 22px 0; }
.mode-switch button { border: 0; border-radius: 11px; padding: 10px; background: transparent; cursor: pointer; color: var(--muted); font-weight: 700; }
.mode-switch button.active { background: rgba(155,115,255,.16); color: #fff; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { color: #ddd5ea; font-size: .9rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: rgba(5,3,10,.46); color: var(--text); border-radius: 13px; padding: 12px 13px; outline: none; }
.field input:focus, .field textarea:focus { border-color: rgba(155,115,255,.58); box-shadow: 0 0 0 3px rgba(155,115,255,.1); }
.help { color: #8f84a4; font-size: .79rem; line-height: 1.45; }
.notice { border: 1px solid rgba(227,189,102,.2); background: rgba(227,189,102,.07); color: #efdcae; border-radius: 14px; padding: 12px; font-size: .84rem; line-height: 1.45; }
.form-error { color: #ff9fb2; font-size: .85rem; min-height: 1.2em; }
.full { width: 100%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 760px) 300px; justify-content: center; gap: 20px; padding: 18px; }
.sidebar, .rightbar { position: sticky; top: 18px; align-self: start; height: calc(100vh - 36px); }
.sidebar { border: 1px solid var(--line); background: rgba(18,11,31,.72); border-radius: 24px; padding: 17px; backdrop-filter: blur(18px); display: flex; flex-direction: column; }
.nav { display: grid; gap: 7px; margin-top: 24px; }
.nav button { border: 1px solid transparent; background: transparent; border-radius: 13px; padding: 12px; text-align: left; cursor: pointer; color: var(--muted); display: flex; gap: 10px; align-items: center; font-weight: 700; }
.nav button:hover, .nav button.active { color: #fff; background: rgba(155,115,255,.1); border-color: rgba(155,115,255,.14); }
.nav-spacer { flex: 1; }
.user-mini { border-top: 1px solid var(--line); padding-top: 14px; display: flex; gap: 10px; align-items: center; }
.avatar { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #9b73ff, #d5a64d); color: #150d22; font-weight: 900; border: 2px solid rgba(255,255,255,.2); flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-mini strong, .post-author strong { display: block; }
.user-mini span, .post-author span { color: var(--muted); font-size: .78rem; }

.main { min-width: 0; }
.topbar { position: sticky; top: 18px; z-index: 10; background: rgba(13,8,23,.86); border: 1px solid var(--line); border-radius: 20px; padding: 10px; backdrop-filter: blur(20px); margin-bottom: 14px; }
.feed-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.feed-tabs button { border: 0; background: transparent; color: var(--muted); border-radius: 12px; padding: 10px; cursor: pointer; font-weight: 800; font-size: .9rem; }
.feed-tabs button.active { color: #fff; background: rgba(155,115,255,.12); }

.card { background: linear-gradient(150deg, rgba(28,18,48,.82), rgba(16,10,28,.82)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 42px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.composer { padding: 17px; margin-bottom: 14px; }
.composer-top { display: flex; gap: 12px; }
.composer textarea { resize: vertical; min-height: 86px; max-height: 260px; flex: 1; border: 0; outline: none; background: transparent; color: var(--text); font-size: 1.06rem; line-height: 1.5; padding: 8px 0; }
.composer-actions { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.composer-tools { color: var(--violet); display: flex; gap: 5px; }
.char-count { color: var(--muted); font-size: .8rem; }

.post { padding: 17px; margin-bottom: 14px; }
.post-head { display: flex; justify-content: space-between; gap: 12px; }
.post-author { display: flex; gap: 10px; align-items: center; }
.post-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.badge { border-radius: 999px; padding: 4px 8px; font-size: .7rem; font-weight: 800; border: 1px solid var(--line); color: #d7cdeb; }
.badge-gold { color: #f4dda4; border-color: rgba(227,189,102,.22); background: rgba(227,189,102,.07); }
.post-content { line-height: 1.62; color: #f0ebf7; margin: 15px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-context { color: #c8b9df; font-size: .82rem; border-left: 3px solid var(--violet); padding: 7px 10px; background: rgba(155,115,255,.055); border-radius: 0 10px 10px 0; }
.post-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding-top: 11px; border-top: 1px solid var(--line); }
.post-actions button { background: transparent; border: 0; padding: 8px 4px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: .78rem; font-weight: 700; display: grid; grid-template-columns: auto auto; grid-template-areas: "icon label" "icon count"; column-gap: 6px; align-items: center; justify-content: center; min-width: 0; }
.post-actions button:hover, .post-actions button.active { background: rgba(255,255,255,.045); color: #fff; }
.post-actions .active { color: var(--gold-soft); }
.action-icon { grid-area: icon; font-size: 1rem; line-height: 1; }
.action-label { grid-area: label; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-count { grid-area: count; font-size: .68rem; color: var(--muted); font-weight: 700; text-align: left; }
.post-actions button.active .action-count { color: inherit; }
.inline-thread { margin-top: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.inline-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.text-link { border: 0; background: transparent; color: var(--violet-soft, #cbb7ff); cursor: pointer; font-weight: 700; padding: 5px; }
.inline-comments { display: grid; gap: 10px; }
.inline-comment { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(220,201,255,.1); }
.inline-comment:last-child { border-bottom: 0; }
.inline-comment-body { min-width: 0; flex: 1; }
.inline-comment-meta { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.inline-comment-meta span { color: var(--muted); font-size: .73rem; }
.inline-comment p { margin: 5px 0 0; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.inline-empty { padding: 8px 0; margin: 0; }
.inline-comment-form { margin-top: 12px; }
.inline-comment-form label { display: block; color: #d9d0e6; font-size: .8rem; font-weight: 700; margin-bottom: 7px; }
.inline-reply-row { display: flex; gap: 8px; align-items: end; }
.inline-reply-row textarea { min-height: 64px; flex: 1; resize: vertical; border: 1px solid var(--line); border-radius: 13px; background: rgba(5,3,10,.52); color: var(--text); padding: 10px 12px; line-height: 1.45; }
.empty-state { padding: 54px 25px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 8px; }

.rightbar { display: grid; gap: 14px; align-content: start; overflow: auto; scrollbar-width: none; }
.side-card { padding: 16px; }
.side-card h3 { margin: 0 0 12px; font-size: 1rem; }
.side-card p, .side-card li { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.side-card ul { padding-left: 19px; margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 13px; padding: 11px; }
.stat strong { display: block; font-size: 1.2rem; }
.stat span { color: var(--muted); font-size: .73rem; }

.page-card { padding: 22px; }
.page-title { margin: 0 0 6px; }
.page-subtitle { margin: 0 0 22px; color: var(--muted); }
.profile-hero { overflow: hidden; }
.profile-banner { height: 138px; background: radial-gradient(circle at 70% 20%, rgba(227,189,102,.48), transparent 26%), linear-gradient(135deg, #33205e, #150d2b 60%, #704c27); }
.profile-body { padding: 0 22px 22px; }
.profile-avatar { width: 92px; height: 92px; margin-top: -46px; border: 5px solid #171027; font-size: 1.8rem; }
.profile-info { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-top: 10px; }
.profile-info h2 { margin: 0; }
.profile-info p { color: var(--muted); line-height: 1.5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 999px; padding: 6px 9px; color: #d7cdea; font-size: .78rem; }

.list { display: grid; gap: 10px; }
.list-item { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 14px; padding: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list-item small { color: var(--muted); display: block; margin-top: 4px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(2,1,5,.75); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 18px; }
.modal { width: min(100%, 520px); max-height: 90vh; overflow: auto; background: #171026; border: 1px solid rgba(220,201,255,.17); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.modal h2 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

.toast-wrap { position: fixed; z-index: 80; bottom: 22px; right: 22px; display: grid; gap: 8px; }
.toast { background: #24183a; border: 1px solid rgba(220,201,255,.18); border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow); animation: pop .2s ease; max-width: 360px; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }

.mobile-nav { display: none; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; color: #f0dca9; background: rgba(227,189,102,.08); border: 1px solid rgba(227,189,102,.2); font-size: .75rem; font-weight: 800; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 220px minmax(0, 760px); }
  .rightbar { display: none; }
}
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 34px 22px; }
  .hero-copy { margin: 52px 0; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.6rem); }
  .principles { grid-template-columns: 1fr; }
  .auth-panel { min-height: auto; border-left: 0; border-top: 1px solid var(--line); padding: 22px 16px 50px; }
  .app-shell { display: block; padding: 10px 10px 82px; }
  .sidebar { display: none; }
  .topbar { top: 8px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 9px; right: 9px; bottom: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 19px; background: rgba(18,11,31,.91); backdrop-filter: blur(20px); }
  .mobile-nav button { border: 0; background: transparent; color: var(--muted); padding: 9px 2px; border-radius: 11px; font-size: .7rem; display: grid; gap: 3px; place-items: center; }
  .mobile-nav button.active { background: rgba(155,115,255,.13); color: #fff; }
}
@media (max-width: 520px) {
  .post, .composer, .page-card { border-radius: 17px; padding: 14px; }
  .post-actions { grid-template-columns: repeat(5, minmax(52px, 1fr)); gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .post-actions button { padding: 8px 3px; grid-template-columns: 1fr; grid-template-areas: "icon" "label" "count"; row-gap: 3px; font-size: .68rem; min-width: 52px; }
  .post-actions .action-icon { font-size: 1.1rem; }
  .post-actions .action-label { display: block; max-width: 100%; }
  .post-actions .action-count { text-align: center; font-size: .65rem; }
  .inline-thread { margin-left: -4px; margin-right: -4px; }
  .inline-comment { align-items: flex-start; }
  .inline-reply-row { display: grid; }
  .inline-reply-row .btn { width: 100%; }
  .composer-actions { align-items: end; }
  .feed-tabs button { font-size: .78rem; padding: 9px 4px; }
  .profile-info { display: grid; }
}

/* Elunorya Alpha partagée v0.2 */
.center-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; color: var(--muted); }
.center-loading img { width: 82px; height: 82px; filter: drop-shadow(0 0 24px rgba(155,115,255,.42)); animation: breathe 2s ease-in-out infinite; }
.center-loading strong { color: var(--text); font-size: 1.25rem; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .82; } }
.error-panel { max-width: 620px; margin: auto; }
.optional, .muted { color: var(--muted); font-weight: 500; }
.check-row { display: flex; gap: 10px; align-items: flex-start; color: #d8cfdf; font-size: .86rem; line-height: 1.45; margin: 13px 0; }
.check-row input { margin-top: 3px; accent-color: var(--violet); }
.text-button { display: block; width: 100%; margin-top: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.text-button:hover { color: var(--gold-soft); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: rgba(155,115,255,.2); font-size: .72rem; }
.author-button { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.post-author.author-button { display: flex; }
.post-author.author-button:hover strong { color: var(--gold-soft); }
.composer-submit { display: flex; align-items: center; gap: 10px; }
.upload-label { display: grid; place-items: center; }
.pending-media { position: relative; margin: 12px 0 0 55px; width: min(280px, calc(100% - 55px)); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.pending-media img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.pending-media button { position: absolute; top: 8px; right: 8px; background: rgba(8,5,14,.85); }
.post-media { margin: 14px 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; min-height: 80px; background: rgba(0,0,0,.16); display: grid; place-items: center; color: var(--muted); }
.post-media img { display: block; width: 100%; max-height: 680px; object-fit: contain; background: #07050b; }
.media-loading { animation: mediaPulse 1.5s ease-in-out infinite; }
@keyframes mediaPulse { 50% { background: rgba(155,115,255,.06); } }
.source-link { display: inline-flex; gap: 7px; align-items: center; color: var(--gold-soft); font-size: .83rem; text-decoration: none; margin-bottom: 8px; }
.source-link:hover { text-decoration: underline; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-card { border: 1px solid var(--line); background: rgba(255,255,255,.025); padding: 12px; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.member-main strong, .member-main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.member-main span { color: var(--muted); font-size: .77rem; }
.section-heading { padding: 10px 5px 2px; }
.section-heading h2 { font-size: 1.08rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.profile-stats strong { color: var(--text); }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.security-note { margin-top: 18px; }
.admin-create { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 22px; background: rgba(255,255,255,.025); }
.admin-create > div { flex: 1 1 260px; }
.admin-create small { display: block; color: var(--muted); margin-top: 4px; }
.admin-create label { color: var(--muted); font-size: .78rem; display: grid; gap: 4px; }
.admin-create input { width: 74px; background: rgba(5,3,10,.46); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.code-text { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--gold-soft); }
.report-item { align-items: flex-start; }
.report-item > div { flex: 1; }
.report-item p { margin: 8px 0; color: var(--muted); }
.report-excerpt { background: rgba(255,255,255,.035); border-left: 3px solid var(--violet); padding: 10px; border-radius: 0 10px 10px 0; color: #dcd3ea; margin: 8px 0; white-space: pre-wrap; }
.danger-text { color: #ff9fb2; }
.select-field { width: 100%; padding: 12px; border-radius: 13px; background: #0d0918; color: #fff; border: 1px solid var(--line); }
.modal-wide { width: min(100%, 700px); }
.comment-post { padding: 12px; border-radius: 13px; background: rgba(155,115,255,.06); border: 1px solid var(--line); margin-bottom: 16px; white-space: pre-wrap; }
.comments-list { display: grid; gap: 12px; max-height: 40vh; overflow: auto; padding-right: 4px; }
.comment { display: flex; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 11px; }
.comment strong, .comment span { display: block; }
.comment span { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.comment p { margin: 7px 0 0; line-height: 1.48; white-space: pre-wrap; overflow-wrap: anywhere; }
.small-avatar { width: 34px; height: 34px; font-size: .72rem; }
.modal-profile { text-align: center; }
.profile-avatar-modal { margin: 0 auto 9px; width: 76px; height: 76px; font-size: 1.4rem; }
.modal blockquote { border-left: 3px solid var(--gold); margin: 18px 0; padding: 10px 14px; color: var(--gold-soft); background: rgba(227,189,102,.06); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

@media (max-width: 620px) {
  .member-grid, .help-grid { grid-template-columns: 1fr; }
  .pending-media { margin-left: 0; width: 100%; }
  .admin-create { align-items: stretch; }
  .admin-create label { display: flex; justify-content: space-between; align-items: center; }
}

/* v0.2.2 — réactions rattachées aux commentaires */
.comment-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.comment-actions button { border: 1px solid rgba(220,201,255,.1); background: rgba(255,255,255,.025); color: var(--muted); border-radius: 9px; padding: 5px 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; }
.comment-actions button:hover, .comment-actions button.active { background: rgba(155,115,255,.12); color: #fff; border-color: rgba(155,115,255,.25); }
.comment-actions button.active { color: var(--gold-soft); }
.comment-actions b { min-width: 1ch; font-size: .67rem; color: #8f84a4; }
.comment-actions button.active b { color: inherit; }
@media (max-width: 520px) {
  .comment-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comment-actions button { justify-content: center; min-height: 32px; }
}


/* v0.2.3 — cohérence visuelle des conversations et anti-cache */
.inline-thread {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(220,201,255,.12);
  border-radius: 15px;
  background: rgba(7,4,13,.28);
}
.inline-thread-head strong { font-size: .92rem; }
.inline-thread-head .text-link {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(155,115,255,.08);
  border: 1px solid rgba(155,115,255,.16);
  border-radius: 9px;
  color: #d8ccf1;
  padding: 6px 9px;
}
.inline-comment {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  padding: 12px 0;
}
.inline-comment-body { width: 100%; min-width: 0; overflow: hidden; }
.inline-comment-meta strong { overflow-wrap: anywhere; }
.comment-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}
.comment-actions button {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  border: 1px solid rgba(220,201,255,.13) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.035) !important;
  color: #bdb1cf !important;
  padding: 6px 7px !important;
  font: inherit;
  font-size: .68rem !important;
  font-weight: 700 !important;
  line-height: 1.15;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.comment-actions button:hover,
.comment-actions button.active {
  background: rgba(155,115,255,.14) !important;
  color: #fff !important;
  border-color: rgba(155,115,255,.34) !important;
}
.comment-actions button.active { color: var(--gold-soft) !important; }
.comment-actions button span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.comment-actions b {
  flex: 0 0 auto;
  color: #9185a5 !important;
  font-size: .65rem !important;
}
.comment-actions button.active b { color: inherit !important; }
.inline-comment-form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(220,201,255,.1);
}
.inline-reply-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px;
  align-items: stretch;
}
.inline-reply-row textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  outline: none;
}
.inline-reply-row textarea:focus {
  border-color: rgba(155,115,255,.55);
  box-shadow: 0 0 0 3px rgba(155,115,255,.08);
}
.inline-reply-row .btn { align-self: end; min-height: 42px; }

@media (max-width: 700px) {
  .inline-thread { padding: 12px; margin-left: 0; margin-right: 0; }
  .comment-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .inline-reply-row { grid-template-columns: 1fr; }
  .inline-reply-row .btn { width: 100%; }
}


/* Notifications lues / non lues — v0.2.4 */
.notifications-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.notifications-heading .page-subtitle { margin-bottom: 0; }
.notification-summary { margin: 18px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(155,115,255,.055); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.notification-summary strong { color: var(--text); }
.notification-summary span { color: var(--muted); font-size: .88rem; }
.notification-list { gap: 9px; }
.notification-item { position: relative; justify-content: flex-start; align-items: flex-start; transition: opacity .18s ease, border-color .18s ease, background .18s ease; }
.notification-item.unread { border-color: rgba(155,115,255,.52); background: linear-gradient(90deg, rgba(155,115,255,.16), rgba(255,255,255,.025)); box-shadow: inset 3px 0 0 rgba(177,137,255,.92); }
.notification-item.read { opacity: .67; }
.notification-dot { width: 9px; height: 9px; margin-top: 6px; border-radius: 999px; flex: 0 0 9px; background: transparent; }
.notification-item.unread .notification-dot { background: #b98cff; box-shadow: 0 0 12px rgba(185,140,255,.7); }
.notification-copy { min-width: 0; flex: 1; }
.notification-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.new-label { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 999px; color: #f5efff; background: rgba(155,115,255,.25); border: 1px solid rgba(185,140,255,.4); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mobile-nav button > span { position: relative; }
.mobile-nav-count { position: absolute; top: -8px; right: -12px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: #9b73ff; color: white; font-size: .6rem; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }

@media (max-width: 700px) {
  .notifications-heading { align-items: stretch; flex-direction: column; }
  .notifications-heading .btn { align-self: flex-start; }
  .notification-item { padding: 12px 11px; }
  .notification-summary { align-items: flex-start; flex-direction: column; }
}
