    :root{--ink:#13211d;--muted:#66736f;--paper:#f3f6f2;--card:#fff;--soft:#e9efeb;--line:#dce5df;--accent:#006f5b;--accent2:#e6f5ef;--coral:#ff725e;--gold:#f4b63f;--violet:#7056d8;--shadow:0 18px 55px rgba(24,49,40,.09);--r:24px;color-scheme:light}
    html[data-theme=dark]{--ink:#ecf6f1;--muted:#9cadA6;--paper:#0d1512;--card:#141f1b;--soft:#1b2924;--line:#293b34;--accent:#67d6b9;--accent2:#173a30;--shadow:0 18px 55px rgba(0,0,0,.28);color-scheme:dark}
    *{box-sizing:border-box}html{background:var(--paper);scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 "DM Sans","IBM Plex Sans Arabic",system-ui,sans-serif}body.rtl{font-family:"IBM Plex Sans Arabic","DM Sans",sans-serif}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.hidden{display:none!important}
    .grain{pointer-events:none;position:fixed;inset:0;z-index:1000;opacity:.032;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E")}
    .app{min-height:100vh}.rail{position:fixed;z-index:30;left:0;top:0;bottom:0;width:84px;display:flex;flex-direction:column;align-items:center;padding:22px 14px;border-right:1px solid var(--line);background:color-mix(in srgb,var(--card) 92%,transparent);backdrop-filter:blur(18px)}body.rtl .rail{left:auto;right:0;border-right:0;border-left:1px solid var(--line)}
    .logo{width:50px;height:50px;display:grid;place-items:center;border:0;border-radius:18px;background:var(--accent);color:#fff;font-weight:800;font-size:17px;box-shadow:0 12px 26px color-mix(in srgb,var(--accent) 24%,transparent)}.rail-nav{display:grid;gap:9px;margin-top:34px}.nav-btn,.round-btn{position:relative;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:16px;background:transparent;color:var(--muted)}.nav-btn:hover,.round-btn:hover{background:var(--soft);color:var(--ink)}.nav-btn.active{background:var(--ink);color:var(--card)}html[data-theme=dark] .nav-btn.active{background:var(--accent);color:#092119}.nav-btn svg,.round-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.nav-btn i{position:absolute;right:7px;top:7px;width:7px;height:7px;border:2px solid var(--card);border-radius:50%;background:var(--coral)}.rail-bottom{display:grid;gap:8px;margin-top:auto}.mini-avatar{width:42px;height:42px;display:grid;place-items:center;border:0;border-radius:14px;background:linear-gradient(145deg,var(--violet),#947cf2);color:#fff;font-weight:750}
    .top{position:sticky;z-index:25;top:0;height:82px;margin-left:84px;display:flex;align-items:center;gap:18px;padding:0 clamp(22px,4vw,62px);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--paper) 88%,transparent);backdrop-filter:blur(22px)}body.rtl .top{margin-left:0;margin-right:84px}.wordmark{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.wordmark b{font-size:18px;letter-spacing:-.03em}.wordmark span{color:var(--muted);font-size:12px}.search{max-width:620px;flex:1;margin:auto;display:flex;align-items:center;gap:10px;padding:0 14px;height:44px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.search svg{width:18px;fill:none;stroke:var(--muted);stroke-width:1.8}.search input{min-width:0;flex:1;border:0;outline:0;background:transparent}.search kbd{padding:2px 7px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--muted);font-size:10px}.top-actions{display:flex;gap:7px}.online-dot{width:9px;height:9px;border-radius:50%;background:var(--gold)}.online-dot.live{background:#22b680;box-shadow:0 0 0 5px color-mix(in srgb,#22b680 15%,transparent)}
    .stage{margin-left:84px;padding:34px clamp(22px,4vw,62px) 110px}body.rtl .stage{margin-left:0;margin-right:84px}.view{max-width:1360px;margin:auto}.hero{position:relative;min-height:220px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:20px;margin-bottom:22px}.hero-main{position:relative;overflow:hidden;padding:36px;border-radius:32px;background:var(--ink);color:var(--card)}html[data-theme=dark] .hero-main{background:#dff4eb;color:#10221b}.hero-main:after{content:"";position:absolute;width:300px;height:300px;right:-65px;bottom:-150px;border:55px solid var(--coral);border-radius:50%;opacity:.9}.hero-main:before{content:"";position:absolute;width:115px;height:115px;right:170px;top:-46px;border-radius:34px;background:var(--gold);transform:rotate(18deg)}.kicker{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;opacity:.7}.kicker i{width:22px;height:2px;background:currentColor}.hero h1{position:relative;z-index:2;max-width:650px;margin:0;font-size:clamp(30px,4vw,52px);line-height:1.03;letter-spacing:-.055em}.hero-main p{position:relative;z-index:2;max-width:570px;margin:18px 0 0;opacity:.72}.hero-side{display:grid;grid-template-rows:1fr 1fr;gap:14px}.pulse,.profile-meter{padding:22px;border:1px solid var(--line);border-radius:25px;background:var(--card)}.pulse{display:grid;grid-template-columns:1fr auto;align-items:center}.pulse strong{font-size:32px;line-height:1}.pulse small,.profile-meter small{display:block;color:var(--muted);margin-top:5px}.pulse-orb{width:55px;height:55px;border:10px solid var(--accent2);border-radius:50%;background:var(--accent)}.profile-meter{background:var(--accent2)}.meter-row{display:flex;justify-content:space-between}.bar{height:7px;margin-top:15px;border-radius:99px;background:color-mix(in srgb,var(--accent) 15%,transparent);overflow:hidden}.bar i{display:block;width:72%;height:100%;background:var(--accent)}
    .dashboard{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.main-column,.side-column{display:grid;align-content:start;gap:18px}.section-head{display:flex;align-items:center;justify-content:space-between}.section-head h2{margin:0;font-size:20px;letter-spacing:-.025em}.section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.link-btn{border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:700}
    .composer-bar{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow)}.avatar{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:var(--avatar,var(--violet));color:#fff;font-size:12px;font-weight:750}.composer-bar>button:nth-child(2){height:42px;flex:1;padding:0 14px;border:0;border-radius:13px;background:var(--soft);color:var(--muted);text-align:start}.composer-bar .compose{width:42px;height:42px;border:0;border-radius:13px;background:var(--accent);color:white;font-size:20px}
    .tabs{display:flex;gap:7px;overflow:auto}.tabs button,.chip{padding:8px 13px;border:1px solid var(--line);border-radius:99px;background:var(--card);color:var(--muted);font-size:12px;white-space:nowrap}.tabs button.active,.chip.active{border-color:var(--ink);background:var(--ink);color:var(--card)}html[data-theme=dark] .tabs button.active,html[data-theme=dark] .chip.active{border-color:var(--accent);background:var(--accent);color:#092119}
    .feed{display:grid;gap:14px}.post{position:relative;padding:22px;border:1px solid var(--line);border-radius:25px;background:var(--card);transition:.18s ease}.post:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.post-top{display:flex;align-items:center;gap:11px}.post-person{min-width:0;display:grid}.post-person b{font-size:13px}.post-person small{color:var(--muted);font-size:10px}.post-kind{margin-inline-start:auto;padding:5px 9px;border-radius:8px;background:var(--accent2);color:var(--accent);font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.05em}.post h3{margin:17px 0 8px;font-size:19px;line-height:1.35;letter-spacing:-.025em}.post>p{margin:0;color:var(--muted);font-size:13px}.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.tag-row span{padding:5px 8px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:10px}.post-actions{display:flex;align-items:center;gap:4px;margin:18px -6px -7px;padding-top:12px;border-top:1px solid var(--line)}.action{display:flex;align-items:center;gap:6px;padding:7px 9px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:11px}.action:hover{background:var(--soft);color:var(--ink)}.action.active{color:var(--coral)}.action.save{margin-inline-start:auto}.action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9}.action.active svg{fill:currentColor}
    .side-card{padding:20px;border:1px solid var(--line);border-radius:25px;background:var(--card)}.side-card h3{margin:0 0 15px;font-size:15px}.person,.event{display:flex;align-items:center;gap:10px;padding:10px 0}.person+.person,.event+.event{border-top:1px solid var(--line)}.person>div,.event>div{min-width:0;display:grid}.person b,.event b{font-size:12px}.person small,.event small{color:var(--muted);font-size:10px}.person button{margin-inline-start:auto;width:30px;height:30px;border:0;border-radius:10px;background:var(--accent2);color:var(--accent)}.date{width:43px;height:47px;display:grid;place-items:center;border-radius:13px;background:var(--soft);color:var(--accent);font-size:9px;font-weight:700}.date strong{font-size:16px;line-height:.8}.topic-cloud{display:flex;flex-wrap:wrap;gap:7px}.topic-cloud button{padding:7px 10px;border:0;border-radius:10px;background:var(--soft);color:var(--muted);font-size:10px}
    .page-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.page-title h1{margin:0;font-size:38px;letter-spacing:-.055em}.page-title p{margin:7px 0 0;color:var(--muted)}.primary{height:43px;padding:0 16px;border:0;border-radius:13px;background:var(--accent);color:#fff;font-weight:700}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.module-card{padding:21px;border:1px solid var(--line);border-radius:24px;background:var(--card)}.module-card h3{margin:14px 0 5px}.module-card p{margin:0;color:var(--muted);font-size:12px}.module-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:17px;background:var(--tone,var(--accent2));font-size:17px;font-weight:800}.module-meta{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:var(--muted);font-size:10px}.module-card .primary{width:100%;margin-top:13px;height:37px;font-size:11px}.member-row{display:flex}.member-row i{width:25px;height:25px;margin-inline-start:-6px;border:2px solid var(--card);border-radius:9px;background:var(--violet)}.member-row i:first-child{margin:0}
    .opportunity{display:grid;grid-template-columns:60px minmax(0,1fr) auto;gap:15px;align-items:center;padding:17px;border:1px solid var(--line);border-radius:20px;background:var(--card)}.opp-date,.date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;line-height:1;font-variant-numeric:tabular-nums}.opp-date{width:60px;height:60px;border-radius:18px;background:var(--soft);color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.04em}.opp-date b{display:block;font-size:21px;line-height:1;letter-spacing:-.03em}.opp-date span,.date span{display:block;line-height:1}.opportunity h3{margin:3px 0 4px;font-size:15px}.opportunity p{margin:0;color:var(--muted);font-size:11px}.opportunity .round-btn{background:var(--soft)}.round-btn.active{background:var(--accent);color:#fff;box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 24%,transparent)}.round-btn.active svg,.nav-btn.active svg,.bottom-nav button.active svg{fill:currentColor}.search-result-note{margin:0 0 12px;color:var(--muted);font-size:11px}.search-result-note b{color:var(--ink)}
    .messages{height:calc(100vh - 160px);min-height:600px;display:grid;grid-template-columns:310px 1fr;border:1px solid var(--line);border-radius:28px;overflow:hidden;background:var(--card)}.thread-list{border-inline-end:1px solid var(--line)}.thread-head,.chat-head{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line)}.thread-head h2{font-size:18px}.thread{width:100%;display:flex;align-items:center;gap:10px;padding:14px 16px;border:0;background:transparent;text-align:start}.thread.active{background:var(--accent2)}.thread>div{min-width:0;display:grid}.thread b{font-size:12px}.thread small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}.thread time{margin-inline-start:auto;color:var(--muted);font-size:9px}.chat{display:flex;min-width:0;min-height:0;overflow:hidden;flex-direction:column}.chat-head{flex:0 0 74px;justify-content:flex-start;gap:10px}.chat-head>div{display:grid}.chat-head b{font-size:13px}.chat-head small{color:var(--muted);font-size:10px}.chat-flow{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;gap:10px;padding:25px;overflow-y:auto;overflow-x:hidden}.bubble{max-width:72%;padding:11px 14px;border-radius:15px;background:var(--soft);font-size:12px}.bubble.mine{align-self:flex-end;background:var(--accent);color:#fff}.chat-form{flex:0 0 auto;display:flex;gap:8px;margin:16px;padding:8px;border:1px solid var(--line);border-radius:15px;background:var(--soft)}.chat-form input{min-width:0;flex:1;border:0;outline:0;background:transparent}.chat-form button{width:38px;height:38px;border:0;border-radius:11px;background:var(--accent);color:white}
    .empty{padding:55px 20px;border:1px dashed var(--line);border-radius:24px;background:var(--card);text-align:center}.empty b{display:block;font-size:18px}.empty span{color:var(--muted);font-size:12px}
    .modal-layer{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px}.backdrop{position:absolute;inset:0;border:0;background:rgba(5,14,10,.62);backdrop-filter:blur(6px)}.modal{position:relative;width:min(640px,100%);max-height:90vh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:28px;background:var(--card);box-shadow:0 35px 110px rgba(0,0,0,.32)}.modal.wide{width:min(900px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:18px}.modal-head h2{margin:2px 0;font-size:22px}.modal-head p{margin:0;color:var(--muted);font-size:11px}.close{width:38px;height:38px;border:0;border-radius:12px;background:var(--soft)}.field{display:grid;gap:7px;margin:13px 0;color:var(--muted);font-size:11px;font-weight:700}.field input,.field textarea,.field select{width:100%;padding:12px;border:1px solid var(--line);border-radius:13px;outline:0;background:var(--soft);color:var(--ink);font-weight:400}.field input:focus,.field textarea:focus{border-color:var(--accent)}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.secondary{height:41px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:transparent}.toast{position:fixed;z-index:140;left:50%;bottom:24px;transform:translate(-50%,20px);padding:11px 15px;border:1px solid var(--line);border-radius:13px;background:var(--card);box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.setup-banner{display:flex;align-items:center;gap:12px;padding:13px 16px;margin-bottom:18px;border:1px solid color-mix(in srgb,var(--gold) 45%,var(--line));border-radius:17px;background:color-mix(in srgb,var(--gold) 12%,var(--card));font-size:12px}.setup-banner b{margin-inline-end:auto}.setup-banner button{border:0;background:transparent;color:var(--accent);font-weight:700}.bottom-nav{display:none}
    @media(max-width:1100px){.dashboard{grid-template-columns:1fr}.side-column{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}
    @media(max-width:760px){.rail{display:none}.top{height:68px;margin:0!important;padding:0 13px}.wordmark span,.search kbd,.top-actions .round-btn:nth-child(-n+2){display:none}.stage{margin:0!important;padding:20px 13px 90px}.hero{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.hero-main{padding:27px}.hero-main:before{right:80px}.hero-main:after{opacity:.5}.dashboard{display:block}.main-column{gap:14px}.side-column{display:none}.grid-3{grid-template-columns:1fr}.page-title h1{font-size:30px}.messages{height:calc(100vh - 175px);grid-template-columns:1fr}.thread-list{display:none}.bottom-nav{position:fixed;z-index:50;left:10px;right:10px;bottom:10px;height:62px;display:flex;justify-content:space-around;align-items:center;padding:0 8px;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--card) 94%,transparent);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.bottom-nav button{display:grid;place-items:center;gap:2px;border:0;background:transparent;color:var(--muted);font-size:9px}.bottom-nav button.active{color:var(--accent)}.bottom-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.row{grid-template-columns:1fr}.opportunity{grid-template-columns:55px 1fr}.opportunity>.round-btn{display:none}}
    @media(max-width:480px){.hero-side{grid-template-columns:1fr}.hero h1{font-size:31px}.hero-main p{font-size:12px}.composer-bar .avatar{display:none}.post{padding:17px}.post h3{font-size:17px}.post-actions .action{font-size:0}.post-actions .action b{font-size:10px}.modal{padding:18px;border-radius:22px}.page-title{align-items:start}.page-title .primary{font-size:0;width:42px;padding:0}.page-title .primary:after{content:"+";font-size:20px}}
    .hidden{display:none!important}.admin-only{display:none!important}body.is-admin .admin-only{display:grid!important}.nav-btn.admin-only{display:none!important}body.is-admin .nav-btn.admin-only{display:grid!important}
    .badge-admin{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;background:#fff0d0;color:#8b5a00;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.identity-line{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.branch-tag{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--accent2);color:var(--accent);font-size:9px;font-weight:750}
    .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gallery-card{position:relative;min-height:280px;overflow:hidden;border-radius:24px;background:var(--ink);color:#fff;box-shadow:var(--shadow)}.gallery-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:.5s}.gallery-card:hover img{transform:scale(1.04)}.gallery-card:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(4,22,18,.92))}.gallery-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:17px}.gallery-copy h3{margin:7px 0 4px;font-size:16px}.gallery-copy p{opacity:.8;font-size:11px}.gallery-tools{position:absolute;z-index:3;top:12px;right:12px;display:flex;gap:6px}.gallery-tools button{padding:7px 10px;border:0;border-radius:10px;background:rgba(255,255,255,.9);color:#14211d;font-size:9px;font-weight:800}.upload-preview{width:100%;max-height:320px;object-fit:cover;border-radius:18px;background:var(--soft)}
    .article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}.article-card{display:grid;grid-template-columns:150px 1fr;height:300px;min-height:300px;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:var(--shadow)} .article-cover{height:100%;min-height:0;background:linear-gradient(145deg,var(--accent),var(--violet));background-size:cover;background-position:center}.article-copy{display:flex;flex-direction:column;min-height:0;padding:20px}.article-copy>p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}.article-copy h3{margin:9px 0 8px;font-size:20px;line-height:1.15}.article-copy p{color:var(--muted);font-size:11px;line-height:1.7}.author-link{display:inline-flex;align-items:center;gap:7px;width:max-content;border:0;background:transparent;color:var(--ink);font-size:10px;font-weight:750}.article-meta{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:9px}.article-actions{display:flex;gap:7px;margin-top:auto;padding-top:12px}.reader{max-width:820px;margin:auto}.reader-cover{width:100%;max-height:470px;object-fit:cover;border-radius:30px}.reader h1{margin:24px 0 12px;font-size:clamp(34px,6vw,66px);line-height:.98}.reader-body{margin-top:30px;color:var(--ink);font-family:Georgia,"IBM Plex Sans Arabic","Times New Roman",serif;font-size:17px;line-height:1.95}.reader-body h2,.reader-body h3{font-family:"Manrope","IBM Plex Sans Arabic",sans-serif;line-height:1.2}.reader-body blockquote{margin:22px 0;padding:18px 22px;border-inline-start:4px solid var(--accent);border-radius:0 15px 15px 0;background:var(--soft)}
    .editor-shell{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--card)}.editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:9px;border-bottom:1px solid var(--line);background:var(--soft)}.editor-toolbar button,.editor-toolbar select{min-width:34px;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--ink);font-size:11px;font-weight:750}.rich-editor{min-height:270px;padding:22px;outline:0;font-family:Georgia,"IBM Plex Sans Arabic","Times New Roman",serif;font-size:15px;line-height:1.8}.rich-editor:empty:before{content:attr(data-placeholder);color:var(--muted)}.editor-tabs{display:flex;gap:6px;margin-bottom:10px}.editor-tabs button{padding:8px 12px;border:0;border-radius:10px;background:var(--soft);color:var(--muted);font-size:10px;font-weight:750}.editor-tabs button.active{background:var(--accent);color:#fff}.editor-pane{display:none}.editor-pane.active{display:block}
    .admin-hero{display:grid;grid-template-columns:1.25fr .75fr;gap:15px}.admin-banner{padding:28px;border-radius:28px;background:linear-gradient(135deg,#14211d,#234a40);color:#fff}.admin-banner h1{font-size:38px}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:17px;border:1px solid var(--line);border-radius:18px;background:var(--card)}.stat strong{display:block;font-size:25px}.stat small{color:var(--muted)}.admin-table{width:100%;border-collapse:collapse}.admin-table th,.admin-table td{padding:13px;border-bottom:1px solid var(--line);font-size:11px;text-align:start}.admin-table th{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.danger{background:#fff0ed!important;color:#a43d2f!important}.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:var(--soft);font-size:9px;font-weight:800}.status-pill.live{background:#dcf8ef;color:#08745d}
    .account-menu{display:grid;gap:10px}.account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--line);border-radius:16px}.account-row>div{min-width:0;display:grid;gap:3px}.account-row>div b,.account-row>div small{line-height:1.35}.signout{width:100%;margin-top:14px;background:#fff0ed;color:#a43d2f}
    body:not(.app-ready) .app{display:none}body.app-ready #authRoot{display:none}.auth-root{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 12% 12%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 34%),radial-gradient(circle at 88% 82%,color-mix(in srgb,var(--violet) 12%,transparent),transparent 31%),var(--paper)}.auth-shell{width:min(1040px,100%);display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border:1px solid var(--line);border-radius:34px;background:var(--card);box-shadow:0 35px 120px rgba(15,42,33,.16)}.auth-story{position:relative;min-height:620px;padding:54px;background:linear-gradient(145deg,#0b3027,#006f5b);color:#fff;overflow:hidden}.auth-story:before,.auth-story:after{content:"";position:absolute;border-radius:50%}.auth-story:before{width:290px;height:290px;right:-90px;bottom:-70px;border:54px solid rgba(255,255,255,.1)}.auth-story:after{width:110px;height:110px;right:70px;top:56px;background:var(--gold);transform:rotate(18deg);border-radius:30px}.auth-brand{position:relative;z-index:2;display:flex;align-items:center;gap:13px;font-weight:800}.auth-brand i{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:#fff;color:#075442;font-style:normal}.auth-story-copy{position:relative;z-index:2;margin-top:125px}.auth-story h1{max-width:520px;margin:0;font-size:clamp(38px,5vw,64px);line-height:1;letter-spacing:-.06em}.auth-story p{max-width:470px;margin:22px 0 0;color:rgba(255,255,255,.72);font-size:16px}.auth-points{position:relative;z-index:2;display:grid;gap:12px;margin-top:42px}.auth-points span{display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.84);font-size:13px}.auth-points span:before{content:"✓";width:24px;height:24px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.14);font-weight:800}.auth-panel{display:flex;flex-direction:column;justify-content:center;padding:54px}.auth-tools{display:flex;justify-content:flex-end;gap:8px;margin-bottom:38px}.auth-tools button{height:38px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);white-space:nowrap}.auth-panel h2{margin:0;font-size:31px;letter-spacing:-.04em}.auth-panel>p{margin:9px 0 25px;color:var(--muted)}.auth-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;border-radius:15px;background:var(--soft)}.auth-choice button{height:43px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:700}.auth-choice button.active{background:var(--card);color:var(--ink);box-shadow:0 7px 20px rgba(22,45,37,.08)}.google-btn{width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px;border:1px solid var(--line);border-radius:15px;background:var(--card);font-weight:750}.google-mark{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);color:#fff;font-size:11px}.auth-note{margin-top:18px!important;font-size:11px;text-align:center}.auth-loading{display:grid;place-items:center;gap:15px;color:var(--muted)}.auth-loading i{width:42px;height:42px;border:4px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.onboard-shell{width:min(780px,100%);padding:38px;border:1px solid var(--line);border-radius:30px;background:var(--card);box-shadow:var(--shadow)}.onboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.onboard-step{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--accent2);color:var(--accent);font-size:10px;font-weight:800}.onboard-shell h1{margin:12px 0 4px;font-size:34px;letter-spacing:-.045em}.onboard-shell p{margin:0;color:var(--muted)}.onboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin-top:24px}.onboard-grid .wide{grid-column:1/-1}.form-error{margin-top:12px;padding:10px 12px;border-radius:12px;background:#fff0ed;color:#ad382b;font-size:12px}.button-loading{opacity:.65;pointer-events:none}@keyframes spin{to{transform:rotate(360deg)}}
    @media(max-width:760px){.auth-root{padding:12px}.auth-shell{display:block;border-radius:25px}.auth-story{min-height:245px;padding:28px}.auth-story-copy{margin-top:48px}.auth-story h1{font-size:38px}.auth-story p{font-size:13px}.auth-points{display:none}.auth-panel{padding:28px}.auth-tools{margin-bottom:24px}.onboard-shell{padding:24px}.onboard-grid{grid-template-columns:1fr}.onboard-grid .wide{grid-column:auto}}
    @media(max-width:980px){.gallery-grid{grid-template-columns:repeat(2,1fr)}.article-grid{grid-template-columns:1fr}.admin-hero{grid-template-columns:1fr}}
    @media(max-width:620px){.gallery-grid{grid-template-columns:1fr}.article-card{grid-template-columns:1fr}.article-cover{min-height:170px}.editor-toolbar{overflow:auto;flex-wrap:nowrap}.admin-banner h1{font-size:30px}}
    @media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
    /* v6 functional surfaces */
    .search{position:relative}.search-submit{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--accent);color:#fff}.search-submit svg{stroke:currentColor}.search-suggest{position:absolute;z-index:80;top:52px;inset-inline:0;max-height:420px;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:var(--shadow)}.suggest-item{width:100%;display:flex;align-items:center;gap:10px;padding:11px;border:0;border-radius:12px;background:transparent;text-align:start}.suggest-item:hover,.suggest-item.active{background:var(--soft)}.suggest-item>span{min-width:0;display:grid}.suggest-item b{font-size:12px}.suggest-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}.entity-icon{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:var(--accent2);color:var(--accent);font-size:10px;font-weight:800;text-transform:uppercase}.result-list{display:grid;gap:10px}.result-row{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--card);text-align:start}.result-row>div{min-width:0}.result-row h3{margin:0;font-size:14px}.result-row p{margin:4px 0 0;color:var(--muted);font-size:11px}.result-row mark{padding:0;background:#fff0a8;color:inherit}.count-badge{min-width:19px;height:19px;display:inline-grid;place-items:center;padding:0 5px;border-radius:99px;background:var(--coral);color:#fff;font-size:9px;font-style:normal}.profile-card{cursor:pointer}.profile-actions{display:flex;gap:7px;margin-top:14px}.profile-actions button{flex:1}.profile-hero,.circle-hero{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:26px;border:1px solid var(--line);border-radius:28px;background:var(--card)}.profile-hero h1,.circle-hero h1{margin:0;font-size:32px}.profile-hero p,.circle-hero p{margin:5px 0;color:var(--muted)}.profile-stats{display:flex;gap:15px;margin-top:10px}.profile-stats b{font-size:17px}.profile-stats span{color:var(--muted);font-size:10px}.profile-hero-actions{display:flex;gap:8px}.avatar.xl{width:78px;height:78px;border-radius:25px;font-size:20px}.reply-tree{display:grid;gap:10px}.reply-card{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card)}.reply-card.nested{margin-inline-start:32px;border-inline-start:3px solid var(--accent)}.reply-head{display:flex;align-items:center;gap:9px}.reply-head>div{display:grid}.reply-head small,.reply-time{color:var(--muted);font-size:9px}.reply-body{margin:10px 0;font-size:12px}.reply-actions{display:flex;gap:5px}.reply-actions button{padding:5px 8px;border:0;border-radius:8px;background:var(--soft);color:var(--muted);font-size:9px}.circle-tabs{margin:18px 0}.circle-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}.circle-panel{padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--card)}.chat-message{display:flex;align-items:flex-end;gap:8px}.chat-message.mine{flex-direction:row-reverse}.chat-message .bubble{display:grid;gap:4px}.chat-message .bubble time{opacity:.65;font-size:8px}.chat-message.deleted .bubble{font-style:italic;color:var(--muted)}.thread-list-scroll{height:calc(100% - 128px);overflow:auto}.thread-search{margin:10px;width:calc(100% - 20px);height:38px;padding:0 11px;border:1px solid var(--line);border-radius:11px;background:var(--soft)}.thread .unread{margin-inline-start:auto}.chat-empty{height:100%;display:grid;place-items:center;text-align:center}.notification-row{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--card);text-align:start}.notification-row.unread{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:var(--accent2)}.notification-row p{margin:4px 0;color:var(--muted);font-size:11px}.notification-row time{color:var(--muted);font-size:9px}.role-pill{padding:4px 8px;border-radius:99px;background:var(--soft);color:var(--muted);font-size:9px;font-weight:800}.role-pill.owner,.role-pill.admin{background:#fff0d0;color:#8b5a00}.loading-card{height:110px;border-radius:20px;background:linear-gradient(90deg,var(--soft),var(--card),var(--soft));background-size:220% 100%;animation:shimmer 1.2s infinite}@keyframes shimmer{to{background-position:-220% 0}}.error-state{padding:18px;border:1px solid #efc4bb;border-radius:16px;background:#fff5f2;color:#8f3327}.circle-chat{height:560px;display:flex;flex-direction:column}.circle-chat .chat-flow{min-height:0}.inline-form{display:flex;gap:8px}.inline-form input{min-width:0;flex:1;padding:11px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
    @media(max-width:900px){.circle-layout{grid-template-columns:1fr}.profile-hero,.circle-hero{grid-template-columns:auto 1fr}.profile-hero-actions{grid-column:1/-1}.messages{grid-template-columns:260px 1fr}}
    @media(max-width:760px){.search kbd{display:none}.search-submit{display:none}.profile-hero,.circle-hero{grid-template-columns:1fr;text-align:center}.profile-hero .avatar,.circle-hero .module-icon{margin:auto}.profile-stats,.profile-hero-actions{justify-content:center}.messages.mobile-thread-open .thread-list{display:none}.messages:not(.mobile-thread-open) .chat{display:none}.messages:not(.mobile-thread-open) .thread-list{display:block}.reply-card.nested{margin-inline-start:16px}.result-row{grid-template-columns:auto 1fr}.result-row time{display:none}}
    /* v7 production consistency */
    .module-card,.post,.gallery-card,.article-card,.circle-panel,.result-row{min-width:0}.grid-3{align-items:stretch}.grid-3>.module-card{height:100%;display:flex;flex-direction:column}.grid-3>.module-card>p{flex:1}.module-meta{min-height:36px}.danger{color:#a53a2d!important;border-color:#e8b8af!important;background:#fff7f5!important}.post-menu{margin-inline-start:auto;display:flex;gap:6px}.post-menu button,.content-menu{min-width:34px;height:32px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted)}.circle-toolbar{display:flex;align-items:center;gap:10px;margin:0 0 18px}.circle-toolbar .field{margin:0;max-width:440px;flex:1}.meeting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.meeting-card{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--card)}.meeting-date{width:62px;min-height:66px;display:grid;place-items:center;align-content:center;border-radius:17px;background:var(--accent2);color:var(--accent);text-align:center}.meeting-date b{font-size:22px;line-height:1}.meeting-date span{font-size:9px;font-weight:800;text-transform:uppercase}.meeting-card h3{margin:0 0 5px}.meeting-card p{margin:4px 0;color:var(--muted);font-size:11px}.meeting-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.meeting-room{width:min(1100px,96vw);height:min(760px,88vh);padding:0;overflow:hidden}.meeting-room iframe{width:100%;height:calc(100% - 66px);border:0}.meeting-room .modal-head{height:66px;padding:16px 20px;margin:0}.circle-search-note{margin:0 0 14px;color:var(--muted);font-size:11px}.confirm-copy{padding:6px 0 4px;color:var(--muted)}.admin-content-list{display:grid;gap:9px}.admin-content-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:15px}.admin-content-row p{margin:3px 0;color:var(--muted);font-size:10px}.profile-card:focus-visible,.result-row:focus-visible,.meeting-card button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 30%,transparent);outline-offset:3px}.post img,.gallery-card img,.article-cover{max-width:100%}.chat-form button:disabled,.primary:disabled{opacity:.55;cursor:not-allowed}.empty{min-height:150px}.tabs{overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}
    @media(max-width:760px){.meeting-grid{grid-template-columns:1fr}.circle-toolbar{align-items:stretch;flex-direction:column}.post-actions{overflow-x:auto}.post-actions .action{flex:0 0 auto}.stage{padding-inline:12px}.circle-tabs{margin-inline:-4px;padding-inline:4px}.admin-content-row{grid-template-columns:1fr}.meeting-room{width:100vw;height:100vh;border-radius:0}}
    /* v8 alignment polish from production QA */
    .person-card-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center}.person-card-head h3{margin:0 0 2px}.person-handle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-tags{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0 10px}.person-tags .post-kind{margin-inline-start:0}.person-interests{min-height:38px;line-height:1.6}.profile-card .profile-actions{margin-top:auto;padding-top:16px}.post .post-author{min-width:0;width:auto;padding:0;text-align:start}.post .post-author .post-person{gap:2px}.post .post-author .post-person b{font-size:14px;line-height:1.25}.post .post-author .post-person small{line-height:1.45}.circle-hero{grid-template-columns:auto minmax(0,1fr) auto;padding:22px 26px;gap:20px}.circle-logo{width:66px;height:66px;border-radius:21px;font-size:19px}.circle-hero-copy{min-width:0}.circle-hero-copy>p{max-width:700px}.circle-hero .identity-line{gap:10px}.circle-hero .role-pill{text-transform:capitalize}.circle-hero .profile-stats{align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.circle-hero .profile-stats span{display:inline-flex;align-items:center;min-height:27px;padding:5px 9px;border-radius:999px;background:var(--soft);font-size:10px}.circle-hero .profile-stats b{margin-inline-end:4px;font-size:12px}.circle-hero .profile-hero-actions{justify-self:end;flex-wrap:wrap;justify-content:flex-end}.circle-panel h3{margin-top:0}.circle-layout>.circle-panel{align-self:start}.circle-tabs{padding-bottom:2px}
    @media(max-width:900px){.circle-hero{grid-template-columns:auto minmax(0,1fr)}.circle-hero .profile-hero-actions{grid-column:1/-1;justify-self:start}}
    @media(max-width:760px){.circle-hero{padding:22px 18px;gap:13px;text-align:start}.circle-hero .circle-logo{margin:0}.circle-hero .identity-line,.circle-hero .profile-stats,.circle-hero .profile-hero-actions{justify-content:flex-start}.circle-hero .profile-hero-actions{width:100%}.circle-hero .profile-hero-actions button{flex:1}.post-top{align-items:flex-start}.post-kind{margin-inline-start:auto}}
    /* v9 screenshot-led spacing and alignment repair */
    .top-actions{align-items:center;gap:8px}.top-actions .round-btn,.top-actions .mini-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:14px}.top-actions .round-btn svg{width:20px;height:20px}.top-actions .round-btn{font-size:14px;font-weight:600}
    .people-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:stretch}.people-grid>.profile-card{min-height:0;padding:24px;gap:0}.people-grid .person-tags{margin:16px 0 12px}.people-grid .person-interests{min-height:26px;margin:0;color:var(--muted)}.people-grid .profile-actions{padding-top:28px}.people-grid .profile-actions button{height:46px}
    .suggested-person{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:12px;align-items:center;padding:12px 0}.suggested-person+.suggested-person{border-top:1px solid var(--line)}.suggested-person .suggested-person-profile{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;width:100%;min-width:0;margin:0;padding:0;border:0;background:transparent;text-align:start}.suggested-person .suggested-person-profile .avatar{width:42px;height:42px;border-radius:14px}.suggested-person .suggested-person-copy{min-width:0;display:grid;gap:2px}.suggested-person .suggested-person-copy b,.suggested-person .suggested-person-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggested-person .suggested-person-copy b{font-size:13px}.suggested-person .suggested-person-copy small{color:var(--muted);font-size:10px}.suggested-person .suggested-person-follow{width:36px;height:36px;margin:0;border:0;border-radius:12px;background:var(--accent2);color:var(--accent);font-size:17px;line-height:1}
    .post{padding:24px 28px}.post-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.post-meta-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.post-meta-actions .post-kind{margin:0}.post-menu{margin:0}.post-menu button,.content-menu{width:36px;min-width:36px;height:36px;display:grid;place-items:center;padding:0}.post-actions{gap:6px}.post-actions .action{min-height:36px;padding:8px 10px}.post-actions .action svg{width:16px;height:16px;flex:0 0 16px}
    @media(max-width:760px){.people-grid{grid-template-columns:1fr}.people-grid>.profile-card{padding:20px}.people-grid .profile-actions{padding-top:20px}.post{padding:20px}.post-top{gap:12px}.post-meta-actions{gap:7px}.post-meta-actions .post-kind{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{gap:4px}.top-actions .round-btn,.top-actions .mini-avatar{width:40px;height:40px;flex-basis:40px;border-radius:13px}}
    @media(max-width:480px){.post-top{grid-template-columns:minmax(0,1fr) auto}.post-meta-actions{align-self:start}.post-meta-actions .post-kind{display:none}.post-menu button{width:34px;min-width:34px;height:34px}.suggested-person{grid-template-columns:minmax(0,1fr) 36px}}
    /* v10 final Circle, meetings and people layout repair */
    .people-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
    .people-grid>.student-card{display:grid;grid-template-rows:auto auto minmax(52px,1fr) auto;height:100%;min-height:286px;padding:24px;align-content:stretch}
    .student-card .person-card-head,.student-card .person-tags{align-self:start}.student-card .person-interests{min-height:52px;margin:0;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.7}.student-card .profile-actions{align-self:end;margin:0;padding-top:22px}.student-card .profile-actions button{min-width:0;height:44px}
    .circle-about{max-width:960px;margin-inline:auto;padding:0;overflow:hidden}.circle-about-head{padding:28px 30px 22px;border-bottom:1px solid var(--line)}.circle-about-head h2{margin:0 0 8px;font-size:26px}.circle-about-head p{max-width:720px;margin:0;color:var(--muted);line-height:1.75}.circle-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:22px 30px 28px}.circle-fact{min-width:0;padding:16px;border:1px solid var(--line);border-radius:17px;background:var(--soft)}.circle-fact dt{margin:0 0 5px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.circle-fact dd{margin:0;overflow:hidden;text-overflow:ellipsis;color:var(--ink);font-size:14px;font-weight:700;white-space:nowrap}.circle-management{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:22px 30px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--soft) 50%,var(--card))}.circle-management h3{margin:0 0 4px}.circle-management p{margin:0;color:var(--muted);font-size:11px}.circle-management .danger{min-width:150px}
    .modal.meeting-modal{width:min(1280px,calc(100vw - 32px));height:min(820px,calc(100dvh - 32px));max-height:none;padding:0;overflow:hidden;border-radius:24px}.meeting-room{width:100%;height:100%;display:grid;grid-template-rows:72px minmax(0,1fr);overflow:hidden}.meeting-room .modal-head{height:auto;min-width:0;align-items:center;margin:0;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--card)}.meeting-room .modal-head>div:first-child{min-width:0}.meeting-room .modal-head h2,.meeting-room .modal-head p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meeting-room iframe{display:block;width:100%;height:100%;min-width:0;min-height:0;border:0}.meeting-room-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.meeting-room-actions .secondary{display:inline-flex;align-items:center;text-decoration:none}.meeting-card>div:last-child{min-width:0}.meeting-card h3,.meeting-card p{overflow-wrap:anywhere}
    @media(max-width:1100px){.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(max-width:760px){.people-grid{grid-template-columns:1fr}.people-grid>.student-card{min-height:0}.circle-facts{grid-template-columns:1fr;padding:18px}.circle-about-head{padding:22px 18px}.circle-management{grid-template-columns:1fr;padding:20px 18px}.circle-management .danger{width:100%}.modal-layer:has(.meeting-modal){padding:0}.modal.meeting-modal{width:100vw;height:100dvh;max-width:none;border:0;border-radius:0}.meeting-room{grid-template-rows:68px minmax(0,1fr)}.meeting-room .modal-head{padding:12px}.meeting-room .modal-head p{display:none}.meeting-popout{display:none!important}}
    /* Isolated Discover Students card-height repair */
    .people-grid>.student-card{height:auto;min-height:0;grid-template-rows:auto auto auto auto;align-content:start}
    .people-grid>.student-card>.person-interests{min-height:0;flex:none}
    .people-grid>.student-card>.profile-actions{align-self:auto;margin-top:22px;padding-top:0}

    /* v19 — Arabic typography: negative tracking and tight leading break joined Arabic letters */
    body.rtl .auth-story h1,body.rtl .hero h1,body.rtl .auth-panel h2,body.rtl .onboard-shell h1,body.rtl .section-head h2,body.rtl .wordmark b,body.rtl .reader h1,body.rtl .admin-banner h1,body.rtl .profile-hero h1,body.rtl .circle-hero h1{letter-spacing:0}
    body.rtl .auth-story h1{line-height:1.22}
    body.rtl .hero h1{line-height:1.18}
    body.rtl .auth-panel h2,body.rtl .onboard-shell h1{line-height:1.3}
    /* v19 — chat header delete-chat button */
    .chat-head .chat-delete{margin-inline-start:auto;color:#a43d2f}
    .chat-head .chat-delete:hover{background:#fff0ed;color:#a43d2f}
    .chat-head .chat-delete svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
    /* v19 — report head actions (status select + delete-resolved button) */
    .report-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
    .report-head-actions .report-delete{height:38px;padding:0 12px;font-size:11px;white-space:nowrap}
    @media(max-width:760px){.report-head-actions{grid-column:1/-1;width:100%;justify-content:flex-start;flex-wrap:wrap}.report-head-actions select{flex:1}}
    /* v19 — name + details stacks: identical start edge everywhere on the site */
    @media(max-width:760px){.profile-hero,.circle-hero{text-align:center}.profile-hero>div,.circle-hero>div{justify-items:center}.profile-hero h1,.profile-hero p,.circle-hero h1,.circle-hero p{text-align:center;justify-self:center}}

    .post-person,.post-top>div,.thread>div,.chat-head>div,.chat-head .author-link>span,.person-card-head>div,.person>div,.reply-head>div,.suggest-item>span,.suggested-person-copy,.account-row>div,.result-row>div,.admin-identity-grid>div,.admin-report-head>div,.profile-hero>div,.circle-hero>div,.meeting-card>div,.new-chat-row>div{justify-items:start;justify-content:start;text-align:start}
    .post-person b,.post-person small,.post-top>div b,.post-top>div small,.thread>div b,.thread>div small,.chat-head .author-link b,.chat-head .author-link small,.person-card-head h3,.person-card-head p,.person>div b,.person>div small,.reply-head b,.reply-head small,.suggest-item b,.suggest-item small,.suggested-person-copy b,.suggested-person-copy small,.account-row b,.account-row small,.result-row h3,.result-row p,.admin-identity-grid b,.admin-identity-grid span,.admin-report-head h3,.admin-report-head p,.profile-hero h1,.profile-hero p,.circle-hero h1,.circle-hero p,.meeting-card h3,.meeting-card p{margin-inline:0;padding-inline:0;text-align:start;justify-self:start}

    /* v20: stable icons, aligned identity copy, and compact moderation/chat actions. */
    .theme-control{font-size:0!important}.theme-control>span{width:18px;height:18px;display:block;border:2px solid currentColor;border-radius:50%;position:relative;overflow:hidden}.theme-control>span:after{content:"";position:absolute;inset:-3px -3px -3px 7px;background:currentColor;border-radius:50%}
    .post-person,.thread>div,.chat-head .author-link>span,.person-card-head>div,.person>div,.reply-head>div,.suggest-item>span,.suggested-person-copy,.account-row>div,.result-row>div,.admin-report-head>div:not(.report-head-actions),.profile-hero>div,.circle-hero-copy,.meeting-card>div,.new-chat-row>div{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;align-items:start;gap:2px}
    .post-person>* ,.thread>div>* ,.chat-head .author-link>span>* ,.person-card-head>div>* ,.person>div>* ,.reply-head>div>* ,.suggest-item>span>* ,.suggested-person-copy>* ,.account-row>div>* ,.result-row>div>* ,.admin-report-head>div:not(.report-head-actions)>* ,.profile-hero>div>* ,.circle-hero-copy>* ,.meeting-card>div>* ,.new-chat-row>div>*{width:100%;margin-inline:0;text-align:start}

    /* v23 — search feedback, controls and stable result layout. */
    .search-clear{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border:0;border-radius:9px;background:var(--soft);color:var(--muted);font-size:17px;line-height:1}.search-clear:hover{color:var(--ink);background:color-mix(in srgb,var(--accent) 10%,var(--soft))}.search-page-tools{display:flex;align-items:center;justify-content:space-between;gap:14px}.search-page-tools .tabs{margin:0}.search-page-tools .tabs button b{margin-inline-start:4px;color:var(--muted);font-size:9px}.search-results-list{margin-top:18px}.search-results-list .result-row{min-height:82px;transition:transform .16s,border-color .16s,box-shadow .16s}.search-results-list .result-row:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--accent) 35%,var(--line));box-shadow:0 10px 28px rgba(20,48,40,.06)}.search-results-list .result-row p{max-width:900px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.search-results-list>.empty{border:1px dashed var(--line);border-radius:22px;background:color-mix(in srgb,var(--card) 82%,transparent)}.search-suggest-loading{min-height:68px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:11px}.search-suggest-loading i{width:16px;height:16px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:search-spin .7s linear infinite}.search-suggest-empty{min-height:68px!important;padding:18px!important}.error-state{display:grid;justify-items:start;gap:8px}.error-state span{font-size:11px}.error-state button{margin-top:3px}@keyframes search-spin{to{transform:rotate(360deg)}}
    @media(max-width:760px){.search-page-tools{align-items:stretch;flex-direction:column}.search-page-tools>.secondary{align-self:flex-start}.search-results-list .result-row p{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.search-clear{width:26px;height:26px;flex-basis:26px}}
    .chat-head .chat-delete{display:grid;place-items:center;flex:0 0 40px}
    .report-head-actions{margin-inline-start:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.report-head-actions select,.report-head-actions button{min-height:40px;margin:0}.admin-report-head>.entity-icon{width:50px;min-width:50px;height:50px;display:grid;place-items:center;overflow:hidden;font-size:8px;line-height:1;text-align:center}
    .onboard-head .auth-tools{flex:0 0 auto}.onboard-head .auth-tools button{min-width:max-content;white-space:nowrap}
    body.rtl .auth-story{direction:rtl}body.rtl .auth-story-copy{width:100%;max-width:560px}body.rtl .auth-story h1{max-width:100%;font-size:clamp(36px,4.2vw,56px);line-height:1.24;letter-spacing:0;word-break:normal;overflow-wrap:normal;text-wrap:balance}
    @media(max-width:760px){.admin-report-head{align-items:flex-start}.report-head-actions{width:100%;margin-inline-start:0;justify-content:flex-start}.report-head-actions select{flex:1}.chat-head .chat-delete{flex-basis:38px}.onboard-head{align-items:flex-start}.onboard-head .auth-tools{margin-bottom:0}}

    /* v21 — screenshot-led identity alignment and safe card spacing. */
    .suggested-person .suggested-person-profile{min-height:48px;align-items:center;justify-items:start}
    .suggested-person .suggested-person-copy{width:100%;align-content:center;justify-items:start;gap:4px;line-height:1.2}
    .suggested-person .suggested-person-copy b,.suggested-person .suggested-person-copy small{display:block;width:100%;margin:0;padding:0;text-align:start;justify-self:start}
    .suggested-person .suggested-person-copy:has(b:only-child){align-self:center}
    .article-card .author-link,.reader .author-link{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;gap:12px;width:fit-content;max-width:100%;margin:18px 0 0;padding:0;border:0;background:transparent;text-align:start}
    .article-card .author-link .author-copy,.reader .author-link .author-copy{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;justify-items:start;gap:3px;width:100%}
    .article-card .author-link .author-copy>* ,.reader .author-link .author-copy>*{display:block;width:100%;margin:0;padding:0;text-align:start;justify-self:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .article-card .author-link .author-copy b,.reader .author-link .author-copy b{color:var(--ink);font-size:13px;line-height:1.25}
    .article-card .author-link .author-copy small,.reader .author-link .author-copy small{color:var(--muted);font-size:10px;line-height:1.35}
    .admin-report-head select:disabled{opacity:.6;cursor:wait}
    body.rtl .suggested-person .suggested-person-copy,body.rtl .suggested-person .suggested-person-copy>*,body.rtl .article-card .author-copy,body.rtl .article-card .author-copy>*,body.rtl .reader .author-copy,body.rtl .reader .author-copy>*{text-align:start;justify-items:start;justify-self:start}

    /* v21.1 — restore profile actions without affecting identity-copy alignment. */
    .profile-hero>.profile-hero-actions{min-width:max-content;display:flex;grid-template-columns:none;align-items:center;align-content:center;justify-content:flex-end;justify-items:stretch;gap:8px;width:auto}
    .profile-hero>.profile-hero-actions button{min-width:104px;height:46px;margin:0;white-space:nowrap}
    @media(max-width:900px){.profile-hero>.profile-hero-actions{grid-column:1/-1;width:100%;min-width:0;justify-content:flex-start;flex-wrap:wrap}}
    @media(max-width:560px){.profile-hero>.profile-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-hero>.profile-hero-actions button{width:100%;min-width:0}.profile-hero>.profile-hero-actions button:nth-child(3){grid-column:1/-1}}

.reply-actions [data-comment-like],.article-comment-actions [data-article-comment-like]{display:inline-flex;align-items:center;gap:6px}
.like-heart{display:inline-grid;place-items:center;font-size:16px;line-height:1}
.reply-actions [data-comment-like] b,.article-comment-actions [data-article-comment-like] b{font-size:12px;font-weight:700;min-width:8px}
.creator-heart{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:15px;color:#e5484d;background:#fff0f0;border:1px solid #ffd1d3}
.creator-heart-toggle{display:inline-grid!important;place-items:center;width:34px;height:34px;padding:0!important;border-radius:10px!important;color:#8b9691}
.creator-heart-toggle.active{color:#e5484d!important;background:#fff0f0!important;border-color:#ffd1d3!important}

/* Full-size post image viewer */
.post-image-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:inherit}
.post-image-open .upload-preview{display:block}
body.image-lightbox-open{overflow:hidden}
.image-lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(8,18,15,.92);cursor:zoom-out}
.image-lightbox img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:default}
.image-lightbox-close{position:fixed;top:max(16px,env(safe-area-inset-top));right:16px;z-index:1;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:#14211d;font-size:27px;line-height:1;cursor:pointer}
@media(max-width:720px){.image-lightbox{padding:12px}.image-lightbox-close{right:12px;width:44px;height:44px}}

/* Comment editing + mixed Arabic/English text */
.reply-inline-edit{margin-top:12px}.reply-inline-edit textarea{width:100%;min-height:110px;resize:vertical;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);color:var(--ink);font:inherit;line-height:1.65;unicode-bidi:plaintext;text-align:start}.reply-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.chat-form input,.chat-form textarea,#liveChatInput,#circleChatInput,.message-text,.bubble{unicode-bidi:plaintext;text-align:start}
#liveChatInput,#circleChatInput{direction:inherit}


/* Targeted mobile article-card fix: allow the stacked card to grow instead of clipping its copy/actions. */
@media(max-width:620px){
  .article-card{
    height:auto;
    min-height:0;
    grid-template-columns:1fr;
  }
  .article-cover{
    height:210px;
    min-height:210px;
  }
  .article-copy{
    min-height:0;
  }
}

/* Post reading + bilingual direction polish */
.post h3,.post-body{unicode-bidi:plaintext;text-align:start}
.post-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.post-body.collapsed{
  display:block;
  max-height:8.5em;
  overflow:hidden;
  white-space:pre-wrap;
  position:relative;
}
.post-body.collapsed::after{
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:0;
  height:2.1em;
  pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--card));
}
.post-read-more{display:inline-flex;align-items:center;margin-top:8px;padding:0;border:0;background:transparent;color:var(--accent);font-size:11px;font-weight:800;cursor:pointer}
.post-read-more:hover{text-decoration:underline}

/* v58 — main post discussion redesign
   Flat, readable Facebook/Instagram-style comment threads. */
.reply-tree{
  display:grid;
  gap:0;
}
.reply-thread{
  min-width:0;
  border-bottom:1px solid var(--line);
}
.reply-thread:last-child{
  border-bottom:0;
}
.reply-card,
.reply-card.nested,
.reply-card.is-reply{
  width:100%;
  min-width:0;
  margin:0;
  padding:16px 2px 14px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.reply-card.is-reply{
  padding-block:13px;
}
.reply-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
.reply-head .avatar{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:14px;
}
.reply-card.is-reply .reply-head .avatar{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:12px;
}
.reply-identity,
.reply-head>div{
  min-width:0;
  flex:1;
}
.reply-head .author-link{
  max-width:100%;
  padding:0;
  text-align:start;
}
.reply-head b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.35;
}
.reply-head small{
  display:block;
  max-width:100%;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}
.reply-body{
  margin:8px 0 7px 52px;
  max-width:760px;
  color:var(--ink);
  font-size:12.5px;
  line-height:1.65;
  overflow-wrap:anywhere;
  unicode-bidi:plaintext;
  text-align:start;
}
.rtl .reply-body{
  margin:8px 52px 7px 0;
}
.reply-card.is-reply .reply-body{
  margin-inline-start:46px;
}
.rtl .reply-card.is-reply .reply-body{
  margin-inline-start:0;
  margin-inline-end:46px;
}
.reply-actions{
  margin-inline-start:52px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
}
.rtl .reply-actions{
  margin-inline-start:0;
  margin-inline-end:52px;
}
.reply-card.is-reply .reply-actions{
  margin-inline-start:46px;
}
.rtl .reply-card.is-reply .reply-actions{
  margin-inline-start:0;
  margin-inline-end:46px;
}
.reply-actions .reply-action,
.reply-actions button{
  width:auto;
  min-width:0;
  min-height:30px;
  padding:4px 7px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:9.5px;
  font-weight:700;
  box-shadow:none;
}
.reply-actions .reply-action:hover,
.reply-actions button:hover{
  background:var(--soft);
  color:var(--ink);
}
.reply-actions .reply-action.active{
  color:var(--accent);
}
.reply-actions .danger-text,
.reply-actions [data-delete-reply]{
  color:#a53a2d;
}
.reply-actions .danger-text:hover,
.reply-actions [data-delete-reply]:hover{
  background:color-mix(in srgb,#a53a2d 8%,transparent);
  color:#923126;
}
.reply-children{
  width:calc(100% - 52px);
  margin-inline-start:52px;
  padding:0;
  border:0;
}
.rtl .reply-children{
  margin-inline-start:0;
  margin-inline-end:52px;
}
.reply-thread-toggle{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  width:auto;
  min-width:0;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin:7px 0 11px 52px;
  padding:4px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  line-height:1.2;
  box-shadow:none;
}
.rtl .reply-thread-toggle{
  margin:7px 52px 11px 0;
}
.reply-thread-toggle:hover{
  color:var(--ink);
}
.reply-thread-line{
  width:28px;
  height:1px;
  flex:0 0 28px;
  background:var(--line);
}
.reply-composer{
  position:sticky;
  bottom:0;
  z-index:4;
  margin-top:8px;
  padding-top:10px;
  background:linear-gradient(to bottom,transparent,var(--card) 14px,var(--card));
}
#replyContent{
  min-width:0;
}
.modal.wide:has(#replyContent){
  width:min(860px,96vw);
  max-height:min(88vh,820px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.modal.wide:has(#replyContent) #replyContent{
  min-height:0;
  display:flex;
  flex:1;
  flex-direction:column;
  overflow:hidden;
}
.modal.wide:has(#replyContent) .reply-tree{
  min-height:0;
  flex:1;
  overflow-y:auto;
  padding-inline:4px 10px;
}
.modal.wide:has(#replyContent) .reply-composer{
  flex:0 0 auto;
}
.reply-inline-edit{
  margin:10px 0 2px 52px;
}
.rtl .reply-inline-edit{
  margin:10px 52px 2px 0;
}
.reply-inline-edit textarea{
  width:100%;
  min-height:86px;
  resize:vertical;
}
.reply-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-top:7px;
}

@media(max-width:760px){
  .modal.wide:has(#replyContent){
    width:100vw;
    max-width:none;
    height:min(92dvh,820px);
    max-height:92dvh;
    margin:0;
    border-radius:22px 22px 0 0;
  }
  .modal-layer:has(#replyContent){
    align-items:end;
    padding:0;
  }
  .modal.wide:has(#replyContent) .reply-tree{
    padding-inline:14px;
  }
  .reply-card{
    padding-block:14px 12px;
  }
  .reply-head .avatar{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
  .reply-body{
    margin-inline-start:50px;
    font-size:13px;
  }
  .rtl .reply-body{
    margin-inline-start:0;
    margin-inline-end:50px;
  }
  .reply-actions{
    margin-inline-start:50px;
  }
  .rtl .reply-actions{
    margin-inline-start:0;
    margin-inline-end:50px;
  }
  .reply-children{
    width:calc(100% - 42px);
    margin-inline-start:42px;
  }
  .rtl .reply-children{
    margin-inline-start:0;
    margin-inline-end:42px;
  }
  .reply-thread-toggle{
    margin-inline-start:50px;
  }
  .rtl .reply-thread-toggle{
    margin-inline-start:0;
    margin-inline-end:50px;
  }
}



/* v58.1 — discussion action alignment + restore card motion */
.reply-actions .creator-heart,
.reply-actions .creator-heart-toggle{
  flex:0 0 28px;
  width:28px;
  height:28px;
  min-width:28px;
  min-height:28px;
  margin:0 2px;
  padding:0!important;
  display:inline-grid!important;
  place-items:center;
  border-radius:50%!important;
  line-height:1;
  vertical-align:middle;
}
.reply-actions .creator-heart-toggle{
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:#8b9691;
  font-size:15px;
}
.reply-actions .creator-heart-toggle:hover,
.reply-actions .creator-heart-toggle.active{
  border-color:#ffd1d3!important;
  background:#fff0f0!important;
  color:#e5484d!important;
}

/* Bring back the original lightweight lift/hover feel across card surfaces. */
.post,
.side-card,
.module-card,
.student-card,
.gallery-card,
.article-card,
.opportunity,
.meeting-card,
.circle-panel,
.profile-card,
.admin-report-card{
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
@media (hover:hover) and (pointer:fine){
  .post:hover,
  .side-card:hover,
  .module-card:hover,
  .student-card:hover,
  .gallery-card:hover,
  .article-card:hover,
  .opportunity:hover,
  .meeting-card:hover,
  .circle-panel:hover,
  .profile-card:hover,
  .admin-report-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow);
  }
}
@media(prefers-reduced-motion:reduce){
  .post,
  .side-card,
  .module-card,
  .student-card,
  .gallery-card,
  .article-card,
  .opportunity,
  .meeting-card,
  .circle-panel,
  .profile-card,
  .admin-report-card{
    transition:none!important;
  }
}


/* v59 — unified comments everywhere: posts, Circle posts and article comments */
.reply-actions .native-mention-action,
.article-comment-actions .article-mention-action{
  color:var(--accent);
  font-weight:750;
}

/* Article comments now use the same flat, single-indent discussion language as posts. */
.article-comments{
  width:100%;
  min-width:0;
  margin-top:30px;
}
.article-comments-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.article-comments-head h2{margin:0;font-size:20px}
.article-comments-head p{margin:4px 0 0;color:var(--muted);font-size:11px}
.article-comment-list{display:grid;gap:0;width:100%;min-width:0}
.article-comment-thread{
  width:100%;
  min-width:0;
  border-bottom:1px solid var(--line);
}
.article-comment-thread:last-child{border-bottom:0}
.article-comment,
.article-comment.is-reply{
  width:100%;
  min-width:0;
  margin:0;
  padding:16px 2px 14px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.article-comment.is-reply{padding-block:13px}
.article-comment-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
.article-comment-head .avatar{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:14px;
}
.article-comment.is-reply .article-comment-head .avatar{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:12px;
}
.article-comment-identity{
  min-width:0;
  flex:1;
  display:grid;
  gap:2px;
  align-content:center;
}
.article-comment-identity b{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.35;
}
.article-comment-identity small{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}
.article-comment-body{
  margin:8px 0 7px 52px;
  max-width:760px;
  color:var(--ink);
  font-size:12.5px;
  line-height:1.65;
  overflow-wrap:anywhere;
  unicode-bidi:plaintext;
  text-align:start;
  white-space:pre-wrap;
}
.rtl .article-comment-body{
  margin:8px 52px 7px 0;
}
.article-comment.is-reply .article-comment-body{margin-inline-start:46px}
.rtl .article-comment.is-reply .article-comment-body{
  margin-inline-start:0;
  margin-inline-end:46px;
}
.article-comment-actions{
  margin-inline-start:52px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px;
}
.rtl .article-comment-actions{
  margin-inline-start:0;
  margin-inline-end:52px;
}
.article-comment.is-reply .article-comment-actions{margin-inline-start:46px}
.rtl .article-comment.is-reply .article-comment-actions{
  margin-inline-start:0;
  margin-inline-end:46px;
}
.article-comment-actions button{
  width:auto;
  min-width:0;
  min-height:30px;
  padding:4px 7px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:9.5px;
  font-weight:700;
  box-shadow:none;
}
.article-comment-actions button:hover{
  background:var(--soft);
  color:var(--ink);
}
.article-comment-actions button.active{color:var(--accent)}
.article-comment-actions button.danger{color:#a53a2d}
.article-comment-actions button.danger:hover{
  background:color-mix(in srgb,#a53a2d 8%,transparent);
  color:#923126;
}
.article-comment-actions .creator-heart,
.article-comment-actions .creator-heart-toggle{
  flex:0 0 28px;
  width:28px;
  height:28px;
  min-width:28px;
  min-height:28px;
  margin:0 2px;
  padding:0!important;
  display:inline-grid!important;
  place-items:center;
  border-radius:50%!important;
  line-height:1;
}
.article-comment-actions .creator-heart-toggle{
  border:1px solid var(--line)!important;
  background:transparent!important;
  color:#8b9691;
  font-size:15px;
}
.article-comment-actions .creator-heart-toggle:hover,
.article-comment-actions .creator-heart-toggle.active{
  border-color:#ffd1d3!important;
  background:#fff0f0!important;
  color:#e5484d!important;
}
.article-comment-replies{
  width:calc(100% - 52px);
  margin-inline-start:52px;
  padding:0;
  border:0;
}
.rtl .article-comment-replies{
  margin-inline-start:0;
  margin-inline-end:52px;
}
.article-replies-toggle{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  width:auto;
  min-width:0;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin:7px 0 11px 52px;
  padding:4px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  line-height:1.2;
  box-shadow:none;
}
.rtl .article-replies-toggle{margin:7px 52px 11px 0}
.article-replies-toggle:hover{color:var(--ink)}
.article-replies-toggle>span:first-child{
  width:28px;
  height:1px;
  flex:0 0 28px;
  background:var(--line);
}
.article-comment-edit{margin:10px 0 2px 52px}
.rtl .article-comment-edit{margin:10px 52px 2px 0}
.article-comment-edit textarea{
  width:100%;
  min-height:86px;
  resize:vertical;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--card);
  color:var(--ink);
  font:inherit;
  line-height:1.6;
  unicode-bidi:plaintext;
  text-align:start;
}
.article-comment-composer{
  display:grid;
  gap:9px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.article-comment-composer textarea{
  width:100%;
  min-height:96px;
  max-height:220px;
  resize:vertical;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  color:var(--ink);
  font:inherit;
  line-height:1.6;
  unicode-bidi:plaintext;
  text-align:start;
}
.article-comment-composer footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.article-comment-composer footer small{color:var(--muted);font-size:10px}
.article-comment-replying{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  background:var(--soft);
  color:var(--muted);
  font-size:10px;
}
.article-comment-replying button{
  border:0;
  background:transparent;
  color:var(--accent);
  font-size:10px;
  font-weight:750;
}

/* Mobile web: keep every comment surface full-width, readable and one-indent only. */
@media(max-width:760px){
  .modal.wide:has(#replyContent){
    width:100vw;
    max-width:none;
    height:min(92dvh,820px);
    max-height:92dvh;
    margin:0;
    border-radius:22px 22px 0 0;
  }
  .modal-layer:has(#replyContent){
    align-items:end;
    padding:0;
  }
  .modal.wide:has(#replyContent) .reply-tree{
    padding-inline:14px;
  }
  .reply-children,
  .article-comment-replies{
    width:calc(100% - 42px);
    margin-inline-start:42px;
  }
  .rtl .reply-children,
  .rtl .article-comment-replies{
    margin-inline-start:0;
    margin-inline-end:42px;
  }
  .article-comments{
    width:100%;
    min-width:0;
    margin-top:24px;
  }
  .article-comments-head{align-items:flex-start}
  .article-comment{padding-block:14px 12px}
  .article-comment-head .avatar{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
  .article-comment-body{
    margin-inline-start:50px;
    font-size:13px;
  }
  .rtl .article-comment-body{
    margin-inline-start:0;
    margin-inline-end:50px;
  }
  .article-comment-actions{margin-inline-start:50px}
  .rtl .article-comment-actions{
    margin-inline-start:0;
    margin-inline-end:50px;
  }
  .article-replies-toggle{margin-inline-start:50px}
  .rtl .article-replies-toggle{
    margin-inline-start:0;
    margin-inline-end:50px;
  }
  .article-comment-composer textarea{
    min-height:88px;
    resize:none;
  }
  .article-comment-composer footer{
    align-items:stretch;
    flex-direction:column;
  }
  .article-comment-composer footer .primary{
    align-self:flex-end;
    min-width:120px;
  }
}


/* v64 — one comment visual system everywhere */
:where(.reply-card,.article-comment){
  width:100%;
  min-width:0;
  margin:0;
  padding:14px 2px 12px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
:where(.reply-card,.article-comment):last-child{border-bottom:0}

:where(.reply-head,.article-comment-head){
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
:where(.reply-head,.article-comment-head) .avatar{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:13px;
}
:where(.reply-head>div,.article-comment-identity){
  min-width:0;
  flex:1;
}
:where(.reply-head,.article-comment-head) b{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  line-height:1.3;
}
:where(.reply-head,.article-comment-head) small{
  display:block;
  max-width:100%;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}

:where(.reply-body,.article-comment-body){
  margin:8px 0 7px 50px;
  color:var(--ink);
  font-size:13px;
  line-height:1.62;
  overflow-wrap:anywhere;
  unicode-bidi:plaintext;
  text-align:start;
  white-space:pre-wrap;
}
.rtl :where(.reply-body,.article-comment-body){
  margin:8px 50px 7px 0;
}

/* Replies use one small indent everywhere, never recursive visual tunneling. */
.reply-children,
.article-comment-replies{
  width:calc(100% - 16px)!important;
  margin-inline-start:16px!important;
  padding:0!important;
  border:0!important;
}
.rtl .reply-children,
.rtl .article-comment-replies{
  margin-inline-start:0!important;
  margin-inline-end:16px!important;
}

.reply-card.is-reply .reply-body,
.article-comment.is-reply .article-comment-body{
  margin-inline-start:46px!important;
}
.rtl .reply-card.is-reply .reply-body,
.rtl .article-comment.is-reply .article-comment-body{
  margin-inline-start:0!important;
  margin-inline-end:46px!important;
}

/* Actions use the same sizing, alignment and single-row behavior everywhere. */
.reply-actions,
.article-comment-actions{
  margin-inline-start:50px!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
  min-width:0;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-bottom:2px;
}
.rtl .reply-actions,
.rtl .article-comment-actions{
  margin-inline-start:0!important;
  margin-inline-end:50px!important;
}
.reply-card.is-reply .reply-actions,
.article-comment.is-reply .article-comment-actions{
  margin-inline-start:46px!important;
}
.rtl .reply-card.is-reply .reply-actions,
.rtl .article-comment.is-reply .article-comment-actions{
  margin-inline-start:0!important;
  margin-inline-end:46px!important;
}
.reply-actions::-webkit-scrollbar,
.article-comment-actions::-webkit-scrollbar{display:none}

.reply-actions .reply-action,
.reply-actions button,
.article-comment-actions button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:30px!important;
  min-height:30px!important;
  padding:3px 6px!important;
  border:0;
  border-radius:8px!important;
  background:transparent;
  color:var(--muted);
  box-shadow:none;
  white-space:nowrap!important;
  font-size:9px!important;
  font-weight:700;
}
.reply-actions .reply-action:hover,
.reply-actions button:hover,
.article-comment-actions button:hover{
  background:var(--soft);
  color:var(--ink);
}
.reply-actions .reply-action.active,
.article-comment-actions button.active{color:var(--accent)}

.reply-actions [data-delete-reply],
.article-comment-actions [data-article-delete]{
  color:#a53a2d!important;
}
.reply-actions [data-delete-reply]:hover,
.article-comment-actions [data-article-delete]:hover{
  background:color-mix(in srgb,#a53a2d 8%,transparent)!important;
  color:#923126!important;
}
.reply-actions .native-mention-action,
.article-comment-actions .native-mention-action,
.article-comment-actions .article-mention-action{
  color:var(--accent)!important;
  font-weight:750!important;
}

.reply-actions .creator-heart,
.reply-actions .creator-heart-toggle,
.article-comment-actions .creator-heart,
.article-comment-actions .creator-heart-toggle{
  flex:0 0 28px!important;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  margin:0 2px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:50%!important;
  line-height:1!important;
}

/* View/Hide replies is identical in discussions and article comments. */
.reply-thread-toggle,
.article-replies-toggle{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin:7px 0 11px 50px!important;
  padding:4px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted)!important;
  box-shadow:none!important;
  font-size:10px!important;
  font-weight:750!important;
  line-height:1.2!important;
}
.rtl .reply-thread-toggle,
.rtl .article-replies-toggle{
  margin:7px 50px 11px 0!important;
}
.reply-thread-toggle:hover,
.article-replies-toggle:hover{color:var(--ink)!important}
.reply-thread-line,
.article-replies-toggle>span:first-child{
  width:28px!important;
  height:1px!important;
  flex:0 0 28px!important;
  background:var(--line)!important;
}


/* v71 — post/discussion comments: Arabic text is also visually left-aligned */
.reply-body[dir="auto"]{
  text-align:left!important;
}


/* v73 — compact Admin controls toggles */
.admin-controls-card{
  padding:22px 26px!important;
}
.admin-controls-card>h2{
  margin:0 0 14px;
  font-size:20px;
}
.admin-toggle-list{
  display:grid;
  gap:0;
  border-top:1px solid var(--line);
}
.admin-toggle-row{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.admin-toggle-row>span{
  min-width:0;
  font-size:13px;
  font-weight:750;
  color:var(--ink);
}
.admin-switch{
  flex:0 0 auto;
  width:78px;
  height:36px;
  min-width:78px;
  padding:3px 8px 3px 4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--soft);
  color:var(--muted);
  box-shadow:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.admin-switch i{
  width:26px;
  height:26px;
  flex:0 0 26px;
  border-radius:50%;
  background:var(--card);
  box-shadow:0 1px 3px rgba(0,0,0,.12);
  transition:transform .16s ease;
}
.admin-switch b{
  flex:1;
  font-size:9px;
  font-weight:800;
  text-align:center;
}
.admin-switch.is-on{
  padding:3px 4px 3px 8px;
  flex-direction:row-reverse;
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}
.admin-switch.is-on i{
  background:#fff;
}
.admin-switch:disabled{
  opacity:.55;
  cursor:wait;
}
@media(max-width:760px){
  .admin-controls-card{padding:18px!important}
  .admin-toggle-row{min-height:58px}
  .admin-toggle-row>span{font-size:12px}
}


/* v79 — post comments mirror the final Article comments exactly */
.reply-tree{
  display:grid!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
}
.reply-thread{
  width:100%!important;
  min-width:0!important;
  border-bottom:1px solid var(--line)!important;
}
.reply-thread:last-child{border-bottom:0!important}

.reply-card,
.reply-card.nested,
.reply-card.is-reply{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:14px 2px 12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.reply-head{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  min-width:0!important;
}
.reply-head .avatar,
.reply-card.is-reply .reply-head .avatar{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  border-radius:13px!important;
}
.reply-identity,
.reply-head>div{
  min-width:0!important;
  flex:1!important;
  display:block!important;
}
.reply-head .author-link{
  max-width:100%!important;
  padding:0!important;
  text-align:start!important;
}
.reply-head b{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.3!important;
}
.reply-head small{
  display:block!important;
  max-width:100%!important;
  margin-top:2px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--muted)!important;
  font-size:9px!important;
  line-height:1.35!important;
  font-weight:500!important;
}
.reply-body{
  margin:8px 0 7px 50px!important;
  max-width:none!important;
  color:var(--ink)!important;
  font-family:inherit!important;
  font-size:13px!important;
  line-height:1.62!important;
  overflow-wrap:anywhere!important;
  white-space:pre-wrap!important;
  unicode-bidi:plaintext!important;
  text-align:left!important;
}
body.rtl .reply-body{
  margin:8px 50px 7px 0!important;
  text-align:left!important;
}
.reply-card.is-reply .reply-body{
  margin-inline-start:46px!important;
}
body.rtl .reply-card.is-reply .reply-body{
  margin-inline-start:0!important;
  margin-inline-end:46px!important;
}

.reply-actions{
  margin-inline-start:50px!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:2px!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-bottom:2px!important;
}
body.rtl .reply-actions{
  margin-inline-start:0!important;
  margin-inline-end:50px!important;
}
.reply-card.is-reply .reply-actions{
  margin-inline-start:46px!important;
}
body.rtl .reply-card.is-reply .reply-actions{
  margin-inline-start:0!important;
  margin-inline-end:46px!important;
}
.reply-actions::-webkit-scrollbar{display:none!important}
.reply-actions .reply-action,
.reply-actions button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:30px!important;
  min-height:30px!important;
  padding:3px 6px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--muted)!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  font-size:9px!important;
  font-weight:700!important;
}
.reply-actions .reply-action:hover,
.reply-actions button:hover{
  background:var(--soft)!important;
  color:var(--ink)!important;
}
.reply-actions .reply-action.active{color:var(--accent)!important}
.reply-actions [data-delete-reply],
.reply-actions .danger-text{
  margin-inline-start:0!important;
  color:#a53a2d!important;
}
.reply-actions [data-delete-reply]:hover,
.reply-actions .danger-text:hover{
  background:color-mix(in srgb,#a53a2d 8%,transparent)!important;
  color:#923126!important;
}
.reply-actions .native-mention-action,
.reply-actions [data-comment-mention]{
  color:var(--accent)!important;
  font-weight:750!important;
}
.reply-actions .creator-heart,
.reply-actions .creator-heart-toggle{
  flex:0 0 28px!important;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  margin:0 2px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  border-radius:50%!important;
  line-height:1!important;
}

.reply-children{
  width:calc(100% - 16px)!important;
  margin-inline-start:16px!important;
  padding:0!important;
  border:0!important;
}
body.rtl .reply-children{
  margin-inline-start:0!important;
  margin-inline-end:16px!important;
}
.reply-thread-toggle{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  width:auto!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin:7px 0 11px 50px!important;
  padding:4px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted)!important;
  box-shadow:none!important;
  font-size:10px!important;
  font-weight:750!important;
  line-height:1.2!important;
}
body.rtl .reply-thread-toggle{
  margin:7px 50px 11px 0!important;
}
.reply-thread-toggle:hover{color:var(--ink)!important}
.reply-thread-line,
.reply-thread-toggle>span:first-child{
  width:28px!important;
  height:1px!important;
  flex:0 0 28px!important;
  background:var(--line)!important;
}


/* v82 — compact mobile Settings and WhatsApp-like message actions/replies */
#modalRoot .modal:has([data-setting-plus]){
  width:min(520px,calc(100vw - 22px))!important;
  max-height:min(82dvh,720px)!important;
  padding:20px!important;
  border-radius:24px!important;
}
#modalRoot .modal:has([data-setting-plus]) .modal-head{margin-bottom:10px!important}
#modalRoot .modal:has([data-setting-plus]) .modal-head h2{font-size:24px!important}
#modalRoot .modal:has([data-setting-plus]) .modal-head p{display:none!important}
#modalRoot .modal:has([data-setting-plus]) .account-menu{gap:0!important}
#modalRoot .modal:has([data-setting-plus]) .account-row{
  min-height:52px!important;
  padding:12px 4px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:start!important;
}
#modalRoot .modal:has([data-setting-plus]) .account-row:first-child{
  margin-bottom:6px!important;
  padding:13px 4px!important;
}
#modalRoot .modal:has([data-setting-plus]) .account-row>span,
#modalRoot .modal:has([data-setting-plus]) .settings-row-label{
  font-size:13px!important;
  font-weight:650!important;
  text-align:start!important;
}
#modalRoot .modal:has([data-setting-plus]) .account-row>b,
#modalRoot .modal:has([data-setting-plus]) .settings-row-value{
  width:auto!important;
  font-size:11px!important;
  color:var(--muted)!important;
  text-align:end!important;
  white-space:nowrap!important;
}
#modalRoot .modal:has([data-setting-plus]) .settings-row-end{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:auto!important;
}
#modalRoot .modal:has([data-setting-plus]) .signout{
  min-height:48px!important;
  margin-top:14px!important;
  border-radius:14px!important;
}

#modalRoot .message-actions-modal{
  width:min(390px,calc(100vw - 30px))!important;
  padding:18px!important;
  border-radius:24px!important;
}
#modalRoot .message-actions-modal .modal-head{
  margin-bottom:8px!important;
}
#modalRoot .message-actions-modal .modal-head h2{
  font-size:20px!important;
}
#modalRoot .message-actions-modal .modal-head p{display:none!important}
.mobile-message-action-list,
.native-message-action-list{
  display:grid!important;
  gap:0!important;
}
.mobile-message-action-list .account-row,
.native-message-action-list .account-row{
  width:100%!important;
  min-height:52px!important;
  padding:12px 6px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ink)!important;
}
.mobile-message-action-list .account-row:last-child,
.native-message-action-list .account-row:last-child{border-bottom:0!important}
.mobile-message-action-list .account-row span,
.native-message-action-list .account-row span{font-size:13px!important;font-weight:650!important}
.mobile-message-action-list .account-row b,
.native-message-action-list .account-row b{width:auto!important;color:var(--muted)!important;font-size:16px!important}

.dm-reply-preview{
  flex:0 0 auto;
  margin:0 12px -3px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border-inline-start:3px solid var(--accent);
  border-radius:12px 12px 4px 4px;
  background:var(--soft);
}
.dm-reply-preview>div{min-width:0;display:grid;gap:2px}
.dm-reply-preview b{font-size:10px;color:var(--accent)}
.dm-reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted)}
.dm-reply-preview button{
  width:28px;height:28px;padding:0;border:0;border-radius:50%;
  background:transparent;color:var(--muted);font-size:18px;
}
.message-reply-quote{
  margin:0 0 6px;
  padding:6px 8px;
  display:grid;
  gap:1px;
  border-inline-start:3px solid currentColor;
  border-radius:8px;
  background:color-mix(in srgb,var(--card) 22%,transparent);
  opacity:.9;
}
.message-reply-quote b{font-size:9px;line-height:1.25}
.message-reply-quote span{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:9px;
  opacity:.78;
}
@media(min-width:761px){
  html:not(.neis-native-app) .chat-message .content-menu{display:grid!important;place-items:center}
}
@media(max-width:760px){
  .chat-message .content-menu{display:none!important}
}


/* v83 — destructive action in compact message sheet */
#modalRoot .message-actions-modal .account-row.danger{
  color:#a53a2d!important;
  background:transparent!important;
  border-color:var(--line)!important;
}
#modalRoot .message-actions-modal .account-row.danger span,
#modalRoot .message-actions-modal .account-row.danger b{
  color:#a53a2d!important;
}

/* v96 — Circle chat mirrors the Direct Message chat system */
.dm-like-circle-chat{
  display:flex;
  flex-direction:column;
  min-height:520px;
  padding:0!important;
  overflow:hidden;
}
.dm-like-circle-chat .circle-chat-head{
  min-height:62px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:var(--card);
}
.circle-chat-mark{
  width:38px;height:38px;flex:0 0 38px;border-radius:12px;
  display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:800;
}
.circle-chat-title{display:flex;flex-direction:column;min-width:0}
.circle-chat-title b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.circle-chat-title small{font-size:10px;color:var(--muted)}
.dm-like-circle-chat .chat-flow{flex:1 1 auto;min-height:0;overflow-y:auto}
.dm-like-circle-chat .circle-message-stack{display:flex;flex-direction:column;max-width:78%;min-width:0}
.dm-like-circle-chat .circle-message.mine .circle-message-stack{margin-inline-start:auto;align-items:flex-end}
.dm-like-circle-chat .circle-message-author{padding:0 4px 3px;font-size:9px;color:var(--muted);text-align:start}
.dm-like-circle-chat .circle-message .bubble{max-width:100%!important}
.dm-like-circle-chat .circle-message.grouped .circle-message-author{display:none}

/* v98 — visually center Circle chat initials */
.circle-chat-mark{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:0!important;
  line-height:1!important;
  font-size:13px!important;
  font-weight:800!important;
}
.circle-chat-mark::first-letter{line-height:1!important}

/* v99 — message action rows must behave as real tap targets in WebView */
#modalRoot .message-actions-modal [data-mobile-delete-message],
#modalRoot .message-actions-modal [data-native-delete-message]{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
  cursor:pointer!important;
}


/* v106 — keep search result type letters perfectly centered */
.search-suggest .entity-icon,
.search-results-list .entity-icon,
.result-list .result-row .entity-icon{
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
  line-height:1!important;
  padding:0!important;
}


/* v118 — unified Arabic typography + PWA install card */
:lang(ar),
[lang="ar"],
[dir="rtl"]{
  font-family:"IBM Plex Sans Arabic","DM Sans",system-ui,sans-serif;
}

.pwa-install-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin:0 0 22px;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--card);
}
.pwa-install-card .kicker{margin:0 0 8px}
.pwa-install-card h2{margin:0 0 8px;font-size:24px;line-height:1.15}
.pwa-install-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.pwa-install-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){
  .pwa-install-card{grid-template-columns:1fr;padding:18px;border-radius:20px;gap:14px}
  .pwa-install-card h2{font-size:20px}
  .pwa-install-actions{display:grid;grid-template-columns:1fr}
  .pwa-install-actions button{width:100%}
}

/* v111 — distinct Graduate grade badge */
.graduate-badge{
  background:color-mix(in srgb,var(--violet) 15%,var(--card))!important;
  color:var(--violet)!important;
  border:1px solid color-mix(in srgb,var(--violet) 35%,var(--line))!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--violet) 8%,transparent)!important;
}


/* v112 — user-selectable visual themes (Light/Dark remains independent) */
html[data-style-theme="emerald"]{
  --accent:#087f69;--accent2:#e2f6ef;--paper:#f2f8f5;--soft:#e7f1ed;--line:#d4e5de;--violet:#5869c7;
  --shadow:0 16px 42px rgba(18,78,61,.08);--r:28px;
}
html[data-theme="dark"][data-style-theme="emerald"]{
  --paper:#0b1713;--card:#12221c;--soft:#192d25;--line:#29463b;--accent:#70d5b6;--accent2:#163a30;
}
html[data-style-theme="ocean"]{
  --accent:#256da8;--accent2:#e6f2fb;--paper:#f3f7fb;--soft:#eaf1f7;--line:#d7e1ea;--violet:#5368c9;
  --shadow:0 12px 32px rgba(35,85,125,.08);--r:18px;
}
html[data-theme="dark"][data-style-theme="ocean"]{
  --paper:#0b1219;--card:#111c25;--soft:#182631;--line:#29404f;--accent:#78b8e7;--accent2:#153247;
}
html[data-style-theme="sunset"]{
  --accent:#b65d47;--accent2:#faeee8;--paper:#fbf7f2;--card:#fffdfa;--soft:#f4ece5;--line:#eadbd0;--coral:#d96e57;--violet:#9b6a8f;
  --shadow:0 18px 42px rgba(94,57,38,.08);--r:24px;
}
html[data-theme="dark"][data-style-theme="sunset"]{
  --paper:#19120f;--card:#241a16;--soft:#30231d;--line:#4b352a;--accent:#e39a82;--accent2:#43261e;
}
html[data-style-theme="minimal"]{
  --accent:#202824;--accent2:#edf0ee;--paper:#f7f8f7;--card:#fff;--soft:#f1f3f2;--line:#dde1df;--violet:#4f5d57;
  --shadow:none;--r:12px;
}
html[data-theme="dark"][data-style-theme="minimal"]{
  --paper:#101211;--card:#171a18;--soft:#202421;--line:#303632;--accent:#e7eee9;--accent2:#272c29;
}

/* Theme geometry: each preset changes more than color while preserving layout/function. */
html[data-style-theme="emerald"] :is(.module-card,.profile-card,.side-card,.post-card,.article-card,.hero-main,.hero-side,.modal,.messages,.pwa-install-card){border-radius:28px}
html[data-style-theme="emerald"] :is(.primary,.secondary,.field input,.field textarea,.field select,.search){border-radius:16px}
html[data-style-theme="ocean"] :is(.module-card,.profile-card,.side-card,.post-card,.article-card,.hero-main,.hero-side,.modal,.messages,.pwa-install-card){border-radius:18px}
html[data-style-theme="ocean"] :is(.primary,.secondary,.field input,.field textarea,.field select,.search){border-radius:10px}
html[data-style-theme="sunset"] :is(.module-card,.profile-card,.side-card,.post-card,.article-card,.hero-main,.hero-side,.modal,.messages,.pwa-install-card){border-radius:24px}
html[data-style-theme="sunset"] .kicker{color:var(--accent)}
html[data-style-theme="minimal"] :is(.module-card,.profile-card,.side-card,.post-card,.article-card,.hero-main,.hero-side,.modal,.messages,.pwa-install-card){border-radius:12px;box-shadow:none!important}
html[data-style-theme="minimal"] :is(.primary,.secondary,.field input,.field textarea,.field select,.search,.avatar,.mini-avatar){border-radius:8px!important}
html[data-style-theme="minimal"] .grain{display:none}
html[data-style-theme="minimal"] .top{backdrop-filter:none;background:var(--paper)}

.style-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.style-theme-card{
  display:grid;grid-template-columns:78px minmax(0,1fr) 20px;gap:12px;align-items:center;
  min-height:92px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--card);text-align:start;color:var(--ink)
}
.style-theme-card:hover,.style-theme-card.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent2) 55%,var(--card))}
.style-theme-card>span:nth-child(2){display:grid;gap:3px;min-width:0}
.style-theme-card b{font-size:12px}.style-theme-card small{color:var(--muted);font-size:9px;line-height:1.45}.style-theme-card em{font-style:normal;color:var(--accent);font-weight:900}
.style-theme-preview{height:56px;display:grid;grid-template-columns:15px 1fr;grid-template-rows:14px 1fr;gap:5px;padding:7px;border:1px solid var(--line);border-radius:12px;background:#f6f8f7;overflow:hidden}
.style-theme-preview i{display:block;border-radius:4px;background:#dfe8e4}.style-theme-preview i:first-child{grid-row:1/-1;background:#087f69}.style-theme-preview i:nth-child(2){background:#fff}.style-theme-preview i:nth-child(3){background:#e8eeeb}
.style-theme-preview.theme-classic i:first-child{background:#006f5b}.style-theme-preview.theme-emerald i:first-child{background:#087f69}.style-theme-preview.theme-ocean i:first-child{background:#256da8}.style-theme-preview.theme-sunset{background:#fbf7f2}.style-theme-preview.theme-sunset i:first-child{background:#b65d47}.style-theme-preview.theme-minimal i:first-child{background:#202824}.style-theme-preview.theme-minimal i{border-radius:1px}
@media(max-width:760px){.style-theme-grid{grid-template-columns:1fr}.style-theme-card{grid-template-columns:70px minmax(0,1fr) 18px;min-height:82px}}


/* v113 — coherent scene colors across avatars, controls, light and dark modes */
:root{
  --accent-contrast:#fff;
}
html[data-theme="dark"]{
  --accent-contrast:#092119;
}

/* Every initials/profile avatar follows the selected scene accent. */
.avatar,
.mini-avatar,
.person-card-head .avatar,
.post-top .avatar,
.thread .avatar,
.chat-head .avatar,
.reply-head .avatar,
.article-comment-head .avatar,
.suggested-person .avatar,
.profile-hero>.avatar{
  --avatar:var(--accent)!important;
  background:var(--accent)!important;
  color:var(--accent-contrast)!important;
}
.mini-avatar{
  background:var(--accent)!important;
  box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 22%,transparent)!important;
}

/* Accent-filled controls need scene-aware contrast, especially in dark mode. */
.primary,
.composer-bar .compose,
.tabs button.active,
.chip.active,
.nav-btn.active,
.logo,
.status-pill.live,
.post-kind.active{
  color:var(--accent-contrast)!important;
}
.primary,
.composer-bar .compose{
  background:var(--accent)!important;
}
html[data-theme="dark"] .tabs button.active,
html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .nav-btn.active{
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  color:var(--accent-contrast)!important;
}

/* Classic */
html[data-style-theme="classic"]{
  --accent-contrast:#fff;
}
html[data-theme="dark"][data-style-theme="classic"]{
  --accent-contrast:#092119;
}

/* Emerald */
html[data-style-theme="emerald"]{
  --accent:#087f69;--accent2:#e2f6ef;--paper:#f2f8f5;--card:#fff;--soft:#e7f1ed;--line:#d4e5de;
  --ink:#13211d;--muted:#63756f;--violet:#087f69;--accent-contrast:#fff;
}
html[data-theme="dark"][data-style-theme="emerald"]{
  --paper:#0b1713;--card:#12221c;--soft:#192d25;--line:#29463b;
  --ink:#edf8f4;--muted:#9db3aa;--accent:#70d5b6;--accent2:#163a30;--violet:#70d5b6;--accent-contrast:#092119;
}

/* Ocean */
html[data-style-theme="ocean"]{
  --accent:#256da8;--accent2:#e6f2fb;--paper:#f3f7fb;--card:#fff;--soft:#eaf1f7;--line:#d7e1ea;
  --ink:#14212c;--muted:#637480;--violet:#256da8;--accent-contrast:#fff;
}
html[data-theme="dark"][data-style-theme="ocean"]{
  --paper:#0b1219;--card:#111c25;--soft:#182631;--line:#29404f;
  --ink:#edf6fc;--muted:#9db1bf;--accent:#78b8e7;--accent2:#153247;--violet:#78b8e7;--accent-contrast:#071923;
}

/* Sunset */
html[data-style-theme="sunset"]{
  --accent:#b65d47;--accent2:#faeee8;--paper:#fbf7f2;--card:#fffdfa;--soft:#f4ece5;--line:#eadbd0;
  --ink:#2c1e19;--muted:#7c6b63;--coral:#d96e57;--violet:#b65d47;--accent-contrast:#fff;
}
html[data-theme="dark"][data-style-theme="sunset"]{
  --paper:#19120f;--card:#241a16;--soft:#30231d;--line:#4b352a;
  --ink:#fff4ef;--muted:#c3aaa0;--accent:#e39a82;--accent2:#43261e;--violet:#e39a82;--accent-contrast:#2a1008;
}

/* Minimal */
html[data-style-theme="minimal"]{
  --accent:#202824;--accent2:#edf0ee;--paper:#f7f8f7;--card:#fff;--soft:#f1f3f2;--line:#dde1df;
  --ink:#161b18;--muted:#69716d;--violet:#202824;--accent-contrast:#fff;
}
html[data-theme="dark"][data-style-theme="minimal"]{
  --paper:#101211;--card:#171a18;--soft:#202421;--line:#303632;
  --ink:#f1f4f2;--muted:#a4ada8;--accent:#e7eee9;--accent2:#272c29;--violet:#e7eee9;--accent-contrast:#111512;
}

/* Remove fixed decorative colors that fight the chosen scene. */
html[data-style-theme] .hero-main:after{
  border-color:color-mix(in srgb,var(--accent) 72%,var(--paper))!important;
}
html[data-style-theme] .hero-main:before{
  background:color-mix(in srgb,var(--accent) 32%,var(--accent2))!important;
}
html[data-style-theme] .member-row i{
  background:var(--accent)!important;
}

/* Keep scene preview cards readable in either mode. */
html[data-theme="dark"] .style-theme-card{
  background:var(--card)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] .style-theme-preview{
  border-color:var(--line)!important;
}

/* Dark mode: avoid white-on-near-white accent buttons. */
html[data-theme="dark"] :is(.primary,.composer-bar .compose,.tabs button.active,.chip.active){
  color:var(--accent-contrast)!important;
}


/* v114 — keep Home hero controls above decorative scene artwork */
.hero-main:before,
.hero-main:after{
  pointer-events:none!important;
}
.hero-main>*,
.hero-main button,
.hero-main a{
  position:relative;
  z-index:2;
}
.hero-main button,
.hero-main a{
  pointer-events:auto!important;
  touch-action:manipulation;
}

/* v119 — PWA safe-area + mobile shell theme continuity */
html,body{
  min-height:100%;
  background:var(--paper)!important;
}
@media(max-width:760px){
  body{
    min-height:100dvh;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .stage{
    padding-bottom:calc(90px + env(safe-area-inset-bottom))!important;
  }
  .bottom-nav{
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
  }
}

/* v122 — device-specific notification prompt controls */
.pwa-notification-suppress{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 2px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
  color:var(--ink);
  font-size:12px;
  cursor:pointer;
}
.pwa-notification-suppress input{
  width:17px;
  height:17px;
  accent-color:var(--accent);
  flex:0 0 auto;
}

/* v143 — stay signed in auth preference */
.auth-stay-signed{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 2px;
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
  user-select:none;
}
.auth-stay-signed input{
  width:18px;
  height:18px;
  margin:0;
  accent-color:var(--accent);
  flex:0 0 auto;
}
.auth-stay-signed span{
  line-height:1.35;
}
@media(max-width:760px){
  .auth-stay-signed{
    margin-top:14px;
    font-size:12px;
  }
}


/* v156 — owner post edit controls */
.post-menu .post-owner-menu,
.post-menu .post-report-menu{
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--soft);
  color:var(--ink);
  font-weight:800;
}
.post-menu .post-owner-menu:hover,
.post-menu .post-report-menu:hover{
  background:var(--accent2);
  color:var(--accent);
}
.post-edit-image-wrap{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.post-edit-image-wrap .upload-preview{
  max-height:320px;
  width:100%;
  object-fit:cover;
  border-radius:16px;
}
.post-edit-image-wrap .danger{
  justify-self:start;
}
@media(max-width:760px){
  .post-menu .post-owner-menu,
  .post-menu .post-report-menu{
    width:34px;
    min-width:34px;
    height:34px;
  }
  .post-edit-image-wrap .upload-preview{max-height:240px}
}


/* v158 — prevent comment threads from stretching into artificial vertical gaps */
.reply-tree,
.article-comment-list,
.reply-children,
.article-comment-replies{
  align-content:start;
}
.reply-tree,
.article-comment-list{
  grid-auto-rows:max-content;
}
.modal.wide:has(#replyContent) .reply-tree{
  align-content:start!important;
  grid-auto-rows:max-content!important;
}
.reply-thread,
.article-comment-thread{
  align-self:start;
  min-height:0;
}


/* v159 — optional secure post link button */
.post-link-fields{
  display:grid;
  gap:10px;
  margin-top:4px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--soft) 58%,var(--card));
}
.post-link-fields>p{
  display:grid;
  gap:3px;
  margin:0;
}
.post-link-fields>p b{
  font-size:11px;
  color:var(--ink);
}
.post-link-fields>p small{
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
.post-link-button-wrap{
  margin-top:14px;
}
.post-link-button{
  width:max-content;
  max-width:100%;
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 13px;
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));
  border-radius:12px;
  background:color-mix(in srgb,var(--accent) 8%,var(--card));
  color:var(--accent);
  text-decoration:none;
  font-size:10px;
  font-weight:850;
  line-height:1.2;
}
.post-link-button span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.post-link-button b{
  flex:0 0 auto;
  font-size:13px;
}
.post-link-button:hover{
  border-color:color-mix(in srgb,var(--accent) 38%,var(--line));
  background:color-mix(in srgb,var(--accent) 12%,var(--card));
}
@media(max-width:760px){
  .post-link-fields{padding:12px;border-radius:14px}
  .post-link-button{
    min-height:40px;
    padding:0 12px;
    font-size:10.5px;
  }
}


/* v159.8 — manual refresh control */
.app-refresh-btn>span{
  display:block;
  font-size:18px;
  line-height:1;
  transform-origin:center;
}
.app-refresh-btn.is-refreshing>span{
  animation:neis-refresh-spin .65s linear infinite;
}
@keyframes neis-refresh-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){
  .app-refresh-btn>span{font-size:17px}
}


/* v159.10 — Circle reply jump affordance */
.message-reply-quote[data-circle-reply-jump],
.message-reply-quote[data-dm-reply-jump]{
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,opacity .16s ease;
}
.message-reply-quote[data-circle-reply-jump]:hover,
.message-reply-quote[data-dm-reply-jump]:hover{
  background:color-mix(in srgb,var(--card) 34%,transparent);
  opacity:1;
}
.message-reply-quote[data-circle-reply-jump]:focus-visible,
.message-reply-quote[data-dm-reply-jump]:focus-visible{
  outline:2px solid color-mix(in srgb,var(--accent2) 55%,transparent);
  outline-offset:2px;
}
#circleChatFlow>.chat-message.reply-jump-highlight .bubble,
#chatFlow>.chat-message.reply-jump-highlight .bubble{
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent2) 32%,transparent);
  transition:box-shadow .18s ease;
}


/* v159.12 — keep DM composer fully inside the chat viewport */
@media(min-width:761px){
  .messages{
    height:calc(100dvh - 150px)!important;
    min-height:0!important;
    max-height:calc(100dvh - 150px)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .messages .thread-list,
  .messages .chat{
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  .messages .thread-list{
    display:flex!important;
    flex-direction:column!important;
  }
  .messages .thread-list-scroll{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  .messages .chat-head,
  .messages .thread-head{
    flex:0 0 74px!important;
  }
  .messages .chat-flow{
    flex:1 1 0!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  .messages .dm-reply-preview{
    flex:0 0 auto!important;
  }
  .messages .chat-form{
    position:relative!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
    width:auto!important;
    max-width:none!important;
    min-height:56px!important;
    margin:12px 16px 16px!important;
    z-index:2!important;
  }
}
@media(max-width:760px){
  .messages.mobile-thread-open,
  .messages.mobile-thread-open .chat{
    min-height:0!important;
    overflow:hidden!important;
  }
  .messages.mobile-thread-open .chat-flow{
    flex:1 1 0!important;
    min-height:0!important;
    overflow-y:auto!important;
  }
  .messages.mobile-thread-open .dm-reply-preview,
  .messages.mobile-thread-open #liveChatForm{
    flex:0 0 auto!important;
  }
  .messages.mobile-thread-open #liveChatForm{
    box-sizing:border-box!important;
    max-width:calc(100% - 18px)!important;
    margin:7px 9px calc(8px + env(safe-area-inset-bottom))!important;
  }
}


/* v159.13 — Custom theme: Ocean geometry with a user-selected accent */
html[data-style-theme="custom"]{
  --accent:var(--custom-accent,#256da8);
  --accent2:color-mix(in srgb,var(--custom-accent,#256da8) 12%,#fff);
  --paper:color-mix(in srgb,var(--custom-accent,#256da8) 1.25%,#fff);
  --card:#fff;
  --soft:color-mix(in srgb,var(--custom-accent,#256da8) 8%,#fff);
  --line:color-mix(in srgb,var(--custom-accent,#256da8) 18%,#fff);
  --ink:#14212c;
  --muted:#637480;
  --violet:var(--custom-accent,#256da8);
  --accent-contrast:var(--custom-accent-contrast,#fff);
  --shadow:0 12px 32px color-mix(in srgb,var(--custom-accent,#256da8) 14%,transparent);
  --r:18px;
}
html[data-theme="dark"][data-style-theme="custom"]{
  --paper:#0b1219;
  --card:#111c25;
  --soft:#182631;
  --line:#29404f;
  --accent:color-mix(in srgb,var(--custom-accent,#256da8) 68%,#fff);
  --accent2:color-mix(in srgb,var(--custom-accent,#256da8) 32%,#101922);
  --ink:#edf6fc;
  --muted:#9db1bf;
  --violet:color-mix(in srgb,var(--custom-accent,#256da8) 68%,#fff);
  --accent-contrast:#071923;
  --shadow:0 12px 32px color-mix(in srgb,var(--custom-accent,#256da8) 10%,transparent);
  --r:18px;
}
html[data-style-theme="custom"] :is(.module-card,.profile-card,.side-card,.post-card,.article-card,.hero-main,.hero-side,.modal,.messages,.pwa-install-card){
  border-radius:18px;
}
html[data-style-theme="custom"] :is(.primary,.secondary,.field input,.field textarea,.field select,.search){
  border-radius:10px;
}

.style-theme-preview.theme-custom i:first-child{background:var(--custom-preview,#256da8)}
.style-theme-preview.theme-custom{background:color-mix(in srgb,var(--custom-preview,#256da8) 1.25%,#fff)}
.style-theme-preview.theme-custom i:nth-child(3){background:color-mix(in srgb,var(--custom-preview,#256da8) 10%,#fff)}

.custom-theme-color-panel{display:grid;gap:16px}
.custom-theme-color-picker{
  display:grid;
  grid-template-columns:minmax(0,1fr) 56px auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--soft);
}
.custom-theme-color-picker span{font-size:12px;font-weight:800;color:var(--ink)}
.custom-theme-color-picker input[type="color"]{
  width:56px;
  height:42px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  cursor:pointer;
}
.custom-theme-color-picker b{
  min-width:76px;
  text-align:end;
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.custom-theme-swatches{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:8px;
}
.custom-theme-swatches button{
  aspect-ratio:1;
  min-width:0;
  border:2px solid var(--card);
  border-radius:12px;
  background:var(--swatch);
  box-shadow:0 0 0 1px var(--line);
  cursor:pointer;
}
.custom-theme-swatches button:hover,
.custom-theme-swatches button:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 0 0 2px var(--accent);
  outline:0;
}
.custom-theme-preview-live{
  --preview-accent:#256da8;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--preview-accent) 6%,var(--card));
}
.custom-theme-preview-live>span{
  width:46px;
  height:46px;
  border-radius:14px;
  background:var(--preview-accent);
  box-shadow:0 8px 18px color-mix(in srgb,var(--preview-accent) 24%,transparent);
}
.custom-theme-preview-live div{display:grid;gap:3px}
.custom-theme-preview-live b{font-size:12px}
.custom-theme-preview-live small{font-size:10px;color:var(--muted)}
@media(max-width:760px){
  .custom-theme-color-picker{
    grid-template-columns:minmax(0,1fr) 48px;
  }
  .custom-theme-color-picker input[type="color"]{width:48px;height:40px}
  .custom-theme-color-picker b{grid-column:1/-1;text-align:start}
  .custom-theme-swatches{grid-template-columns:repeat(4,1fr)}
}


/* v159.14 — notification bulk controls */
.pwa-notification-actions{
  align-items:center;
  flex-wrap:wrap;
}
.pwa-notification-actions [data-pwa-toggle-all]{
  margin-inline-end:auto;
}
@media(max-width:760px){
  .pwa-notification-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .pwa-notification-actions button{
    width:100%!important;
    margin:0!important;
  }
  .pwa-notification-actions [data-save-pwa-push]{
    order:3;
  }
}


/* v159.17 — chat emoji picker and message reactions */
.chat-form{
  position:relative;
}
.chat-emoji-toggle{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:var(--soft)!important;
  color:var(--ink)!important;
  font-size:21px!important;
  line-height:1!important;
  box-shadow:none!important;
}
.chat-emoji-toggle:hover,
.chat-emoji-toggle:focus-visible{
  background:var(--accent2)!important;
  outline:0;
}
.chat-emoji-popover{
  position:absolute;
  inset-inline-start:0;
  bottom:calc(100% + 8px);
  width:min(300px,calc(100vw - 36px));
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:5px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow);
  z-index:30;
}
.chat-emoji-popover.hidden{display:none!important}
.chat-emoji-popover button,
.chat-emoji-grid button{
  display:grid;
  place-items:center;
  min-width:0;
  height:34px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  font-size:21px;
  cursor:pointer;
}
.chat-emoji-popover button:hover,
.chat-emoji-popover button:focus-visible,
.chat-emoji-grid button:hover,
.chat-emoji-grid button:focus-visible{
  background:var(--soft);
  outline:0;
}
.chat-emoji-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:7px;
}
.reaction-picker-grid{
  padding:4px 0 2px;
}
.message-reactions{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:5px;
}
.message-reactions:empty{display:none}
.message-reaction-chip{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:26px;
  padding:2px 7px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--card) 78%,transparent)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
  font-size:14px!important;
  line-height:1!important;
}
.message-reaction-chip b{
  font-size:10px;
  font-weight:800;
  color:var(--muted);
}
.message-reaction-chip.mine{
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line))!important;
  background:color-mix(in srgb,var(--accent) 12%,var(--card))!important;
}
.bubble.mine .message-reaction-chip{
  background:color-mix(in srgb,#fff 14%,transparent)!important;
  border-color:color-mix(in srgb,#fff 28%,transparent)!important;
  color:inherit!important;
}
.bubble.mine .message-reaction-chip b{
  color:inherit;
  opacity:.8;
}
@media(max-width:760px){
  .chat-emoji-toggle{
    flex-basis:40px!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    font-size:20px!important;
  }
  .chat-emoji-popover{
    grid-template-columns:repeat(8,1fr);
    width:min(320px,calc(100vw - 22px));
    padding:8px;
    gap:3px;
  }
  .chat-emoji-popover button,
  .chat-emoji-grid button{
    height:34px;
    font-size:20px;
  }
  .chat-emoji-grid{grid-template-columns:repeat(8,1fr);gap:4px}
  .message-reaction-chip{
    min-height:25px;
    padding:2px 6px!important;
  }
}
@media(max-width:380px){
  .chat-emoji-popover,
  .chat-emoji-grid{grid-template-columns:repeat(6,1fr)}
}


/* v159.19 — reaction people + narrower desktop Circle chat */
.message-reaction-people{
  display:grid;
  gap:8px;
}
.message-reaction-person{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  color:var(--ink);
  text-align:start;
}
.message-reaction-person:hover,
.message-reaction-person:focus-visible{
  background:var(--soft);
  outline:0;
}
.message-reaction-person>span{
  min-width:0;
  display:grid;
  gap:2px;
}
.message-reaction-person b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}
.message-reaction-person small{
  color:var(--muted);
  font-size:10px;
}
.message-reaction-person em{
  font-style:normal;
  font-size:20px;
}
@media(min-width:1100px){
  .circle-panel.circle-chat.dm-like-circle-chat{
    width:min(1180px,calc(100% - 32px));
    max-width:1180px;
    margin-inline:auto;
  }
}


/* v159.20 — grouped emoji picker */
.chat-emoji-picker,
.chat-emoji-popover{
  max-height:min(420px,60vh);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.chat-emoji-group{
  display:grid;
  gap:7px;
}
.chat-emoji-group + .chat-emoji-group{
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid var(--line);
}
.chat-emoji-group>b{
  font-size:10px;
  font-weight:800;
  color:var(--muted);
  letter-spacing:.02em;
}
.chat-emoji-group-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:5px;
}
.chat-emoji-group-grid button{
  display:grid;
  place-items:center;
  min-width:0;
  height:34px;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  font-size:21px;
  cursor:pointer;
}
.chat-emoji-group-grid button:hover,
.chat-emoji-group-grid button:focus-visible{
  background:var(--soft);
  outline:0;
}
.reaction-picker-grid{
  padding:2px 0;
}
@media(max-width:760px){
  .chat-emoji-group-grid{grid-template-columns:repeat(7,1fr);gap:4px}
  .chat-emoji-picker,
  .chat-emoji-popover{max-height:min(360px,56vh)}
}
@media(max-width:380px){
  .chat-emoji-group-grid{grid-template-columns:repeat(6,1fr)}
}


/* v159.22 — share articles to connections */
.article-connection-share-overlay{
  position:fixed;
  inset:0;
  z-index:260;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(9,18,25,.5);
  backdrop-filter:blur(7px);
}
.article-connection-share-sheet{
  width:min(560px,100%);
  max-height:min(78dvh,720px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card);
  box-shadow:0 28px 80px rgba(0,0,0,.22);
}
.article-connection-share-sheet>header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px 18px 12px;
}
.article-connection-share-sheet>header h2{margin:0;font-size:20px}
.article-connection-share-sheet>header p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  max-width:420px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.article-share-search{padding:0 18px 12px}
.article-share-search input{
  width:100%;
  min-height:44px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--soft);
  color:var(--ink);
  padding:0 13px;
}
.article-share-people{
  flex:1 1 auto;
  min-height:120px;
  overflow:auto;
  padding:0 12px 12px;
}
.article-share-person{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  color:var(--ink);
  text-align:start;
}
.article-share-person:hover,
.article-share-person:focus-visible{background:var(--soft);outline:0}
.article-share-person.selected{
  border-color:color-mix(in srgb,var(--accent) 35%,var(--line));
  background:color-mix(in srgb,var(--accent) 9%,var(--card));
}
.article-share-avatar{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:var(--accent);
  color:var(--accent-contrast,#fff);
  font-size:11px;
  font-weight:800;
}
.article-share-person>span:nth-child(2){
  min-width:0;
  display:grid;
  gap:2px;
}
.article-share-person b,
.article-share-person small{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.article-share-person b{font-size:12px}
.article-share-person small{font-size:10px;color:var(--muted)}
.article-share-person i{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  color:var(--accent-contrast,#fff);
  font-style:normal;
  font-size:11px;
}
.article-share-person:not(.selected) i{
  background:transparent;
  border:1px solid var(--line);
}
.article-connection-share-sheet>footer{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:12px 18px 18px;
  border-top:1px solid var(--line);
}
.article-connection-share-sheet>footer .primary b{margin-inline-start:4px}

.shared-article-message{
  width:min(360px,100%);
  display:grid;
  gap:5px;
  margin-top:8px;
  padding:12px;
  border:1px solid color-mix(in srgb,var(--accent) 18%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--card) 90%,transparent);
  color:var(--ink);
  text-align:start;
  box-shadow:none;
}
.shared-article-message:hover,
.shared-article-message:focus-visible{
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line));
  background:var(--card);
  outline:0;
}
.shared-article-kicker{
  color:var(--accent);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.shared-article-message>b{
  font-size:12px;
  line-height:1.35;
}
.shared-article-message>small{
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.shared-article-message>em{
  color:var(--muted);
  font-size:9px;
  font-style:normal;
}
.bubble.mine .shared-article-message{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.28);
  color:inherit;
}
.bubble.mine .shared-article-message :is(.shared-article-kicker,small,em){
  color:inherit;
  opacity:.88;
}
@media(max-width:760px){
  .article-connection-share-overlay{
    place-items:end center;
    padding:0;
  }
  .article-connection-share-sheet{
    width:100%;
    max-height:82dvh;
    border-radius:22px 22px 0 0;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .article-connection-share-sheet>footer{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .article-connection-share-sheet>footer button{width:100%}
  .shared-article-message{width:100%}
}


/* v159.24 — constrain standalone post feeds like Home */
@media(min-width:900px){
  .feed.standalone-post-feed{
    width:min(860px,100%);
    margin-inline:auto;
  }
  .standalone-post-feed + *{
    min-width:0;
  }
}


/* v159.25 — Circle members beside posts */
.circle-posts-dashboard{
  width:min(1200px,100%);
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(0,860px) minmax(260px,320px);
  gap:18px;
  align-items:start;
}
.circle-posts-dashboard .standalone-post-feed{
  width:100%;
  margin:0;
}
.circle-members-side-card{
  position:sticky;
  top:92px;
}
.circle-members-side-card h3{
  margin-bottom:10px;
}
.circle-members-side-list{
  display:grid;
}
.circle-member-side-item .suggested-person-follow.active{
  background:color-mix(in srgb,var(--accent) 14%,var(--card));
  color:var(--accent);
}
@media(max-width:980px){
  .circle-posts-dashboard{
    grid-template-columns:1fr;
  }
  .circle-members-side-card{
    position:static;
    order:2;
  }
}


/* v159.28 — Circle Home matches Main Home dashboard width */
.circle-home-dashboard{
  width:100%;
  margin:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:22px;
  align-items:start;
}
.circle-home-main{
  min-width:0;
}
.circle-home-feed{
  width:100%;
  min-width:0;
}
.circle-home-dashboard .circle-members-side-card{
  position:sticky;
  top:92px;
}
@media(max-width:1100px){
  .circle-home-dashboard{
    grid-template-columns:1fr;
  }
  .circle-home-dashboard .circle-members-side-card{
    position:static;
    order:2;
  }
}


/* v159.29 — emoji pickers in comments */
.article-comment-input-wrap{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:end;
}
.article-comment-input-wrap textarea{
  grid-column:2;
  width:100%;
}
.comment-emoji-toggle{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--soft);
  color:var(--ink);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.comment-emoji-toggle:hover,
.comment-emoji-toggle:focus-visible{
  background:var(--accent2);
  outline:0;
}
.article-comment-emoji-popover{
  inset-inline-start:0;
  bottom:calc(100% + 8px);
  max-height:min(360px,55dvh);
  overflow:auto;
}
@media(max-width:760px){
  .article-comment-input-wrap{
    grid-template-columns:40px minmax(0,1fr);
    gap:7px;
  }
  .comment-emoji-toggle{
    width:40px;
    height:40px;
    font-size:19px;
  }
}


/* v159.30 — multiline chat/comment composers */
.chat-form{
  align-items:flex-end;
}
.chat-form textarea,
#liveChatInput,
#circleChatInput,
#replyInput{
  min-width:0;
  flex:1 1 auto;
  width:auto;
  min-height:38px;
  max-height:120px;
  margin:0;
  padding:9px 2px;
  border:0;
  outline:0;
  resize:none;
  overflow-y:auto;
  background:transparent;
  color:var(--ink);
  font:inherit;
  line-height:1.45;
  box-sizing:border-box;
}
.message-text,
.reply-body{
  white-space:pre-wrap;
}


/* v159.32 — article comments composer + emoji picker polish */
#articleComments .article-comment-composer{
  gap:10px;
}
#articleComments .article-comment-input-wrap{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  align-items:end;
  width:100%;
  min-width:0;
}
#articleComments .article-comment-input-wrap .comment-emoji-toggle{
  width:42px;
  min-width:42px;
  height:42px;
  margin:0;
  align-self:end;
}
#articleComments #articleCommentInput{
  grid-column:2;
  width:100%;
  min-width:0;
  min-height:72px;
  max-height:160px;
  margin:0;
  padding:12px 13px;
  resize:none;
  overflow-y:auto;
  box-sizing:border-box;
}
#articleComments .article-comment-emoji-popover{
  position:absolute;
  inset-inline-start:0;
  bottom:calc(100% + 8px);
  width:min(320px,calc(100vw - 40px));
  max-width:320px;
  max-height:min(360px,55dvh);
  display:block;
  padding:10px;
  overflow-x:hidden;
  overflow-y:auto;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow);
  z-index:80;
}
#articleComments .article-comment-emoji-popover.hidden{
  display:none!important;
}
#articleComments .article-comment-emoji-popover .chat-emoji-group{
  display:block;
  min-width:0;
}
#articleComments .article-comment-emoji-popover .chat-emoji-group + .chat-emoji-group{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid var(--line);
}
#articleComments .article-comment-emoji-popover .chat-emoji-group>b{
  display:block;
  margin-bottom:6px;
}
#articleComments .article-comment-emoji-popover .chat-emoji-group-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
  width:100%;
  min-width:0;
}
#articleComments .article-comment-emoji-popover .chat-emoji-group-grid button{
  width:100%;
  min-width:0;
  height:36px;
  margin:0;
  padding:0;
}
#articleComments .article-comment-composer footer{
  align-items:center;
}
@media(max-width:760px){
  #articleComments .article-comment-composer{
    gap:9px;
  }
  #articleComments .article-comment-input-wrap{
    grid-template-columns:40px minmax(0,1fr);
    gap:8px;
    align-items:end;
  }
  #articleComments .article-comment-input-wrap .comment-emoji-toggle{
    width:40px;
    min-width:40px;
    height:40px;
    align-self:end;
  }
  #articleComments #articleCommentInput{
    min-height:76px;
    max-height:150px;
    padding:11px 12px;
    font-size:16px;
    line-height:1.45;
  }
  #articleComments .article-comment-emoji-popover{
    inset-inline-start:0;
    width:min(300px,calc(100vw - 56px));
    max-width:none;
    max-height:min(330px,50dvh);
    padding:9px;
  }
  #articleComments .article-comment-emoji-popover .chat-emoji-group-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:3px;
  }
  #articleComments .article-comment-emoji-popover .chat-emoji-group-grid button{
    height:35px;
    font-size:20px;
  }
  #articleComments .article-comment-composer footer{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
  }
  #articleComments .article-comment-composer footer small{
    line-height:1.45;
  }
  #articleComments .article-comment-composer footer .primary{
    width:100%;
    min-height:46px;
    align-self:stretch;
  }
}
@media(max-width:380px){
  #articleComments .article-comment-emoji-popover{
    width:min(272px,calc(100vw - 44px));
  }
  #articleComments .article-comment-emoji-popover .chat-emoji-group-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}


/* v159.33 — Facebook-style multi-image post galleries */
.post-upload-preview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:8px;
}
.post-upload-preview-grid.hidden{display:none!important}
.post-upload-preview-item{
  position:relative;
  min-width:0;
  aspect-ratio:1/1;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--soft);
}
.post-upload-preview-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.post-upload-preview-item span{
  position:absolute;
  right:6px;
  bottom:6px;
  min-width:22px;
  height:22px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:10px;
  font-weight:800;
}
.post-image-gallery{
  display:grid;
  gap:3px;
  width:100%;
  min-width:0;
  margin-top:15px;
  overflow:hidden;
  border-radius:16px;
  background:var(--soft);
}
.post-image-gallery .post-image-tile{
  position:relative;
  min-width:0;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:var(--soft);
  cursor:pointer;
}
.post-image-gallery .post-image-tile img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .18s ease;
}
.post-image-gallery .post-image-tile:hover img{transform:scale(1.015)}
.post-image-gallery.count-1{
  grid-template-columns:1fr;
  max-height:560px;
}
.post-image-gallery.count-1 .post-image-tile{
  min-height:260px;
  max-height:560px;
}
.post-image-gallery.count-1 img{object-fit:contain;background:var(--soft)}
.post-image-gallery.count-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
  height:min(430px,52vw);
}
.post-image-gallery.count-3{
  grid-template-columns:1.35fr 1fr;
  grid-template-rows:repeat(2,minmax(0,1fr));
  height:min(460px,55vw);
}
.post-image-gallery.count-3 .tile-1{grid-row:1/3}
.post-image-gallery.count-4{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  height:min(470px,56vw);
}
.post-image-gallery.count-5{
  grid-template-columns:repeat(6,minmax(0,1fr));
  grid-template-rows:1.25fr 1fr;
  height:min(500px,60vw);
}
.post-image-gallery.count-5 .tile-1{grid-column:1/4}
.post-image-gallery.count-5 .tile-2{grid-column:4/7}
.post-image-gallery.count-5 .tile-3{grid-column:1/3}
.post-image-gallery.count-5 .tile-4{grid-column:3/5}
.post-image-gallery.count-5 .tile-5{grid-column:5/7}
.post-image-more{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:32px;
  font-weight:800;
}
@media(max-width:760px){
  .post-upload-preview-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
  }
  .post-image-gallery{
    border-radius:13px;
  }
  .post-image-gallery.count-1{
    max-height:460px;
  }
  .post-image-gallery.count-1 .post-image-tile{
    min-height:220px;
    max-height:460px;
  }
  .post-image-gallery.count-2{height:min(330px,58vw)}
  .post-image-gallery.count-3{height:min(360px,66vw)}
  .post-image-gallery.count-4{height:min(380px,72vw)}
  .post-image-gallery.count-5{height:min(400px,78vw)}
  .post-image-more{font-size:27px}
}


/* v159.34 — navigable multi-image post lightbox */
.post-gallery-lightbox{
  cursor:default;
  touch-action:pan-y;
  user-select:none;
}
.post-gallery-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(88vw,1400px);
  height:min(88dvh,1000px);
  min-width:0;
  min-height:0;
}
.post-gallery-stage>img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:6px;
  box-shadow:0 18px 60px rgba(0,0,0,.18);
}
.post-gallery-counter{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  min-width:62px;
  padding:7px 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(10,18,16,.7);
  color:#fff;
  text-align:center;
  font-size:12px;
  font-weight:800;
  line-height:1;
  backdrop-filter:blur(10px);
  pointer-events:none;
}
.post-gallery-nav{
  position:fixed;
  top:50%;
  z-index:2;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  padding:0 0 4px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#13211d;
  box-shadow:0 8px 28px rgba(0,0,0,.22);
  font-size:38px;
  font-weight:400;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  transition:transform .16s ease,background .16s ease,opacity .16s ease;
}
.post-gallery-nav:hover:not(:disabled),
.post-gallery-nav:focus-visible:not(:disabled){
  background:#fff;
  transform:translateY(-50%) scale(1.06);
  outline:2px solid rgba(255,255,255,.38);
  outline-offset:3px;
}
.post-gallery-nav.prev{left:max(18px,env(safe-area-inset-left))}
.post-gallery-nav.next{right:max(18px,env(safe-area-inset-right))}
.post-gallery-nav:disabled{
  opacity:.22;
  cursor:default;
}
.post-gallery-lightbox .image-lightbox-close{
  cursor:pointer;
}
@media(max-width:720px){
  .post-gallery-lightbox{
    padding:8px;
  }
  .post-gallery-stage{
    width:100vw;
    height:calc(100dvh - 24px);
  }
  .post-gallery-stage>img{
    max-width:100vw;
    max-height:calc(100dvh - 36px);
    border-radius:0;
    box-shadow:none;
  }
  .post-gallery-nav{
    width:46px;
    height:46px;
    font-size:34px;
    background:rgba(255,255,255,.88);
    box-shadow:0 6px 22px rgba(0,0,0,.2);
  }
  .post-gallery-nav.prev{left:max(8px,env(safe-area-inset-left))}
  .post-gallery-nav.next{right:max(8px,env(safe-area-inset-right))}
  .post-gallery-counter{
    bottom:max(18px,env(safe-area-inset-bottom));
    padding:7px 11px;
    font-size:11px;
  }
  .post-gallery-lightbox .image-lightbox-close{
    top:max(10px,env(safe-area-inset-top));
    right:max(10px,env(safe-area-inset-right));
  }
}
@media(max-width:420px){
  .post-gallery-nav{
    width:42px;
    height:42px;
    font-size:31px;
  }
}


/* v159.35 — post image Fit/Fill controls + per-image crop affordance */
.post-image-display-setting{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.post-image-display-setting>span{
  font-size:11px;
  font-weight:800;
  color:var(--muted);
}
.post-image-display-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.post-image-display-options label{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:8px;
  row-gap:2px;
  align-items:start;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--card);
  cursor:pointer;
}
.post-image-display-options input{
  grid-row:1/3;
  margin-top:3px;
}
.post-image-display-options b{
  font-size:12px;
  line-height:1.2;
}
.post-image-display-options small{
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.post-image-edit-hint{
  margin:8px 0 0;
  color:var(--muted);
  font-size:10px;
}
.post-upload-preview-item.post-upload-editable{
  appearance:none;
  width:100%;
  padding:0;
  border:1px solid var(--line);
  color:inherit;
  text-align:inherit;
  cursor:pointer;
}
.post-upload-preview-item.post-upload-editable em{
  position:absolute;
  left:6px;
  bottom:6px;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:9px;
  font-style:normal;
  font-weight:800;
  line-height:1;
}
.post-image-gallery.display-fit .post-image-tile{
  background:var(--soft);
}
.post-image-gallery.display-fit .post-image-tile img{
  object-fit:contain!important;
  background:var(--soft);
}
.post-image-gallery.display-fill .post-image-tile img{
  object-fit:cover!important;
}
@media(max-width:760px){
  .post-image-display-options{
    grid-template-columns:1fr;
  }
  .post-upload-preview-item.post-upload-editable em{
    left:5px;
    bottom:5px;
  }
}


/* v159.37 — compact persistent emoji pickers */
#articleComments .article-comment-emoji-popover{
  width:min(300px,calc(100vw - 48px))!important;
  max-width:300px!important;
  max-height:min(320px,48dvh)!important;
  padding:9px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
#articleComments .article-comment-emoji-popover .chat-emoji-group-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:4px!important;
}
#articleComments .article-comment-emoji-popover .chat-emoji-group-grid button{
  height:34px!important;
  font-size:20px!important;
}
.reply-composer .chat-emoji-popover{
  width:min(300px,calc(100vw - 40px))!important;
  max-width:300px!important;
  max-height:min(320px,50dvh)!important;
  overflow-x:hidden!important;
}
.chat-form .chat-emoji-popover{
  overscroll-behavior:contain;
}
@media(max-width:760px){
  #articleComments .article-comment-emoji-popover,
  .reply-composer .chat-emoji-popover{
    width:min(286px,calc(100vw - 32px))!important;
    max-width:none!important;
    max-height:min(300px,46dvh)!important;
  }
  #articleComments .article-comment-emoji-popover .chat-emoji-group-grid,
  .reply-composer .chat-emoji-group-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
}
@media(max-width:380px){
  #articleComments .article-comment-emoji-popover,
  .reply-composer .chat-emoji-popover{
    width:min(258px,calc(100vw - 24px))!important;
  }
  #articleComments .article-comment-emoji-popover .chat-emoji-group-grid,
  .reply-composer .chat-emoji-group-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}


/* v159.38 — mobile post gallery uses swipe, not arrow buttons */
@media(max-width:720px){
  .post-gallery-lightbox .post-gallery-nav{
    display:none!important;
  }
}


/* v159.39 — unify DM/Circle/comment emoji pickers with article picker */
.chat-form .chat-emoji-popover,
.reply-composer .chat-emoji-popover{
  position:absolute;
  inset-inline-start:0;
  bottom:calc(100% + 8px);
  width:min(300px,calc(100vw - 40px))!important;
  max-width:300px!important;
  max-height:min(320px,48dvh)!important;
  display:block!important;
  padding:9px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card);
  box-shadow:var(--shadow);
  z-index:90;
  overscroll-behavior:contain;
}
.chat-form .chat-emoji-popover.hidden,
.reply-composer .chat-emoji-popover.hidden{
  display:none!important;
}
.chat-form .chat-emoji-popover .chat-emoji-group,
.reply-composer .chat-emoji-popover .chat-emoji-group{
  display:block!important;
  min-width:0;
}
.chat-form .chat-emoji-popover .chat-emoji-group + .chat-emoji-group,
.reply-composer .chat-emoji-popover .chat-emoji-group + .chat-emoji-group{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid var(--line);
}
.chat-form .chat-emoji-popover .chat-emoji-group>b,
.reply-composer .chat-emoji-popover .chat-emoji-group>b{
  display:block;
  margin:0 0 6px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}
.chat-form .chat-emoji-popover .chat-emoji-group-grid,
.reply-composer .chat-emoji-popover .chat-emoji-group-grid{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:4px!important;
  width:100%;
  min-width:0;
}
.chat-form .chat-emoji-popover .chat-emoji-group-grid button,
.reply-composer .chat-emoji-popover .chat-emoji-group-grid button{
  width:100%;
  min-width:0;
  height:34px!important;
  margin:0;
  padding:0!important;
  border:0;
  border-radius:9px;
  background:transparent;
  font-size:20px!important;
  line-height:1;
}
.chat-form .chat-emoji-popover .chat-emoji-group-grid button:hover,
.chat-form .chat-emoji-popover .chat-emoji-group-grid button:focus-visible,
.reply-composer .chat-emoji-popover .chat-emoji-group-grid button:hover,
.reply-composer .chat-emoji-popover .chat-emoji-group-grid button:focus-visible{
  background:var(--soft);
  outline:0;
}
@media(max-width:760px){
  .chat-form .chat-emoji-popover,
  .reply-composer .chat-emoji-popover{
    width:min(286px,calc(100vw - 32px))!important;
    max-width:none!important;
    max-height:min(300px,44dvh)!important;
    padding:9px!important;
  }
  .chat-form .chat-emoji-popover .chat-emoji-group-grid,
  .reply-composer .chat-emoji-popover .chat-emoji-group-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:3px!important;
  }
  .chat-form .chat-emoji-popover .chat-emoji-group-grid button,
  .reply-composer .chat-emoji-popover .chat-emoji-group-grid button{
    height:35px!important;
    font-size:20px!important;
  }
}
@media(max-width:380px){
  .chat-form .chat-emoji-popover,
  .reply-composer .chat-emoji-popover{
    width:min(258px,calc(100vw - 24px))!important;
  }
  .chat-form .chat-emoji-popover .chat-emoji-group-grid,
  .reply-composer .chat-emoji-popover .chat-emoji-group-grid{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}


/* v159.40-circle-polls-v2 */
.circle-poll-card{
  display:grid;
  gap:12px;
  margin:14px 0 2px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--soft) 72%,var(--card));
}
.circle-poll-loading{color:var(--muted);font-size:11px}
.circle-poll-meta{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.circle-poll-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 12%,var(--card));
  color:var(--accent);
  font-weight:850;
}
.circle-poll-options{display:grid;gap:8px}
.circle-poll-option{
  display:grid;
  gap:7px;
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--card);
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.circle-poll-option:hover{border-color:color-mix(in srgb,var(--accent) 38%,var(--line))}
.circle-poll-option.selected{
  border-color:color-mix(in srgb,var(--accent) 58%,var(--line));
  background:color-mix(in srgb,var(--accent) 7%,var(--card));
}
.circle-poll-option:has(input:disabled){cursor:default}
.circle-poll-option-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-width:0;
}
.circle-poll-option-row input{
  width:17px;
  height:17px;
  margin:0;
  accent-color:var(--accent);
}
.circle-poll-option-row b{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:12px;
  line-height:1.4;
}
.circle-poll-option-row strong{
  color:var(--ink);
  font-size:11px;
  font-weight:850;
}
.circle-poll-progress{
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:var(--soft);
}
.circle-poll-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .22s ease;
}
.circle-poll-option>small,
.circle-poll-results-note{
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}
.circle-poll-results-note{margin:0}
.circle-poll-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  padding-top:2px;
}
.circle-poll-footer>span{color:var(--muted);font-size:10px}
.circle-poll-footer>div{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.circle-poll-vote,.circle-poll-mini{
  min-height:38px;
  padding:8px 13px;
  border-radius:11px;
  font-size:11px;
  font-weight:800;
}
.circle-poll-locked{
  padding:7px 10px;
  border-radius:999px;
  background:var(--soft);
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

.circle-poll-composer{
  display:grid;
  gap:12px;
  margin:4px 0;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--soft) 70%,var(--card));
}
.circle-poll-composer.hidden{display:none!important}
.circle-poll-composer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.circle-poll-composer-head>div{display:grid;gap:3px}
.circle-poll-composer-head b{font-size:12px}
.circle-poll-composer-head small{color:var(--muted);font-size:9px;line-height:1.4}
.circle-poll-option-editors{display:grid;gap:7px}
.circle-poll-option-editor{
  display:grid;
  grid-template-columns:26px minmax(0,1fr) 34px;
  align-items:center;
  gap:7px;
}
.circle-poll-option-editor>span{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:var(--soft);
  color:var(--muted);
  font-size:9px;
  font-weight:850;
}
.circle-poll-option-editor input{
  width:100%;
  min-width:0;
  min-height:40px;
  box-sizing:border-box;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--card);
  color:var(--ink);
  font:inherit;
}
.circle-poll-option-editor button{
  width:34px;
  height:34px;
  padding:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card);
  color:var(--muted);
  font-size:18px;
}
.circle-poll-option-editor button:disabled{opacity:.32}
.circle-poll-settings{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.circle-poll-toggles{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.circle-poll-toggles>label{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:8px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
}
.circle-poll-toggles input{margin-top:2px;accent-color:var(--accent)}
.circle-poll-toggles span{display:grid;gap:2px}
.circle-poll-toggles b{font-size:10px}
.circle-poll-toggles small{color:var(--muted);font-size:9px;line-height:1.35}

@media(max-width:760px){
  .circle-poll-card{
    gap:10px;
    margin-top:12px;
    padding:11px;
    border-radius:14px;
  }
  .circle-poll-option{padding:11px}
  .circle-poll-option-row b{font-size:13px}
  .circle-poll-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .circle-poll-footer>div{width:100%}
  .circle-poll-vote{
    flex:1 1 auto;
    min-height:44px;
  }
  .circle-poll-composer-head{
    align-items:stretch;
    flex-direction:column;
  }
  .circle-poll-composer-head .secondary{width:100%}
  .circle-poll-settings,
  .circle-poll-toggles{grid-template-columns:1fr}
  .circle-poll-option-editor{grid-template-columns:24px minmax(0,1fr) 34px}
}


/* v159.42 — compact zero-vote Circle poll state */
.circle-poll-card{
  padding:12px 13px;
}
.circle-poll-meta{
  margin-bottom:1px;
}
.circle-poll-option:not(.has-results){
  gap:0;
}
.circle-poll-results-note{
  margin-top:-2px;
}
.circle-poll-footer{
  padding-top:0;
}
@media(max-width:760px){
  .circle-poll-card{
    padding:10px;
  }
}


/* v159.43 — Circle poll voter lists */
.circle-poll-option-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.circle-poll-option-foot>small{
  color:var(--muted);
  font-size:9px;
}
.circle-poll-voter-link{
  appearance:none;
  border:0;
  padding:2px 0;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}
.circle-poll-voter-link:hover,
.circle-poll-voter-link:focus-visible{
  text-decoration:underline;
  outline:0;
}
.circle-poll-voter-list{
  display:grid;
  gap:8px;
  max-height:min(560px,64dvh);
  overflow:auto;
  padding-right:2px;
}
.circle-poll-voter-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--card);
}
.circle-poll-voter-row>div{
  display:grid;
  min-width:0;
  gap:2px;
}
.circle-poll-voter-row b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}
.circle-poll-voter-row span{
  color:var(--muted);
  font-size:9px;
}
.circle-poll-voter-row small{
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}
.circle-poll-voter-empty{
  margin:0;
  padding:18px 4px;
  color:var(--muted);
  text-align:center;
  font-size:10px;
}
@media(max-width:760px){
  .circle-poll-option-foot{
    align-items:flex-start;
  }
  .circle-poll-voter-link{
    min-height:28px;
    padding:5px 0;
    font-size:10px;
  }
  .circle-poll-voter-row{
    padding:9px;
  }
}


/* v159.44 — align profile Posts heading with the standalone post feed on desktop */
@media(min-width:900px){
  .profile-posts-title{
    width:min(860px,100%);
    margin-inline:auto;
  }
}


/* v159.46 — performance: article covers use lazy-loadable images without changing card layout */
.article-cover{
  position:relative;
  overflow:hidden;
}
.article-cover>img{
  display:block;
  width:100%;
  height:100%;
  min-width:100%;
  min-height:100%;
  object-fit:cover;
  object-position:center;
}


/* v159.47 — desktop image viewer: keep images centered at a quality-friendly size */
@media(min-width:721px){
  .image-lightbox{
    padding:40px 56px;
  }
  .image-lightbox>img{
    max-width:min(72vw,980px);
    max-height:min(78vh,780px);
    border-radius:10px;
    box-shadow:0 18px 60px rgba(0,0,0,.24);
  }
  .post-gallery-stage{
    width:min(72vw,980px);
    height:min(78dvh,780px);
  }
  .post-gallery-stage>img{
    max-width:100%;
    max-height:100%;
    border-radius:10px;
  }
}


/* v159.48 — responsive YouTube embeds inside posts */
.post-youtube{
  position:relative;
  width:100%;
  margin:14px 0 2px;
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#000;
}
.post-youtube iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}
@media(max-width:760px){
  .post-youtube{
    margin-top:12px;
    border-radius:15px;
  }
}


/* v159.49 — stable unread counts + clean mobile new-conversation rows */
.nav-btn .count-badge{
  position:absolute;
  top:2px;
  right:2px;
  z-index:3;
  width:auto;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:2px solid var(--card);
  border-radius:999px;
  background:var(--coral);
  color:#fff;
  font-size:8px;
  font-weight:800;
  font-style:normal;
  line-height:1;
  letter-spacing:-.02em;
  box-sizing:border-box;
}
.bottom-nav [data-nav="messages"]{
  position:relative;
}
.bottom-nav [data-nav="messages"] .count-badge{
  position:absolute;
  top:0;
  right:2px;
  z-index:3;
  width:auto;
  min-width:17px;
  height:17px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border:2px solid var(--card);
  border-radius:999px;
  background:var(--coral);
  color:#fff;
  font-size:7.5px;
  font-weight:850;
  font-style:normal;
  line-height:1;
  box-sizing:border-box;
}
@media(max-width:760px){
  #newChatPeople .new-chat-row{
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
  }
  #newChatPeople .new-chat-arrow{
    display:none!important;
  }
}


/* v159.52 — Google Drive mobile player viewport.
   Keep the visible post media box at 16:9, but render Drive's internal player
   at a larger virtual viewport on phones and scale it back down. This avoids
   Drive's oversized mobile controls and the zoomed-in look without affecting
   YouTube or desktop embeds. */
.post-drive-video{
  aspect-ratio:16/9;
}
.post-drive-video iframe{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  border:0;
}
@media(max-width:760px){
  .post-drive-video{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:16/9!important;
    margin-inline:0!important;
  }
  .post-drive-video iframe{
    width:250%!important;
    height:250%!important;
    max-width:none!important;
    max-height:none!important;
    transform:scale(.4);
    transform-origin:top left;
  }
}


/* v159.80 — keep the top notification bell badge visually synced with unread state */
.top-actions [data-action="notifications"]{
  position:relative;
  overflow:visible;
}
.top-actions [data-action="notifications"]>.count-badge{
  position:absolute;
  top:-3px;
  right:-3px;
  z-index:4;
  width:auto;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border:2px solid var(--paper);
  border-radius:999px;
  background:var(--coral);
  color:#fff;
  font-size:8px;
  font-weight:850;
  font-style:normal;
  line-height:1;
  letter-spacing:-.02em;
  box-sizing:border-box;
  pointer-events:none;
}
.top-actions [data-action="notifications"]>.count-badge.hidden{
  display:none!important;
}
@media(max-width:600px){
  .top-actions [data-action="notifications"]>.count-badge{
    top:-2px;
    right:-2px;
    min-width:16px;
    height:16px;
    padding:0 4px;
    font-size:7px;
  }
}

.admin-content-row[data-admin-open-content]{
  cursor:pointer;
}
.admin-content-row[data-admin-open-content]:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

.admin-notification-matrix .page-title{margin-bottom:14px}
.notification-matrix-head,
.notification-matrix-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 118px 118px;
  gap:12px;
  align-items:center;
}
.notification-matrix-head{
  padding:0 12px 9px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.notification-matrix-head b{text-align:center}
.notification-matrix-list{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
}
.notification-matrix-row{
  min-height:68px;
  padding:11px 12px;
  background:var(--card);
}
.notification-matrix-row+.notification-matrix-row{border-top:1px solid var(--line)}
.notification-matrix-copy{display:grid;gap:3px;min-width:0}
.notification-matrix-copy b{font-size:13px}
.notification-matrix-copy small{color:var(--muted);font-size:10px}
.notification-matrix-row .admin-switch{justify-self:center}
.notification-matrix-note{
  margin:10px 2px 0;
  color:var(--muted);
  font-size:10px;
}
@media(max-width:760px){
  .notification-matrix-head,
  .notification-matrix-row{grid-template-columns:minmax(0,1fr) 88px 88px;gap:6px}
  .notification-matrix-row{padding:10px 8px}
  .notification-matrix-row .admin-switch{transform:scale(.92)}
}

.admin-content-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.admin-email-content.is-sent{border-color:color-mix(in srgb,var(--accent) 34%,var(--line));background:color-mix(in srgb,var(--accent) 8%,var(--card))}
.admin-email-confirm-summary{display:flex;align-items:baseline;gap:10px;padding:16px 18px;margin:8px 0 12px;border:1px solid var(--line);border-radius:16px;background:var(--soft)}
.admin-email-confirm-summary strong{font-size:28px;letter-spacing:-.04em}
.admin-email-confirm-summary span{color:var(--muted);font-size:11px}
.admin-email-previous{margin:10px 0 0;color:var(--muted);font-size:10px}
@media(max-width:760px){
  .admin-content-actions{justify-content:flex-start}
  .admin-content-actions .secondary{flex:1 1 auto}
}

.home-safety-note{margin:10px 2px 0;text-align:center;color:var(--muted);font-size:8px;font-weight:300;line-height:1.35;opacity:.62;letter-spacing:.01em}
@media(max-width:760px){.home-safety-note{font-size:7px;margin-top:8px;opacity:.58}}


.admin-dm-safety-search{display:flex;gap:8px;align-items:center;margin-top:14px}
.admin-dm-safety-search input{flex:1;min-width:0}
.admin-dm-safety-users,.admin-dm-safety-conversations{display:grid;gap:8px;margin-top:12px}
.admin-dm-safety-user,.admin-dm-safety-conversation{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card);text-align:left}
.admin-dm-safety-user span:first-child,.admin-dm-safety-conversation>div{display:grid;gap:3px;min-width:0}
.admin-dm-safety-user small,.admin-dm-safety-conversation small,.admin-dm-safety-selected small{color:var(--muted);font-size:12px}
.admin-dm-safety-user.active{border-color:currentColor}
.admin-dm-safety-selected{display:flex;gap:6px;align-items:baseline;margin:4px 0}
.admin-dm-review-form{display:grid;gap:14px}
.admin-dm-review-form label{display:grid;gap:7px}
.admin-dm-review-form textarea{min-height:100px;resize:vertical}
.admin-dm-review-note,.admin-dm-review-banner{font-size:12px;color:var(--muted);line-height:1.45}
.admin-dm-review-banner{padding:10px 12px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}
.admin-dm-review-messages{display:grid;gap:8px;max-height:64vh;overflow:auto}
.admin-dm-review-message{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.admin-dm-review-message>div{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.admin-dm-review-message small{color:var(--muted);font-size:11px}
.admin-dm-review-message p{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.admin-dm-review-message a{display:inline-block;margin-top:7px;font-size:12px}
@media(max-width:760px){
  .admin-dm-safety-search{align-items:stretch;flex-direction:column}
  .admin-dm-safety-conversation{align-items:flex-start;flex-direction:column}
  .admin-dm-safety-conversation button{width:100%}
}


.admin-content-filters{display:grid;grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,.55fr));gap:9px;margin:14px 0}
.admin-content-search{display:flex;gap:8px;min-width:0}
.admin-content-search input{min-width:0;flex:1}
.admin-content-filters select,.admin-content-filters input{min-height:44px}
.admin-content-date-range{grid-column:1/-1;display:flex;gap:9px;align-items:end;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.admin-content-date-range label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:700}
.admin-content-date-range input{min-width:170px;background:var(--card)}
.admin-content-count{color:var(--muted);font-size:11px;white-space:nowrap}
.admin-content-load-more{display:flex;justify-content:center;padding-top:12px}
.admin-content-row>div:first-child{min-width:0}
.admin-content-row>div:first-child b{display:block;overflow-wrap:anywhere}
@media(max-width:980px){
  .admin-content-filters{grid-template-columns:1fr 1fr}
  .admin-content-search{grid-column:1/-1}
}
@media(max-width:620px){
  .admin-content-filters{grid-template-columns:1fr}
  .admin-content-search{grid-column:auto}
  .admin-content-search button{flex:0 0 auto}
  .admin-content-date-range{grid-column:auto;display:grid;grid-template-columns:1fr 1fr}
  .admin-content-date-range label,.admin-content-date-range input{min-width:0;width:100%}
  .admin-content-date-range button{grid-column:1/-1}
  .admin-content-count{display:none}
}


.circle-pinned-panel{display:grid;gap:7px;padding:9px 10px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--accent2) 34%,var(--card))}
.circle-pinned-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.circle-pinned-open{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-width:0;padding:8px 10px;border:0;border-radius:12px;background:var(--card);text-align:start}
.circle-pinned-open>span:last-child{display:grid;gap:1px;min-width:0}
.circle-pinned-open b,.circle-pinned-open small,.circle-pinned-open em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.circle-pinned-open b{font-size:11px}
.circle-pinned-open small{font-size:11px;color:var(--text)}
.circle-pinned-open em{font-size:9px;color:var(--muted);font-style:normal}
.circle-pin-icon{font-size:14px}
.circle-pinned-unpin{width:32px;height:32px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--muted)}
#circleChatFlow>.chat-message.is-pinned .bubble{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 22%,transparent)}
@media(max-width:760px){
  .circle-pinned-panel{padding:7px 8px}
  .circle-pinned-open{padding:7px 8px}
  .circle-pinned-open small{max-width:68vw}
}


.meeting-planner-card{margin:14px 0 4px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--soft);display:grid;gap:12px}
.meeting-planner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.meeting-planner-head>div{display:grid;gap:3px;min-width:0}
.meeting-planner-kicker{font-size:11px;font-weight:800;color:var(--accent)}
.meeting-planner-head small{font-size:11px;color:var(--muted);line-height:1.45}
.meeting-timezone{flex:0 0 auto;font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 8px;background:var(--card)}
.meeting-best-time{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:15px;background:var(--card)}
.meeting-best-icon{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:var(--accent);color:white;font-weight:900}
.meeting-best-time>div{display:grid;gap:2px;min-width:0}
.meeting-best-time small,.meeting-best-time em{font-size:10px;color:var(--muted);font-style:normal}
.meeting-best-time b{font-size:14px;overflow-wrap:anywhere}
.meeting-best-time.is-empty .meeting-best-icon{background:var(--soft);color:var(--muted)}
.meeting-week-heat{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.meeting-week-day{display:grid;gap:4px;min-width:0}
.meeting-week-day>b{font-size:9px;color:var(--muted);text-align:center}
.meeting-day-heat{display:grid;grid-template-columns:repeat(24,1fr);gap:1px;height:16px;border-radius:6px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.meeting-day-heat i{display:block;background:var(--accent);min-width:0}
.meeting-day-empty{height:16px;border:1px solid var(--line);border-radius:6px;background:var(--card)}
.meeting-suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.meeting-suggestion{display:grid;grid-template-columns:24px minmax(0,1fr);gap:7px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--card);text-align:start;min-width:0}
.meeting-suggestion>span{width:22px;height:22px;border-radius:8px;display:grid;place-items:center;background:var(--soft);font-size:9px;font-weight:800}
.meeting-suggestion>div{display:grid;gap:2px;min-width:0}
.meeting-suggestion b,.meeting-suggestion small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meeting-suggestion b{font-size:10px}
.meeting-suggestion small{font-size:9px;color:var(--muted)}
.meeting-planner-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.meeting-planner-foot>span{font-size:10px;color:var(--muted)}
.meeting-planner-loading{color:var(--muted);font-size:11px}
.meeting-timezone-note{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);font-size:11px;color:var(--muted)}
.meeting-days-editor{display:grid;gap:9px;margin-top:12px}
.meeting-day-editor{border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--card);display:grid;gap:9px}
.meeting-day-editor>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.meeting-day-editor>header>div{display:grid;gap:2px}
.meeting-day-editor header b{font-size:12px}
.meeting-day-editor header small{font-size:9px;color:var(--muted)}
.meeting-range-list{display:grid;gap:7px}
.meeting-range-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 34px;gap:7px;align-items:end}
.meeting-range-row label{display:grid;gap:4px;font-size:9px;color:var(--muted)}
.meeting-range-row input{width:100%;min-width:0}
.meeting-range-row>span{padding-bottom:12px;color:var(--muted)}
.meeting-range-remove{height:38px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted)}
.meeting-no-ranges{margin:0;font-size:10px;color:var(--muted)}
.meeting-create-preview{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.meeting-create-preview>span{width:32px;height:32px;border-radius:11px;background:var(--card);display:grid;place-items:center}
.meeting-create-preview>div{display:grid;gap:3px}
.meeting-create-preview b{font-size:11px}
.meeting-create-preview small{font-size:10px;color:var(--muted);line-height:1.45}
@media(max-width:760px){
  .meeting-planner-card{margin:12px 0 3px;padding:11px;border-radius:15px}
  .meeting-planner-head{display:grid}
  .meeting-timezone{justify-self:start}
  .meeting-suggestions{grid-template-columns:1fr}
  .meeting-week-heat{gap:3px}
  .meeting-day-heat{height:14px}
  .meeting-planner-foot{align-items:stretch;flex-direction:column}
  .meeting-planner-foot .primary{width:100%}
  .meeting-range-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 32px}
  .meeting-day-editor{padding:9px}
}

.meeting-planner-badges{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:760px){.meeting-planner-badges{justify-content:flex-start}}


.content-share-sheet{width:min(600px,100%)}
.content-share-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 18px 12px}
.content-share-tabs button{min-height:38px;border:1px solid var(--line);border-radius:12px;background:var(--soft);color:var(--muted);font-weight:700}
.content-share-tabs button.active{background:color-mix(in srgb,var(--accent) 10%,var(--card));border-color:color-mix(in srgb,var(--accent) 35%,var(--line));color:var(--accent)}
.content-share-circle .article-share-avatar{border-radius:11px}
.shared-content-message{cursor:pointer}
@media(max-width:760px){
  .content-share-tabs{padding:0 14px 10px}
}

/* Circles: blank card areas are passive scroll surfaces, not tap targets.
   Long presses must not trigger text selection or native context menus. */
@media (hover:none) and (pointer:coarse){
  .circle-discovery-card{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
  .circle-discovery-card [data-open-circle]{touch-action:manipulation;-webkit-touch-callout:none;}
}

/* Circle cards are a single native navigation link, including their visible action. */
.circle-discovery-card[href]{display:block;color:inherit;text-decoration:none;cursor:pointer;touch-action:manipulation}
.circle-discovery-card[href] .circle-open-link{display:inline-flex;align-items:center;justify-content:center;margin-top:15px;pointer-events:none}
.circle-discovery-card[href]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Main administrator workspace: compact, responsive permissions table */
#mainAdminRoles.main-admin-panel{margin-top:20px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--card)}
#mainAdminRoles .main-admin-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:26px 28px 21px}
#mainAdminRoles .main-admin-eyebrow{display:block;margin-bottom:8px;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.12em}
#mainAdminRoles .main-admin-header h2{margin:0;font-size:22px;line-height:1.3;letter-spacing:-.025em}
#mainAdminRoles .main-admin-header p{margin:7px 0 0;font-size:12px;color:var(--muted);line-height:1.6}
#mainAdminRoles .main-admin-security{display:inline-flex;align-items:center;white-space:nowrap;padding:8px 12px;background:var(--soft);color:var(--accent);border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:750}
#mainAdminRoles .main-admin-toolbar{display:flex;align-items:center;gap:14px;padding:0 28px 22px}
#mainAdminRoles .main-admin-toolbar>small{margin-inline-start:auto;white-space:nowrap;color:var(--muted);font-size:11px}
#mainAdminRoles .main-admin-search{display:flex;align-items:center;gap:9px;width:min(420px,100%);min-width:0;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--muted)}
#mainAdminRoles .main-admin-search input{flex:1;min-width:0;height:42px;padding:0;outline:0;border:0;box-shadow:none!important;background:transparent;font-size:12px;color:var(--ink)}
#mainAdminRoles .main-admin-search:focus-within{border-color:var(--accent)}
#mainAdminRoles .main-admin-table-head,#mainAdminRoles .main-admin-role-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 170px;gap:16px;align-items:center}
#mainAdminRoles .main-admin-table-head{padding:12px 28px;background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.07em}
#mainAdminRoles .main-admin-table-head span:last-child{text-align:end}
#mainAdminRoles .main-admin-role-list{display:grid;max-height:530px;overflow-y:auto;overscroll-behavior:contain}
#mainAdminRoles .main-admin-role-row{padding:13px 28px;min-height:70px;border-bottom:1px solid var(--line)}
#mainAdminRoles .main-admin-role-row:last-child{border-bottom:0}
#mainAdminRoles .main-admin-person{display:flex;align-items:center;gap:12px;min-width:0}
#mainAdminRoles .main-admin-avatar{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--accent2);color:var(--accent);font-size:12px;font-weight:800}
#mainAdminRoles .main-admin-role-name{display:grid;gap:3px;min-width:0}
#mainAdminRoles .main-admin-role-name b{font-size:12px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mainAdminRoles .main-admin-role-name small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mainAdminRoles .main-admin-role-pill{justify-self:start;display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:750;background:var(--soft);color:var(--muted);white-space:nowrap}
#mainAdminRoles .main-admin-role-pill.is-admin{background:var(--accent2);color:var(--accent)}
#mainAdminRoles .main-admin-role-pill.is-owner{background:var(--accent);color:#fff}
#mainAdminRoles .main-admin-role-action{justify-self:end}
#mainAdminRoles .main-admin-role-action button{min-width:116px;height:34px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font-size:11px;font-weight:750;cursor:pointer;background:var(--card);color:var(--ink)}
#mainAdminRoles .main-admin-role-action .main-admin-grant{background:var(--accent);border-color:var(--accent);color:#fff}
#mainAdminRoles .main-admin-role-action .main-admin-remove{color:var(--muted)}
#mainAdminRoles .main-admin-role-action button:disabled{opacity:.6;cursor:wait}
#mainAdminRoles .main-admin-protected{font-size:11px;color:var(--muted);font-weight:700}
#mainAdminRoles .main-admin-empty{padding:28px;text-align:center;font-size:12px;color:var(--muted)}
@media(max-width:640px){
  #mainAdminRoles .main-admin-header{padding:20px 17px 15px;align-items:flex-start}
  #mainAdminRoles .main-admin-header h2{font-size:18px}
  #mainAdminRoles .main-admin-security{font-size:9px;padding:6px 9px}
  #mainAdminRoles .main-admin-toolbar{padding:0 17px 16px}
  #mainAdminRoles .main-admin-toolbar>small{display:none}
  #mainAdminRoles .main-admin-search{width:100%}
  #mainAdminRoles .main-admin-table-head{display:none}
  #mainAdminRoles .main-admin-role-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:13px 17px}
  #mainAdminRoles .main-admin-person{grid-column:1;grid-row:1}
  #mainAdminRoles .main-admin-role-pill{grid-column:1;grid-row:2;margin-inline-start:50px}
  #mainAdminRoles .main-admin-role-action{grid-column:2;grid-row:1 / span 2}
  #mainAdminRoles .main-admin-role-action button{min-width:96px;padding:0 8px}
}

/* Circle discovery: consistent card rhythm without changing link navigation or other cards. */
.circle-discovery-grid{align-items:stretch}
.circle-discovery-grid>.circle-discovery-card{
  box-sizing:border-box;min-width:0;height:100%;display:flex;flex-direction:column;
  align-items:stretch;padding:24px;gap:0;text-decoration:none;
}
.circle-discovery-card>.module-icon{flex:0 0 auto;margin-bottom:16px}
.circle-discovery-card>h3{
  margin:0 0 8px;line-height:1.35;min-height:2.7em;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;overflow-wrap:anywhere;
}
.circle-discovery-card>p{
  margin:0;line-height:1.55;min-height:6.2em;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;
  overflow:hidden;overflow-wrap:anywhere;
}
.circle-discovery-card>.module-meta{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex-wrap:wrap;margin-top:auto;padding-top:20px;min-width:0;
}
.circle-discovery-card>.module-meta>span{min-width:0;overflow-wrap:anywhere}
.circle-discovery-card>.circle-open-link{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  min-height:46px;width:100%;margin-top:20px;flex:0 0 auto;text-align:center;
}
@media(max-width:640px){
  .circle-discovery-grid>.circle-discovery-card{padding:19px}
  .circle-discovery-card>h3{min-height:0}
  .circle-discovery-card>p{min-height:0;-webkit-line-clamp:3}
  .circle-discovery-card>.module-meta{padding-top:18px}
}


/* Saved posts follow the same main-column width as the Home dashboard. */
@media (min-width:1101px){
  #view .saved-home-width-feed{
    width:calc(100% - 352px); /* 330px Home sidebar + 22px column gap */
    max-width:100%;
    min-width:0;
  }
}
@media (max-width:1100px){
  #view .saved-home-width-feed{
    width:100%;
    max-width:100%;
    min-width:0;
  }
}

/* Dark theme clarity: remove the full-screen fractal turbulence texture.
   Preserve the original smooth surfaces, text rendering, shadows and colors. */
html[data-theme="dark"] .grain{display:none!important;background-image:none!important}


/* Dark mode refinement — home "Your spaces" and post delete controls.
   Flat slate surfaces, subtle borders, no glass blur or bright light-mode boxes.
   Intentionally scoped so settings, chat, and other destructive actions keep their styles. */
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="gallery"],
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="articles"] {
  background:#1b2b38!important;
  color:#e7f2fc!important;
  border:1px solid #345066!important;
  border-radius:16px!important;
  box-shadow:none!important;
  min-height:62px;
  padding:13px 17px!important;
  text-align:start;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease;
}
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="gallery"]:hover,
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="articles"]:hover {
  background:#243949!important;
  border-color:#51778c!important;
  transform:translateY(-1px);
}
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="gallery"] > b,
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="articles"] > b {
  color:#a5d7ed!important;
}
html[data-theme="dark"] .post-menu > button.danger[data-delete-post] {
  width:36px;min-width:36px;height:36px;
  display:grid;place-items:center;
  background:#2a2029!important;
  color:#f5a8ac!important;
  border:1px solid #5b3945!important;
  border-radius:11px!important;
  box-shadow:none!important;
  font-weight:700;
  transition:background-color .16s ease,border-color .16s ease;
}
html[data-theme="dark"] .post-menu > button.danger[data-delete-post]:hover {
  background:#3b2732!important;
  color:#ffd0d2!important;
  border-color:#96606b!important;
}
html[data-theme="dark"] .post-menu > button.danger[data-delete-post]:focus-visible,
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="gallery"]:focus-visible,
html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="articles"]:focus-visible {
  outline:2px solid #78b9df;outline-offset:2px;
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="gallery"],
  html[data-theme="dark"] .side-card .account-menu > .account-row[data-nav="articles"],
  html[data-theme="dark"] .post-menu > button.danger[data-delete-post] {
    transition:none;transform:none;
  }
}


/* Feed performance: keep every post and its features in the DOM, but allow
   Chromium/WebKit engines that support content-visibility to skip layout and
   paint for posts far outside the viewport. The browser still scrolls and
   renders the full card normally when it becomes visible. */
@supports (content-visibility:auto) {
  #view .feed > .post,
  #view .circle-home-feed > .post {
    content-visibility:auto;
    contain-intrinsic-size:auto 440px;
  }
  /* Never defer a player while the user interacts with it. */
  #view .feed > .post:focus-within,
  #view .circle-home-feed > .post:focus-within {
    content-visibility:visible;
  }
}
