/* LawHub 9.2 — visual coherence, Arena v2, comments, visitors, donations, themes */
:root{--lh92-radius:18px;--lh92-soft:#f6f8fb;--lh92-line:#e2e8f0;--lh92-shadow:0 14px 38px rgba(15,35,60,.07)}

/* Palette */
.lhv81-palette{position:relative}.lhv92-palette-menu{position:absolute!important;right:0!important;top:48px!important;width:300px!important;padding:14px!important;border:1px solid var(--lh-line)!important;border-radius:18px!important;background:var(--lh-card)!important;box-shadow:0 22px 60px rgba(8,25,48,.18)!important;z-index:500!important}.lhv92-palette-menu header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 12px}.lhv92-palette-menu header b,.lhv92-palette-menu header small{display:block}.lhv92-palette-menu header b{font-size:13px}.lhv92-palette-menu header small{margin-top:2px;font-size:9px;color:var(--lh-muted)}.lhv92-palette-menu header>span{font-size:8px;letter-spacing:.12em;border:1px solid var(--lh-line);border-radius:999px;padding:4px 7px;color:var(--lh-muted)}.lhv92-palette-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.lhv92-palette-grid button{height:56px!important;border:1px solid var(--lh-line)!important;border-radius:12px!important;background:var(--lh92-soft)!important;display:flex!important;align-items:center!important;gap:9px!important;padding:8px 10px!important;color:var(--lh-text)!important;cursor:pointer!important}.lhv92-palette-grid button i{width:28px;height:28px;border-radius:9px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.lhv92-palette-grid button b{font-size:10px}.lhv92-palette-grid button.is-active{border-color:var(--lh-accent)!important;box-shadow:0 0 0 3px rgba(var(--lh-accent-rgb),.08)!important}.lhv92-palette-grid [data-lhv81-theme="lawhub"] i{background:linear-gradient(135deg,#132440,#2d5f9b)}.lhv92-palette-grid [data-lhv81-theme="navy"] i{background:linear-gradient(135deg,#0f294b,#28588f)}.lhv92-palette-grid [data-lhv81-theme="graphite"] i{background:linear-gradient(135deg,#20242b,#626a75)}.lhv92-palette-grid [data-lhv81-theme="emerald"] i{background:linear-gradient(135deg,#0f5e49,#2b9b78)}.lhv92-palette-grid [data-lhv81-theme="violet"] i{background:linear-gradient(135deg,#56359e,#906fd2)}.lhv92-palette-grid [data-lhv81-theme="dark"] i{background:linear-gradient(135deg,#090d14,#283448)}

/* True dark mode */
html[data-lh-theme="dark"]{--lh-bg:#0c1119;--lh-card:#131a24;--lh-text:#eef3f8;--lh-muted:#94a0af;--lh-line:#283241;--lh-red:#5b8cc7;--lh-red2:#78a8df;--lh-accent:#5b8cc7;--lh-accent2:#78a8df;--lh-accent-soft:#172438;--lh-accent-rgb:91,140,199;--lh-dark:#080c12;--lh92-soft:#101722;--lh92-line:#283241;--lh92-shadow:0 18px 48px rgba(0,0,0,.28)}
html[data-lh-theme="dark"],html[data-lh-theme="dark"] body,html[data-lh-theme="dark"] .lhv8-body{background:#0c1119!important;color:#eef3f8!important}html[data-lh-theme="dark"] .lhv8-left,html[data-lh-theme="dark"] .lhv8-right,html[data-lh-theme="dark"] .lhv8-card,html[data-lh-theme="dark"] .lhv8-profile-card,html[data-lh-theme="dark"] .lhv8-stat,html[data-lh-theme="dark"] .lhv8-post,html[data-lh-theme="dark"] .lhv8-comment-bubble,html[data-lh-theme="dark"] .lhv92-palette-menu{background:#131a24!important;border-color:#283241!important;color:#eef3f8!important}html[data-lh-theme="dark"] input,html[data-lh-theme="dark"] textarea,html[data-lh-theme="dark"] select{background:#101722!important;border-color:#2a3545!important;color:#eef3f8!important}html[data-lh-theme="dark"] .lhv8-nav a{color:#cad3df}html[data-lh-theme="dark"] .lhv8-nav a:hover{background:#182232}html[data-lh-theme="dark"] .lhv8-nav a.is-active{background:#1b2b43!important;color:#9fc4ef!important}html[data-lh-theme="dark"] .lhv8-side-note p,html[data-lh-theme="dark"] .lhv8-muted,html[data-lh-theme="dark"] small{color:#94a0af!important}html[data-lh-theme="dark"] .lhv8-post-actions,html[data-lh-theme="dark"] .lhv8-post-stats,html[data-lh-theme="dark"] .lhv88-comment-meta{border-color:#283241!important}html[data-lh-theme="dark"] .lhv8-comment-form input{background:#0f1621!important}html[data-lh-theme="dark"] .lhv92-donation-card,html[data-lh-theme="dark"] .lhv92-visitors{background:#131a24!important}

/* Profile metric coherence — no special follower tint */
.lhv91-profile-metrics>div{background:transparent!important;border-left:0!important;border-right:0!important}.lhv91-profile-metrics>div b{color:inherit!important}.lhv91-profile-metrics>div+div{border-left:1px solid var(--lh-line)!important}

/* Comment avatars & threaded replies */
.lhv88-comment{display:flex;align-items:flex-start;gap:10px;margin-top:12px}.lhv88-comment-avatar{flex:0 0 38px;width:38px;height:38px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--lh-accent-soft),#fff);border:1px solid var(--lh-line)}.lhv88-comment-avatar img{width:100%;height:100%;object-fit:cover;display:block}.lhv88-comment-main{min-width:0;flex:1}.lhv8-comment-bubble{display:inline-block;max-width:min(680px,100%);padding:10px 13px;border-radius:15px;background:#f4f6f8;border:1px solid #edf0f3}.lhv8-comment-bubble a{text-decoration:none;color:inherit}.lhv8-comment-bubble p{margin:4px 0 0;line-height:1.5}.lhv88-comment-meta{display:flex;align-items:center;gap:9px;padding:5px 4px;font-size:9px;color:var(--lh-muted)}.lhv88-comment-meta button{border:0;background:transparent;color:var(--lh-muted);padding:0;cursor:pointer;font-size:9px;font-weight:700}.lhv88-comment-meta button.is-on{color:var(--lh-accent)}.lhv88-comment-meta svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;vertical-align:-2px}.lhv88-comment-replies{margin-left:14px;padding-left:14px;border-left:2px solid #e7edf4}.lhv88-reply-form{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;gap:7px;align-items:center;margin:6px 0 8px}.lhv88-reply-form img{width:30px;height:30px;border-radius:50%;object-fit:cover}.lhv88-reply-form input{height:36px;border:1px solid var(--lh-line);border-radius:999px;padding:0 12px;outline:0}.lhv88-reply-form button{width:34px;height:34px;border:0;border-radius:50%;background:var(--lh-accent);color:#fff;display:grid;place-items:center}.lhv88-reply-form svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}

/* Post 3-dot menu */
.lhv8-post>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px}.lhv92-post-menu{position:relative}.lhv92-post-menu>button{width:34px;height:34px;border:1px solid var(--lh-line);border-radius:50%;background:var(--lh-card);color:var(--lh-muted);font-weight:900;cursor:pointer}.lhv92-post-menu-pop{position:absolute;right:0;top:40px;width:150px;padding:6px;background:var(--lh-card);border:1px solid var(--lh-line);border-radius:12px;box-shadow:var(--lh92-shadow);z-index:30}.lhv92-post-menu-pop button{width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:8px;cursor:pointer;font-size:10px;font-weight:700;color:var(--lh-text)}.lhv92-post-menu-pop button:hover{background:var(--lh92-soft)}.lhv92-post-menu-pop .danger{color:#b42335}.lhv92-post-edit-box{display:grid;gap:8px;margin:10px 0}.lhv92-post-edit-box textarea{width:100%;min-height:110px;border:1px solid var(--lh-line);border-radius:12px;padding:12px;resize:vertical}.lhv92-post-edit-actions{display:flex;justify-content:flex-end;gap:7px}

/* Arena 9.2 */
.lhv88-arena-dashboard{grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr)!important;gap:16px!important}.lhv88-arena-builder,.lhv88-arena-friends{border-radius:20px!important;box-shadow:var(--lh92-shadow)!important}.lhv92-arena-builder{display:grid;gap:14px}.lhv92-arena-topline{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);gap:12px}.lhv92-arena-topline>label>span{display:block;font-size:9px;font-weight:900;letter-spacing:.05em;color:#718096;margin-bottom:6px}.lhv92-arena-exam-field select{width:100%;height:46px;border:1px solid #dbe4ee;border-radius:12px;padding:0 12px;background:#fff}.lhv92-arena-rules-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lhv88-arena-rule{border:1px solid #dbe4ee!important;background:linear-gradient(180deg,#fbfdff,#f5f8fb)!important;border-radius:15px!important;padding:12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 88px!important;grid-template-areas:"head head" "presets input"!important;gap:8px!important;align-items:center!important}.lhv88-arena-rule header{grid-area:head;display:flex;justify-content:space-between;align-items:center}.lhv88-arena-rule header span{font-size:10px;font-weight:900}.lhv88-arena-rule header small{font-size:8px;color:#7c8794}.lhv88-arena-rule .lhv88-arena-presets{grid-area:presets;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}.lhv88-arena-rule>input{grid-area:input;height:40px!important;border:1px solid #dbe4ee!important;border-radius:10px!important;padding:0 8px!important;text-align:center!important;background:#fff!important}.lhv88-arena-presets button{height:40px!important;border-radius:10px!important}.lhv88-arena-invite-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,.45fr)!important;gap:9px!important}.lhv88-arena-invite-actions button{min-height:48px!important}.lhv88-arena-friends .lhv88-friend-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.lhv88-friend-grid button{min-height:112px!important;border-radius:14px!important}.lhv88-friend-grid button.is-selected{border-color:var(--lh-accent)!important;background:var(--lh-accent-soft)!important;box-shadow:0 0 0 3px rgba(var(--lh-accent-rgb),.08)!important}.lhv91-selected-friend{border:1px solid #cbdced!important;background:#f8fbff!important;border-radius:12px!important}.lhv8-search-results{max-height:220px;overflow:auto}.lhv8-search-results button,.lhv8-search-results [data-arena-result]{border-radius:11px!important}

/* Donation */
.lhv92-donation-card{background:linear-gradient(155deg,#f7fbff,#eef4fb);border:1px solid #dbe7f3!important;border-radius:14px;padding:13px!important}.lhv92-donation-card p{font-size:10px;line-height:1.5;color:#6e7b8c}.lhv92-donation-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:9px 0}.lhv92-donation-presets button{height:34px;border:1px solid #d8e2ed;background:#fff;border-radius:9px;color:#183f6d;font-weight:900;cursor:pointer}.lhv92-donation-custom{width:100%;height:36px;border:0;border-radius:9px;background:#173f70;color:#fff;font-weight:800;cursor:pointer}.lhv92-donation-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:18px}.lhv92-donation-modal[hidden]{display:none}.lhv92-donation-backdrop{position:absolute;inset:0;border:0;background:rgba(5,14,28,.68);backdrop-filter:blur(10px)}.lhv92-donation-dialog{position:relative;width:min(440px,100%);background:var(--lh-card);border:1px solid var(--lh-line);border-radius:22px;padding:25px;box-shadow:0 30px 90px rgba(0,0,0,.3)}.lhv92-modal-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border:1px solid var(--lh-line);border-radius:50%;background:var(--lh-card);cursor:pointer}.lhv92-donation-dialog>small{font-size:8px;letter-spacing:.18em;color:var(--lh-accent);font-weight:900}.lhv92-donation-dialog h2{font-size:22px;margin:6px 0}.lhv92-donation-dialog p{color:var(--lh-muted);font-size:11px;line-height:1.6}.lhv92-donation-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.lhv92-donation-grid button{height:44px;border:1px solid var(--lh-line);border-radius:11px;background:var(--lh92-soft);color:var(--lh-text);font-weight:900;cursor:pointer}.lhv92-donation-grid button.is-on{background:var(--lh-accent);color:#fff;border-color:var(--lh-accent)}.lhv92-donation-dialog label{display:block;font-size:9px;color:var(--lh-muted);font-weight:800}.lhv92-donation-dialog label>div{display:flex;align-items:center;border:1px solid var(--lh-line);border-radius:11px;margin-top:6px;overflow:hidden}.lhv92-donation-dialog label b{padding:0 12px}.lhv92-donation-dialog input{height:44px;flex:1;border:0!important;outline:0;padding:0 8px}.lhv92-donation-dialog .lhv8-primary{width:100%;margin-top:12px;min-height:46px}.lhv92-donate-note{display:block;text-align:center;margin-top:10px;color:var(--lh-muted)}

/* Profile visitors */
.lhv92-visitors{padding:18px!important}.lhv92-visitor-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.lhv92-visitor-strip>a{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;border:1px solid var(--lh-line);border-radius:13px;padding:9px;background:var(--lh92-soft)}.lhv92-visitor-strip>a:hover{border-color:rgba(var(--lh-accent-rgb),.35);background:var(--lh-accent-soft)}.lhv92-visitor-strip img{width:42px;height:42px}.lhv92-visitor-strip div{min-width:0}.lhv92-visitor-strip b,.lhv92-visitor-strip small,.lhv92-visitor-strip em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lhv92-visitor-strip b{font-size:10px}.lhv92-visitor-strip small,.lhv92-visitor-strip em{font-size:8px;color:var(--lh-muted);font-style:normal;margin-top:2px}

/* Learn cards & video */
.lhv91-course-list{display:grid;gap:16px}.lhv8-course{overflow:hidden;border-radius:20px!important;box-shadow:var(--lh92-shadow)!important}.lhv8-course>header{padding:18px!important;background:linear-gradient(180deg,#fff,#f8fafc);border-bottom:1px solid var(--lh-line)}.lhv8-lessons{padding:12px!important}.lhv8-lesson{border:1px solid var(--lh-line)!important;border-radius:14px!important;overflow:hidden;margin-bottom:9px;background:var(--lh-card)}.lhv8-lesson summary{padding:13px!important}.lhv8-lesson-content{padding:0 14px 16px!important}.lhv91-video-wrap{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#0e1726;margin:8px 0 16px;box-shadow:0 12px 30px rgba(10,22,38,.12)}.lhv91-video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.lhv8-lesson-content>p{line-height:1.7}.lhv91-course-admin{border-radius:20px!important;box-shadow:var(--lh92-shadow)!important}

/* Groups as forum */
.lhv91-group-members{border-radius:18px!important}.lhv81-member-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.lhv91-member-card{border:1px solid var(--lh-line);border-radius:13px;padding:8px;background:var(--lh92-soft)}.lhv91-forum-stream .lhv8-group-post{border-radius:17px!important;box-shadow:var(--lh92-shadow)!important}.lhv91-group-composer{border-radius:18px!important;border:1px solid #dce6f0!important}.lhv91-group-tools{border-radius:18px!important}.lhv91-group-search-results{max-height:340px;overflow:auto;padding-right:2px}

@media(max-width:1180px){.lhv92-visitor-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.lhv88-arena-dashboard{grid-template-columns:1fr!important}.lhv88-arena-friends .lhv88-friend-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:850px){.lhv92-arena-topline,.lhv92-arena-rules-row{grid-template-columns:1fr}.lhv88-arena-rule{grid-template-columns:minmax(0,1fr) 84px!important}.lhv88-arena-invite-actions{grid-template-columns:1fr}.lhv92-visitor-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.lhv81-member-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lhv92-palette-menu{position:fixed!important;left:12px!important;right:12px!important;top:76px!important;width:auto!important}}
@media(max-width:620px){.lhv88-arena-friends .lhv88-friend-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lhv88-arena-rule{grid-template-columns:1fr!important;grid-template-areas:"head" "presets" "input"!important}.lhv92-donation-grid{grid-template-columns:repeat(2,1fr)}.lhv92-visitor-strip{grid-template-columns:1fr}.lhv81-member-strip{grid-template-columns:1fr!important}.lhv88-comment-replies{margin-left:6px;padding-left:10px}.lhv92-palette-grid{grid-template-columns:1fr 1fr!important}}


/* 9.2 theme engine — make the palette visibly affect the whole application */
html[data-lh-theme="graphite"]{--lh-accent:#3f4854;--lh-accent2:#697482;--lh-accent-soft:#f0f2f4;--lh-accent-rgb:63,72,84;--lh-red:#3f4854;--lh-red2:#697482}
html[data-lh-theme="emerald"]{--lh-accent:#176b58;--lh-accent2:#27987c;--lh-accent-soft:#edf8f4;--lh-accent-rgb:23,107,88;--lh-red:#176b58;--lh-red2:#27987c}
html[data-lh-theme="violet"]{--lh-accent:#6247a5;--lh-accent2:#8b6bc7;--lh-accent-soft:#f4f0fb;--lh-accent-rgb:98,71,165;--lh-red:#6247a5;--lh-red2:#8b6bc7}
html[data-lh-theme="lawhub"],html[data-lh-theme="navy"]{--lh-accent:#1f4678;--lh-accent2:#2d5f9b;--lh-accent-soft:#edf3fb;--lh-accent-rgb:31,70,120;--lh-red:#1f4678;--lh-red2:#2d5f9b}
html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv8-topbar{background:linear-gradient(90deg,color-mix(in srgb,var(--lh-accent) 82%,#07101f),var(--lh-accent2))!important}
html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv8-primary,
html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv85-primary,
html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv92-donation-custom,
html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv88-reply-form button{background:linear-gradient(135deg,var(--lh-accent),var(--lh-accent2))!important;border-color:var(--lh-accent)!important;color:#fff!important}
html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv8-nav a.is-active{background:var(--lh-accent-soft)!important;color:var(--lh-accent)!important}
html[data-lh-theme]:not([data-lh-theme="dark"]) a:hover,html[data-lh-theme]:not([data-lh-theme="dark"]) .lhv8-link-btn{color:var(--lh-accent)}
html[data-lh-theme="dark"] .lhv8-topbar{background:linear-gradient(90deg,#080d14,#121c2a)!important}
html[data-lh-theme="dark"] .lhv8-main,html[data-lh-theme="dark"] .lhv8-center{background:#0c1119!important}
html[data-lh-theme="dark"] .lhv92-donation-card,html[data-lh-theme="dark"] .lhv8-course>header,html[data-lh-theme="dark"] .lhv91-member-card{background:#131a24!important;color:#eef3f8!important;border-color:#283241!important}
html[data-lh-theme="dark"] .lhv8-comment-bubble{background:#1a2431!important;border-color:#283241!important}
html[data-lh-theme="dark"] .lhv88-comment-replies{border-color:#283241!important}
html[data-lh-theme="dark"] .lhv92-arena-exam-field select,html[data-lh-theme="dark"] .lhv88-arena-rule,html[data-lh-theme="dark"] .lhv88-arena-rule>input{background:#101722!important;color:#eef3f8!important;border-color:#2a3545!important}

/* Followers should look exactly like the other profile metrics */
.lhv91-profile-metrics .lhv90-owner-members,.lhv91-profile-metrics [class*="follow"]{background:transparent!important;color:inherit!important;box-shadow:none!important}

/* Arena online circle — up to 10 compact people without wasted whitespace */
.lhv88-arena-friends .lhv88-friend-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-content:start!important}.lhv88-arena-friends{min-height:0!important}.lhv88-friend-grid button{min-height:104px!important;padding:10px 7px!important}.lhv88-friend-grid button img{width:48px!important;height:48px!important;border-radius:50%;object-fit:cover}

/* Keep question/time controls on one visual row on desktop */
@media(min-width:851px){.lhv92-arena-rules-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}.lhv88-arena-rule{min-height:108px!important}}
