/* Smart Muslim Community v1 */
#view-community{padding:0!important;overflow:visible!important}
#community-root{width:100%;min-height:70vh}
.community-shell{width:min(100%,760px);margin:0 auto;padding:6px 16px calc(150px + env(safe-area-inset-bottom,0px));color:#17362d}
.community-head{position:relative;display:grid;grid-template-columns:44px 1fr 44px;align-items:start;gap:10px;padding:8px 0 18px;text-align:center}
.community-head>div>span,.community-sheet-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.18em;color:#9a7a3f}
.community-head h1{margin:3px 0 2px;font-family:Georgia,'Times New Roman',serif;font-size:32px;line-height:1;color:#17362d}
.community-head p{margin:5px 0 0;font-size:13px;color:#6c7d76}
.community-back,.community-create-top{width:42px;height:42px;border:1px solid #dcd8ce;border-radius:14px;background:#fff;color:#174b3e;box-shadow:0 4px 16px rgba(26,59,49,.06);font-size:28px;line-height:1;display:grid;place-items:center}
.community-create-top{font-size:25px;font-weight:400}
.community-scope-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
.community-scope-tabs button{min-width:0;border:1px solid #e2ded4;background:#fbfaf7;border-radius:16px;padding:11px 8px;text-align:left;color:#345148}
.community-scope-tabs button b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-scope-tabs button small{display:block;margin-top:3px;font-size:9px;color:#8a958f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.community-scope-tabs button.is-active{border-color:#174b3e;background:#174b3e;color:#fff;box-shadow:0 8px 24px rgba(23,75,62,.15)}
.community-scope-tabs button.is-active small{color:#dbe9e4}
.community-scope-tabs button:disabled{opacity:.45}
.community-category-scroll{display:flex;gap:7px;overflow:auto;padding:2px 0 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.community-category-scroll::-webkit-scrollbar{display:none}
.community-category-scroll button{flex:0 0 auto;border:1px solid #e1ddd2;background:#fff;border-radius:999px;padding:8px 12px;color:#596d66;font-size:11px;font-weight:700}
.community-category-scroll button.is-active{background:#eef4f1;border-color:#9fbbb0;color:#174b3e}
.community-login-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:14px;border:1px solid #e6dfcf;border-radius:18px;background:#fbf7ec}
.community-login-banner b{font-size:13px}.community-login-banner p{margin:4px 0 0;font-size:11px;line-height:1.45;color:#746f63}
.community-login-banner button,.community-empty button{flex:0 0 auto;border:0;border-radius:12px;background:#174b3e;color:#fff;padding:10px 12px;font-size:11px;font-weight:800}
.community-feedback{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#edf5f1;color:#174b3e;font-size:12px;font-weight:700}
.community-feed{display:grid;gap:11px}
.community-post{border:1px solid #e3dfd6;border-radius:20px;background:#fff;padding:15px;box-shadow:0 7px 24px rgba(38,58,51,.055)}
.community-post.is-official{border-color:#d7c18f;background:linear-gradient(180deg,#fffdf7 0%,#fff 52%)}
.community-post-top{display:grid;grid-template-columns:40px minmax(0,1fr) 32px;gap:9px;align-items:center}
.community-avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:#e9f1ed;color:#174b3e;font-size:15px;font-weight:900}
.community-avatar.is-mosque{background:#174b3e;color:#efd99e;font-size:19px}
.community-post-author{min-width:0}.community-post-author>div{display:flex;align-items:center;gap:6px;min-width:0}.community-post-author b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.community-post-author em{font-style:normal;font-size:8px;letter-spacing:.09em;color:#9a7a3f;background:#f6edd7;border-radius:999px;padding:4px 6px;white-space:nowrap}
.community-post-author small{display:block;margin-top:3px;color:#8a958f;font-size:10px}
.community-more{border:0;background:transparent;color:#8c9692;font-size:16px;letter-spacing:1px;padding:8px}
.community-post-category{display:inline-block;margin:13px 0 6px;border-radius:999px;background:#eef4f1;color:#174b3e;padding:5px 8px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.community-post h2{margin:0 0 7px;font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.15;color:#17362d}
.community-post>p{margin:0;color:#52675f;font-size:13px;line-height:1.52;white-space:pre-wrap}
.community-contact{display:inline-flex;margin-top:11px;color:#174b3e;font-size:12px;font-weight:800;text-decoration:none}
.community-post-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #efede7}
.community-post-actions button{border:1px solid #e0ddd5;background:#faf9f6;color:#50655d;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:800}
.community-post-actions button.is-active{background:#174b3e;border-color:#174b3e;color:#fff}
.community-empty{margin:18px 0;padding:34px 22px;text-align:center;border:1px dashed #d8d4ca;border-radius:22px;background:#fbfaf7}
.community-empty>span{display:grid;place-items:center;margin:0 auto 10px;width:46px;height:46px;border-radius:16px;background:#174b3e;color:#efd99e;font-size:22px}.community-empty h2{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:22px;color:#17362d}.community-empty p{margin:8px auto 16px;max-width:430px;color:#74817c;font-size:12px;line-height:1.5}
.community-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:44px 0;color:#6e7f79;font-size:12px}.community-loading i{width:20px;height:20px;border:2px solid #cfdad5;border-top-color:#174b3e;border-radius:50%;animation:community-spin .8s linear infinite}@keyframes community-spin{to{transform:rotate(360deg)}}
.community-sheet-wrap{position:fixed;inset:0;z-index:1300;display:flex;align-items:flex-end;justify-content:center}
.community-sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(13,31,26,.46);backdrop-filter:blur(3px)}
.community-sheet{position:relative;z-index:1;width:min(100%,760px);max-height:min(88vh,920px);overflow:auto;border-radius:26px 26px 0 0;background:#fdfcf9;padding:25px 18px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:0 -18px 50px rgba(0,0,0,.18);color:#17362d}
.community-sheet-grab{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:38px;height:4px;border-radius:99px;background:#d5d2ca}.community-sheet-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border:1px solid #e3dfd7;border-radius:13px;background:#fff;color:#4e625a;font-size:22px}.community-sheet>h2{margin:5px 46px 8px 0;font-family:Georgia,'Times New Roman',serif;font-size:25px}.community-sheet>p{font-size:13px;color:#687b74;line-height:1.5}
.community-compose form{display:grid;gap:12px;margin-top:18px}.community-compose label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#52675f}.community-compose input,.community-compose textarea,.community-compose select,.community-reply-form textarea{width:100%;box-sizing:border-box;border:1px solid #ddd9d0;border-radius:14px;background:#fff;padding:12px 13px;color:#17362d;font:inherit;font-size:13px;outline:none}.community-compose textarea,.community-reply-form textarea{resize:vertical;line-height:1.45}.community-compose input:focus,.community-compose textarea:focus,.community-compose select:focus,.community-reply-form textarea:focus{border-color:#789d8f;box-shadow:0 0 0 3px rgba(23,75,62,.08)}
.community-check{grid-template-columns:22px 1fr!important;align-items:start!important;gap:9px!important;padding:11px 12px;border:1px solid #e4e0d7;border-radius:14px;background:#faf9f6}.community-check input{width:18px!important;height:18px;margin:1px 0 0}.community-check span{display:grid;gap:2px}.community-check b{font-size:12px;color:#29463c}.community-check small{font-size:10px;font-weight:500;color:#7c8984;line-height:1.35}
.community-contact-fields{display:grid;gap:9px;padding:12px;border-radius:16px;background:#f3f5f2}.community-contact-fields p{margin:0;color:#7a8681;font-size:10px;line-height:1.4}.community-primary{width:100%;border:0;border-radius:14px;background:#174b3e;color:#fff;padding:13px 16px;font-size:12px;font-weight:900;box-shadow:0 8px 18px rgba(23,75,62,.15)}.community-primary:disabled{opacity:.55}
.community-thread .community-post{margin:12px 0 16px;box-shadow:none}.community-post.is-compact .community-more{display:none}.community-replies{display:grid;gap:9px}.community-replies h3{margin:0 0 3px;font-size:13px}.community-replies article{padding:12px;border:1px solid #e6e2d9;border-radius:14px;background:#fff}.community-replies article>div{display:flex;justify-content:space-between;gap:8px}.community-replies article b{font-size:11px}.community-replies article small{font-size:9px;color:#8b9692}.community-replies article p{margin:6px 0 0;color:#52675f;font-size:12px;line-height:1.45;white-space:pre-wrap}.community-replies article button{margin-top:8px;border:0;background:transparent;padding:0;color:#8a958f;font-size:9px}.community-no-replies{color:#87928e;font-size:12px}.community-reply-form{display:grid;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e6e2d9}.community-login-inline{margin-top:15px;padding:12px;border-radius:12px;background:#f3f5f2;color:#6a7c75;font-size:11px}
.community-vita-entry{width:100%;display:grid;grid-template-columns:50px minmax(0,1fr) 30px;align-items:center;gap:12px;margin:0 0 17px;padding:15px;border:1px solid #d9e2dd;border-radius:20px;background:linear-gradient(135deg,#174b3e,#276a58);color:#fff;text-align:left;box-shadow:0 9px 24px rgba(23,75,62,.14)}.community-vita-entry>span{width:50px;height:50px;border-radius:17px;display:grid;place-items:center;background:rgba(255,255,255,.11);color:#efd99e;font-size:23px}.community-vita-entry strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:21px}.community-vita-entry small{display:block;margin-top:4px;color:#dce9e4;font-size:11px;line-height:1.35}.community-vita-entry>i{font-style:normal;font-size:23px;color:#efd99e}

html.sm-dark-v2 body.sm-dark-v2 #view-community{background:transparent!important}
html.sm-dark-v2 body.sm-dark-v2 .community-shell{color:var(--sm-night-text,#eef4f1)}
html.sm-dark-v2 body.sm-dark-v2 .community-head h1,html.sm-dark-v2 body.sm-dark-v2 .community-post h2,html.sm-dark-v2 body.sm-dark-v2 .community-empty h2,html.sm-dark-v2 body.sm-dark-v2 .community-sheet>h2{color:var(--sm-night-text,#eef4f1)}
html.sm-dark-v2 body.sm-dark-v2 :is(.community-back,.community-create-top,.community-category-scroll button,.community-post,.community-sheet,.community-replies article,.community-compose input,.community-compose textarea,.community-compose select,.community-reply-form textarea){background:#142520!important;border-color:#31463f!important;color:#e8f0ed!important}
html.sm-dark-v2 body.sm-dark-v2 .community-scope-tabs button{background:#142520;border-color:#31463f;color:#dce7e3}html.sm-dark-v2 body.sm-dark-v2 .community-scope-tabs button.is-active{background:#2d6958;color:#fff;border-color:#487d6e}
html.sm-dark-v2 body.sm-dark-v2 .community-post.is-official{background:#1e2922!important;border-color:#685d3d!important}
html.sm-dark-v2 body.sm-dark-v2 :is(.community-post>p,.community-post-author small,.community-head p,.community-empty p,.community-sheet>p,.community-replies article p,.community-compose label){color:#aebcb7!important}
html.sm-dark-v2 body.sm-dark-v2 :is(.community-login-banner,.community-contact-fields,.community-check,.community-feedback,.community-empty){background:#182923!important;border-color:#31463f!important;color:#e8f0ed!important}
html.sm-dark-v2 body.sm-dark-v2 .community-post-actions{border-color:#31463f}html.sm-dark-v2 body.sm-dark-v2 .community-post-actions button{background:#1c3029;border-color:#3a5148;color:#dce7e3}
@media (max-width:430px){.community-shell{padding-left:13px;padding-right:13px}.community-head h1{font-size:29px}.community-scope-tabs{gap:6px}.community-scope-tabs button{padding:10px 7px}.community-scope-tabs button b{font-size:10px}.community-scope-tabs button small{font-size:8px}.community-post{padding:13px}.community-post h2{font-size:19px}.community-login-banner{align-items:flex-start;flex-direction:column}.community-login-banner button{width:100%}}

/* iOS Community sheet flow v2 */
html.community-sheet-open,body.community-sheet-open{overflow:hidden!important;height:100%!important;overscroll-behavior:none!important}
body.community-sheet-open #view-tabs{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.community-sheet-wrap{height:100dvh;max-height:100dvh;overflow:hidden;overscroll-behavior:contain;touch-action:auto}
.community-sheet-backdrop{touch-action:none}
.community-sheet{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px))!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important;scroll-padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important}
.community-compose form,.community-thread{touch-action:pan-y!important}
.community-compose form{padding-bottom:8px}
.community-compose form>.community-primary{position:relative!important;bottom:auto!important;z-index:1!important;margin:4px 0 0!important;box-shadow:0 8px 18px rgba(23,75,62,.15)!important}
.community-compose [hidden]{display:none!important}
html.community-sheet-open body.community-sheet-open #view-tabs.bottom-nav[class]{display:none!important;visibility:hidden!important;opacity:0!important}

.community-form-error{margin:2px 0 0;padding:11px 12px;border:1px solid #e0b7ae;border-radius:12px;background:#fff4f1;color:#8a3f32;font-size:11px;font-weight:800;line-height:1.4}
html.sm-dark-v2 body.sm-dark-v2 .community-form-error{background:#321f1b!important;border-color:#70453c!important;color:#ffd7cd!important}

/* iOS Safari: prevent automatic zoom on form focus */
@media (max-width: 820px){
  .community-compose input,
  .community-compose textarea,
  .community-compose select,
  .community-reply-form textarea{
    font-size:16px!important;
  }
}

/* Community contextual post menu + edit sheet */
.community-more-wrap{position:relative;flex:0 0 auto}
.community-post-menu{position:absolute;right:0;top:34px;z-index:30;min-width:132px;padding:6px;background:#fff;border:1px solid #e1ddd4;border-radius:13px;box-shadow:0 12px 30px rgba(28,52,44,.16);display:grid;gap:2px}
.community-post-menu button{width:100%;border:0;background:transparent;border-radius:9px;padding:10px 12px;text-align:left;color:#274b40;font-size:12px;font-weight:800}
.community-post-menu button:active{background:#f1f4f1}
.community-post-menu button.is-danger{color:#9a463b}
.community-post.is-compact .community-more-wrap{display:none}
.community-edit-lock{display:grid;gap:4px;padding:13px 14px;border:1px solid #e4dfd4;border-radius:14px;background:#f8f6f0;color:#50655d}
.community-edit-lock b{font-size:11px;color:#214f42}
.community-edit-lock span{font-size:14px;font-weight:800;color:#173f35}
.community-edit-lock small{font-size:10px;line-height:1.4;color:#81908a}
html.sm-dark-v2 body.sm-dark-v2 .community-post-menu{background:#172720;border-color:#385047}
html.sm-dark-v2 body.sm-dark-v2 .community-post-menu button{color:#dce8e3}
html.sm-dark-v2 body.sm-dark-v2 .community-post-menu button.is-danger{color:#ffb6aa}
html.sm-dark-v2 body.sm-dark-v2 .community-edit-lock{background:#1b2d26;border-color:#385047;color:#cad8d3}

/* Community Discussions v1 */
.community-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px;padding:4px;border:1px solid #e2ded4;border-radius:17px;background:#f7f5ef}
.community-mode-tabs button{border:0;border-radius:13px;background:transparent;padding:10px 12px;text-align:left;color:#60716b}
.community-mode-tabs button b{display:block;font-size:12px}.community-mode-tabs button small{display:block;margin-top:2px;font-size:9px;color:#8b9692}
.community-mode-tabs button.is-active{background:#fff;color:#174b3e;box-shadow:0 4px 14px rgba(26,59,49,.08)}
.community-mode-tabs button.is-active small{color:#71817b}
.community-discussion{border:1px solid #e3dfd6;border-radius:20px;background:#fff;padding:15px;box-shadow:0 7px 24px rgba(38,58,51,.055)}
.community-discussion.is-religious{border-color:#d9d5c5;background:linear-gradient(180deg,#fffdf8 0%,#fff 55%)}
.community-discussion h2{margin:0 0 7px;font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.18;color:#17362d}
.community-discussion>p{margin:0;color:#52675f;font-size:13px;line-height:1.55;white-space:pre-wrap}
.community-religious-badge{display:inline-flex;margin:0 0 8px 6px;border-radius:999px;background:#f5edd8;color:#8b6b2f;padding:5px 8px;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.community-post-author em.is-amin{background:#e7f2ed;color:#174b3e}
.community-amin-ready{display:inline-flex;align-items:center;padding:8px 10px;border-radius:999px;background:#edf5f1;color:#174b3e;font-size:10px;font-weight:800}
.community-amin-answer{margin:14px 0 18px;padding:15px;border:1px solid #cfded7;border-radius:18px;background:#f3f8f5}
.community-amin-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.community-amin-head>span{width:36px;height:36px;border-radius:13px;display:grid;place-items:center;background:#174b3e;color:#efd99e;font-family:Georgia,serif;font-size:18px;font-weight:900}.community-amin-head b{display:block;font-size:13px;color:#174b3e}.community-amin-head small{display:block;margin-top:2px;font-size:9px;color:#7b8b85}
.community-amin-answer>p{margin:0;color:#3f5950;font-size:12px;line-height:1.58;white-space:pre-wrap}
.community-amin-notice{margin-top:10px;padding:9px 10px;border-radius:11px;background:#fff7e6;color:#735f37;font-size:10px;line-height:1.4}
.community-amin-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.community-amin-sources b{width:100%;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#7c8c86}.community-amin-sources span{border:1px solid #d8e4de;border-radius:999px;background:#fff;padding:5px 8px;color:#4e665d;font-size:9px}
.community-ask-amin{width:100%;margin:13px 0 17px;border:1px solid #a8c3b7;border-radius:14px;background:#edf5f1;color:#174b3e;padding:12px 14px;font-size:11px;font-weight:900}
.community-amin-pending{margin:13px 0 17px;padding:12px 14px;border-radius:14px;background:#f0f3f1;color:#65766f;font-size:11px;font-weight:800;text-align:center}
.community-amin-choice{border-color:#cfded7;background:#f3f8f5}
.community-discussion.is-compact{margin:12px 0 16px;box-shadow:none}.community-discussion.is-compact .community-more-wrap{display:none}
html.sm-dark-v2 body.sm-dark-v2 .community-mode-tabs{background:#13231e;border-color:#31463f}
html.sm-dark-v2 body.sm-dark-v2 .community-mode-tabs button{color:#aebcb7}html.sm-dark-v2 body.sm-dark-v2 .community-mode-tabs button.is-active{background:#234438;color:#fff}
html.sm-dark-v2 body.sm-dark-v2 .community-discussion{background:#142520;border-color:#31463f}html.sm-dark-v2 body.sm-dark-v2 .community-discussion h2{color:#eef4f1}html.sm-dark-v2 body.sm-dark-v2 .community-discussion>p{color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-answer{background:#193029;border-color:#3d5d51}html.sm-dark-v2 body.sm-dark-v2 .community-amin-answer>p{color:#d5e2dd}html.sm-dark-v2 body.sm-dark-v2 .community-amin-sources span{background:#142520;border-color:#3d5d51;color:#d5e2dd}
@media (max-width:430px){.community-mode-tabs button{padding:9px 10px}.community-mode-tabs button b{font-size:11px}.community-mode-tabs button small{font-size:8px}.community-discussion{padding:13px}.community-discussion h2{font-size:19px}}

/* Amin Community answer v2: readable markdown + progressive disclosure */
.community-amin-body{position:relative;margin-top:12px;color:#3f5950;font-size:12px;line-height:1.58}
.community-amin-body p{margin:0 0 11px;color:inherit;font-size:inherit;line-height:inherit;white-space:normal}
.community-amin-body p:last-child{margin-bottom:0}
.community-amin-body strong{font-weight:850;color:#244c40}
.community-amin-body em{font-style:italic}
.community-amin-body ol,.community-amin-body ul{margin:8px 0 12px;padding-left:22px;display:grid;gap:5px}
.community-amin-body li{padding-left:2px}
.community-amin-body.is-collapsed{max-height:265px;overflow:hidden}
.community-amin-body.is-collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:72px;background:linear-gradient(180deg,rgba(243,248,245,0),#f3f8f5 82%);pointer-events:none}
.community-amin-toggle{display:flex;align-items:center;justify-content:center;width:100%;margin:5px 0 2px;padding:9px 10px;border:0;background:transparent;color:#174b3e;font-size:11px;font-weight:850}
.community-amin-sources a{display:inline-flex;text-decoration:none;color:#506b62}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-body{color:#cbdad5}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-body strong{color:#edf5f1}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-body.is-collapsed::after{background:linear-gradient(180deg,rgba(25,44,37,0),#192c25 82%)}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-toggle{color:#bcd9cf}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-sources a{color:#bfd4cc}

.community-amin-body blockquote{margin:10px 0 12px;padding:10px 12px;border-left:3px solid #9fbbb0;border-radius:10px;background:#edf4f0;color:#244c40;font-weight:700}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-body blockquote{background:#20342c;border-left-color:#6e9b8c;color:#edf5f1}


/* Amin sources v3 — citations stay available without competing with the answer. */
.community-amin-sources{
  display:block;
  margin-top:10px;
  padding-top:2px;
}
.community-amin-sources>summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 0;
  border:0;
  background:transparent;
  color:#174b3e;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.community-amin-sources>summary::-webkit-details-marker{display:none}
.community-amin-sources>summary span{display:inline-block;transition:transform .18s ease}
.community-amin-sources[open]>summary span{transform:rotate(180deg)}
.community-amin-sources>div{
  display:grid;
  gap:7px;
  margin-top:4px;
  padding:10px 11px;
  border:1px solid #d8e4de;
  border-radius:13px;
  background:rgba(255,255,255,.64);
}
.community-amin-sources>div a{
  display:block;
  padding:0;
  color:#506b62;
  font-size:10px;
  line-height:1.4;
  text-decoration:none;
}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-sources>summary{color:#bfd4cc}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-sources>div{background:#142520;border-color:#3d5d51}
html.sm-dark-v2 body.sm-dark-v2 .community-amin-sources>div a{color:#d5e2dd}

/* Community header starts below the global app chrome; + never overlaps Profilo. */
#view-community .community-shell{padding-top:12px}

/* Community Useful reactions v1 — social proof without popularity ranking */
.community-post-actions--compact{margin-top:12px;padding-top:10px}
.community-useful{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important}
.community-useful>span{font-size:14px;line-height:1;transform:translateY(-.5px)}
.community-post-actions .community-useful.is-active{background:#edf5f1;border-color:#9fbbb0;color:#174b3e}
.community-reply-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px}
.community-replies article .community-reply-actions button{margin:0;border:0;background:transparent;padding:3px 0;color:#7b8b85;font-size:10px;font-weight:800;line-height:1.2}
.community-replies article .community-reply-actions .community-useful{border-radius:999px;padding:5px 8px!important}
.community-replies article .community-reply-actions .community-useful.is-active{background:#edf5f1;color:#174b3e}
html.sm-dark-v2 body.sm-dark-v2 .community-post-actions .community-useful.is-active{background:#234438!important;border-color:#487d6e!important;color:#eef4f1!important}
html.sm-dark-v2 body.sm-dark-v2 .community-replies article .community-reply-actions button{color:#9fb0aa}
html.sm-dark-v2 body.sm-dark-v2 .community-replies article .community-reply-actions .community-useful.is-active{background:#234438!important;color:#eef4f1!important}

/* Community Useful V2 — instant optimistic reaction, no loading state */
.community-useful{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* COMMUNITY FORUM SCALE V1 */
.community-forum-tools{display:grid;gap:9px;margin:-2px 0 14px}
.community-forum-search{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:4px;width:100%;box-sizing:border-box;padding:4px 10px;border:1px solid #dedbd2;border-radius:15px;background:#fff;color:#73837d;box-shadow:0 4px 14px rgba(38,58,51,.035)}
.community-forum-search>span{display:grid;place-items:center;font-size:18px;color:#789087}
.community-forum-search input{width:100%;height:40px;border:0!important;outline:0!important;background:transparent!important;color:#24483d;font:inherit;font-size:13px!important;box-shadow:none!important}
.community-forum-search input::placeholder{color:#9aa5a1}
.community-forum-sort{display:flex;gap:7px;overflow:auto;padding:1px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.community-forum-sort::-webkit-scrollbar{display:none}
.community-forum-sort button{flex:0 0 auto;border:1px solid #dedbd2;border-radius:999px;background:#fff;padding:7px 11px;color:#667873;font-size:10px;font-weight:800;white-space:nowrap}
.community-forum-sort button.is-active{border-color:#9fbdb1;background:#eaf3ef;color:#174b3e}
.community-forum-labels{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:13px 0 7px}
.community-forum-labels .community-post-category,.community-forum-labels .community-religious-badge{margin:0}
.community-forum-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.community-forum-status.is-pinned{background:#f7edd3;color:#86631f}
.community-forum-status.is-closed{background:#f0f1ef;color:#68736f}
.community-discussion.is-pinned{border-color:#d7c18f;background:linear-gradient(180deg,#fffdf6 0%,#fff 56%)}
.community-discussion.is-closed{box-shadow:none}
.community-forum-more{display:grid;place-items:center;min-height:62px;padding:12px 0 4px;color:#82908b;font-size:11px}
.community-forum-more button{border:1px solid #d9ded9;border-radius:999px;background:#fff;padding:9px 14px;color:#34594d;font-size:10px;font-weight:850}
.community-forum-end{text-align:center;padding:18px 0 3px;color:#a1aaa6;font-size:9px}
.community-closed-notice{display:grid;gap:4px;margin-top:16px;padding:13px 14px;border:1px solid #dddcd6;border-radius:14px;background:#f4f4f1;color:#68746f}
.community-closed-notice b{font-size:12px;color:#355248}.community-closed-notice span{font-size:10px;line-height:1.45}
.community-moderation-sheet>p{margin:0 46px 10px 0;font-size:12px;color:#6e8078;line-height:1.45}
.community-post-menu [data-community-discussion-manage]{color:#8a6c2d}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-search{background:#142520;border-color:#31463f;color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-search input{color:#e7f0ec!important}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-sort button{background:#142520;border-color:#31463f;color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-sort button.is-active{background:#234438;border-color:#487d6e;color:#fff}
html.sm-dark-v2 body.sm-dark-v2 .community-discussion.is-pinned{background:#1e2922!important;border-color:#685d3d!important}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-status.is-pinned{background:#41371f;color:#edd28b}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-status.is-closed{background:#24312c;color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-more button{background:#142520;border-color:#31463f;color:#dce7e3}
html.sm-dark-v2 body.sm-dark-v2 .community-closed-notice{background:#192722;border-color:#31463f;color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-closed-notice b{color:#e7f0ec}
@media(max-width:820px){.community-forum-search input{font-size:16px!important}}
.community-forum-room{margin:0 0 12px;padding:14px 15px;border:1px solid #e4dfd4;border-radius:17px;background:#fbf8f1}
.community-forum-room>span{display:block;font-size:8px;font-weight:900;letter-spacing:.14em;color:#9a7a3f}
.community-forum-room h2{margin:3px 0 4px;font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.15;color:#17362d}
.community-forum-room p{margin:0;color:#73817c;font-size:10px;line-height:1.45}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-room{background:#182923;border-color:#31463f}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-room h2{color:#eef4f1}
html.sm-dark-v2 body.sm-dark-v2 .community-forum-room p{color:#aebcb7}
.community-replies article .community-reply-actions button.is-danger{color:#a14d43!important}
html.sm-dark-v2 body.sm-dark-v2 .community-replies article .community-reply-actions button.is-danger{color:#ffb6aa!important}

/* Owner / moderator forum control: visible action, not hidden in overflow menu. */
.community-post-actions .community-manage-inline{border:1px solid #d6c39a!important;background:#fffaf0!important;color:#7b5d22!important;border-radius:999px!important;padding:6px 10px!important;font-weight:850!important}
html.sm-dark-v2 body.sm-dark-v2 .community-post-actions .community-manage-inline{border-color:#6f5d36!important;background:#2d291d!important;color:#e7d3a1!important}

/* Moderation queue */
.community-head-actions{display:flex;align-items:center;gap:7px}
.community-moderation-top{width:40px;height:40px;border:1px solid #dfd2b6;border-radius:12px;background:#fffaf0;color:#7b5d22;font-size:18px;font-weight:900;display:grid;place-items:center}
.community-moderation-center{max-height:min(88vh,760px);overflow:auto;padding-bottom:28px}
.community-mq-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 44px 14px 0}.community-mq-head h2{margin:0 0 4px;font-size:1.25rem;color:#183d32}.community-mq-head p{margin:0;font-size:10px;line-height:1.45;color:#70807a}.community-mq-head>span{min-width:28px;height:28px;border-radius:999px;background:#edf5f1;color:#087056;display:grid;place-items:center;font-size:11px;font-weight:900}
.community-mq-card{display:grid;gap:10px;padding:14px;margin:0 0 10px;border:1px solid #e4ddd0;border-radius:16px;background:#fff}.community-mq-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.community-mq-top>span{font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#8d713c}.community-mq-top small{font-size:9px;color:#8a9691}.community-mq-card h3{margin:0;font-size:14px;color:#183d32}.community-mq-content{margin:0;font-size:11px;line-height:1.5;color:#52665e;white-space:pre-wrap}.community-mq-reason{display:grid;gap:3px;padding:9px 10px;border-radius:11px;background:#f7f3eb}.community-mq-reason b{font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#8d713c}.community-mq-reason span{font-size:10px;line-height:1.45;color:#5d6c66}
.community-mq-amin{display:grid;gap:5px;padding:10px;border:1px solid #cfe0d9;border-radius:12px;background:#f2f8f5}.community-mq-amin>div{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.community-mq-amin b{font-size:10px;color:#174d3e}.community-mq-amin span{font-size:9px;color:#547066}.community-mq-amin p{margin:0;font-size:9px;line-height:1.45;color:#5f716a}.community-mq-amin.is-pending{grid-template-columns:1fr auto}.community-mq-amin.is-error{border-color:#ead3cf;background:#fff7f5}.community-mq-amin.is-error button{border:0;background:transparent;color:#9b4e43;font-size:9px;font-weight:800}
.community-mq-actions{display:flex;gap:7px;flex-wrap:wrap}.community-mq-actions button{min-height:35px;border:1px solid #d8ded9;border-radius:10px;background:#fff;color:#31594c;padding:0 10px;font-size:9px;font-weight:850}.community-mq-actions button.is-danger{border-color:#e0b9b4;background:#fff7f5;color:#9c463c}
html.sm-dark-v2 body.sm-dark-v2 .community-moderation-top{background:#2d291d;border-color:#6f5d36;color:#e7d3a1}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-head h2,html.sm-dark-v2 body.sm-dark-v2 .community-mq-card h3{color:#edf4f1}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-card{background:#16251f;border-color:#31463f}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-content,html.sm-dark-v2 body.sm-dark-v2 .community-mq-head p{color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-reason{background:#211f19}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-amin{background:#173028;border-color:#35594c}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-amin b{color:#dcebe5}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-amin span,html.sm-dark-v2 body.sm-dark-v2 .community-mq-amin p{color:#aebcb7}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-actions button{background:#142520;border-color:#31463f;color:#dce7e3}
html.sm-dark-v2 body.sm-dark-v2 .community-mq-actions button.is-danger{background:#2a1b1b;border-color:#563737;color:#ffb6aa}

/* Author-only pre-publication state for under-14 content. */
.community-owner-pending{display:flex;align-items:flex-start;gap:10px;margin:10px 0 12px;padding:10px 12px;border:1px solid rgba(184,125,29,.3);border-radius:14px;background:rgba(184,125,29,.07);color:var(--primary-color,#0a503f)}
.community-owner-pending b{flex:0 0 auto;font-size:.7rem;letter-spacing:.08em;color:#94640e}.community-owner-pending span,.community-pending-note{font-size:.78rem;line-height:1.35;color:var(--text-secondary,#66706d)}
.community-forum-status.is-pending{border-color:rgba(184,125,29,.28);background:rgba(184,125,29,.09);color:#94640e}

/* 0.37.3 live visual fix: reliable moderation flag icon */
.community-moderation-top{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;padding:0}
.community-moderation-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}

/* 0.37.4 community toolbar alignment */
.community-head-actions{transform:translateX(-20px);gap:8px}
.community-moderation-top,.community-create-top{width:42px;height:42px;min-width:42px;min-height:42px}
.community-moderation-top svg{width:21px;height:21px}
@media(max-width:680px){.community-head-actions{transform:translateX(-18px);gap:8px}}

/* 0.37.5 community toolbar final alignment */
.community-head-actions{position:absolute;top:8px;right:10px;transform:none!important;display:flex;align-items:center;gap:10px;width:auto}
.community-moderation-top,.community-create-top{width:42px;height:42px;min-width:42px;min-height:42px}
.community-moderation-top svg{width:22px;height:22px}
@media(max-width:680px){.community-head-actions{right:10px;gap:10px;transform:none!important}}

/* 0.37.6 community toolbar micro-alignment */
.community-head-actions{right:2px!important;gap:8px!important}
@media(max-width:680px){.community-head-actions{right:2px!important;gap:8px!important}}

/* 0.37.7 community toolbar position correction */
.community-head-actions{right:18px!important;gap:8px!important}
@media(max-width:680px){.community-head-actions{right:18px!important;gap:8px!important}}

/* 0.37.8 community header structural fix */
.community-head{grid-template-columns:44px minmax(0,1fr) 92px!important;align-items:start!important}
.community-head>div:nth-child(2){min-width:0}
.community-head-actions{position:static!important;transform:none!important;justify-self:end!important;align-self:start!important;width:92px!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
@media(max-width:680px){.community-head{grid-template-columns:44px minmax(0,1fr) 92px!important}.community-head-actions{position:static!important;right:auto!important;transform:none!important;width:92px!important;gap:8px!important}}
