/*
Theme Name: JR Platform Theme
Theme URI: https://jrrobbins.com/
Author: JRRobbins.com
Description: Dark-first responsive application shell for the modular JR Platform, with high-contrast JR component styling, desktop-first wide layouts and a separate touch-optimised mobile navigation layer.
Version: 1.7.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: jr-platform-theme
*/
:root{
 --jr-bg:#18191a;--jr-surface:#242526;--jr-surface-2:#2f3031;--jr-surface-3:#3a3b3c;
 --jr-text:#e4e6eb;--jr-muted:#b0b3b8;--jr-border:#3a3b3c;--jr-hover:#303031;
 --jr-blue:#2d88ff;--jr-red:#e2232f;--jr-green:#42b72a;--jr-radius:12px;
 --jr-header-h:58px;--jr-mobile-nav-h:64px;
}
*{box-sizing:border-box}html{background:var(--jr-bg);scroll-behavior:smooth}html,body{margin:0;min-height:100%}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--jr-bg);color:var(--jr-text);line-height:1.45;overflow-x:hidden}
a{color:inherit}img{max-width:100%;height:auto}.jrpt-shell{min-height:100vh;background:var(--jr-bg)}
body.admin-bar{--jr-admin-offset:32px}@media(max-width:782px){body.admin-bar{--jr-admin-offset:46px}}

/* Unified dark variables for JR companion modules. */
body{
 --jrc-bg:#18191a;--jrc-soft:#242526;--jrc-border:#3a3b3c;--jrc-text:#e4e6eb;--jrc-muted:#b0b3b8;
 --jraf-soft:#242526;--jraf-line:#3a3b3c;--jraf-ink:#e4e6eb;--jraf-muted:#b0b3b8;
 --jrg-card:#242526;--jrg-line:#3a3b3c;--jrg-ink:#e4e6eb;--jrg-muted:#b0b3b8;--jrg-soft:#18191a;
 --jrfor-card:#242526;--jrfor-border:#3a3b3c;--jrfor-text:#e4e6eb;--jrfor-muted:#b0b3b8;--jrfor-soft:#18191a;
 --jrchat-border:#3a3b3c;--jrchat-soft:#18191a;--jrchat-text:#e4e6eb;--jrchat-muted:#b0b3b8;
}

/* Member header plugin dark integration. */
body .jrmh{background:#242526!important;border-bottom:1px solid #3a3b3c!important;color:var(--jr-text);box-shadow:0 1px 2px rgba(0,0,0,.35)}
body .jrmh.is-sticky{top:var(--jr-admin-offset,0)!important}
body .jrmh-inner{max-width:2200px!important;width:100%!important;padding-left:clamp(10px,1.2vw,24px)!important;padding-right:clamp(10px,1.2vw,24px)!important}
body .jrmh-brand{color:#ff3341!important;letter-spacing:-.35px}
body .jrmh-search{background:#3a3b3c!important;color:var(--jr-text)}body .jrmh-search input{color:var(--jr-text)!important}body .jrmh-search input::placeholder{color:#b0b3b8!important}
body .jrmh-nav{color:#d7d9dc!important}body .jrmh-nav:hover{background:#3a3b3c!important;color:#fff!important}
body .jrmh-actions .jrn-bell-button{background:#3a3b3c!important;color:#e4e6eb!important}
body .jrmh-account{background:#242526!important;border-color:#3a3b3c!important}body .jrmh-account a{color:#e4e6eb!important}body .jrmh-account a:hover{background:#3a3b3c!important}
body .jrmh-suggestions{background:#242526!important;border-color:#3a3b3c!important}body .jrmh-suggestions a{color:#e4e6eb!important}body .jrmh-suggestions a:hover{background:#3a3b3c!important}body .jrmh-suggestions small{color:#b0b3b8!important}


.jrpt-fallback-header{height:58px;position:sticky;top:var(--jr-admin-offset,0);z-index:99960;display:grid;grid-template-columns:auto minmax(180px,420px);gap:18px;align-items:center;padding:0 clamp(12px,2vw,30px);background:#242526;border-bottom:1px solid #3a3b3c}.jrpt-fallback-header>a{color:#ff3341;font-weight:900;text-decoration:none;font-size:20px}.jrpt-fallback-header form{margin:0}.jrpt-fallback-header input{width:100%;height:40px;border:0!important;border-radius:22px!important;background:#3a3b3c!important;padding:0 15px!important}

/* Main shell: fluid enough for ultrawide screens, never cramped on large monitors. */
.jrpt-main{width:calc(100% - clamp(20px,2.4vw,56px));max-width:2200px;margin:0 auto;display:grid;grid-template-columns:minmax(220px,290px) minmax(0,1fr) minmax(260px,340px);gap:clamp(14px,1.4vw,28px);padding:clamp(14px,1.5vw,28px) 0 38px;align-items:start}
.jrpt-main.no-sidebars{display:block;max-width:1280px}.jrpt-side{position:sticky;top:calc(var(--jr-header-h) + var(--jr-admin-offset,0) + 14px);align-self:start;max-height:calc(100vh - var(--jr-header-h) - 34px);overflow:auto;scrollbar-width:thin;scrollbar-color:#4b4c4f transparent}
.jrpt-left nav{padding:4px}.jrpt-left nav,.jrpt-widget{background:transparent;border:0;border-radius:0}
.jrpt-left a{display:flex;align-items:center;gap:13px;min-height:48px;padding:9px 11px;border-radius:9px;text-decoration:none;font-weight:650;color:#e4e6eb;transition:background .12s ease,color .12s ease}
.jrpt-left a:hover,.jrpt-left a.is-active{background:#303031}.jrpt-left a.is-active{color:#fff}.jrpt-left a b{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#333536;font-size:16px}.jrpt-left a.is-active b{background:var(--jr-blue)}
.jrpt-nav-section{padding:14px 12px 7px;color:#b0b3b8;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.jrpt-nav-divider{height:1px;background:#3a3b3c;margin:9px 5px}
.jrpt-content{min-width:0;width:100%;background:transparent;border:0;border-radius:0;padding:0}.jrpt-content>article{min-width:0}.jrpt-content>article>h1{font-size:clamp(24px,2vw,34px);margin:0 0 16px;line-height:1.15;color:#f5f6f7}
.jrpt-content--app>article>h1{margin-left:2px}.jrpt-content article>*:first-child{margin-top:0}
.jrpt-card,.jrpt-content .wp-block-group.has-background{background:var(--jr-surface);border:1px solid var(--jr-border);border-radius:var(--jr-radius);box-shadow:0 1px 2px rgba(0,0,0,.2)}

/* Right contacts/sidebar */
.jrpt-widget{padding:4px 0 16px}.jrpt-widget h2{font-size:17px;color:#b0b3b8;margin:0 0 10px;padding:0 8px}.jrpt-contact{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;text-decoration:none;color:#e4e6eb}.jrpt-contact:hover{background:#303031}.jrpt-contact-avatar{position:relative;flex:0 0 36px}.jrpt-contact-avatar img{display:block;width:36px;height:36px;border-radius:50%;object-fit:cover}.jrpt-presence-dot{position:absolute;right:-1px;bottom:0;width:11px;height:11px;border:2px solid #18191a;border-radius:50%;background:#8a8d91}.jrpt-presence-dot.is-online{background:#31a24c}.jrpt-contact-meta{min-width:0}.jrpt-contact-meta strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.jrpt-contact-meta small{display:block;color:#8f9297;font-size:11px;text-transform:capitalize}.jrpt-quick-card{margin-top:15px;padding:14px;background:#242526;border:1px solid #3a3b3c;border-radius:12px}.jrpt-quick-card h3{margin:0 0 10px;font-size:15px}.jrpt-quick-card a{display:block;padding:8px 0;text-decoration:none;color:#d8dadf}.jrpt-quick-card a:hover{color:#fff}

/* Placeholder pages generated by JR Theme Setup. */
.jr-platform-placeholder{background:#242526;border:1px solid #3a3b3c;border-radius:14px;padding:clamp(24px,5vw,60px);text-align:center;min-height:360px;display:grid;place-items:center}.jr-platform-placeholder>div{max-width:620px}.jr-platform-placeholder .jr-placeholder-icon{display:block;font-size:56px;margin-bottom:12px}.jr-platform-placeholder h2{font-size:clamp(28px,4vw,46px);margin:0 0 10px}.jr-platform-placeholder p{color:#b0b3b8;font-size:16px}

/* Theme-native library and friends bridge. */
.jrpt-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}.jrpt-publication{background:#242526;border:1px solid #3a3b3c;border-radius:12px;overflow:hidden}.jrpt-publication a{text-decoration:none}.jrpt-publication-thumb{aspect-ratio:3/4;background:#303031;display:grid;place-items:center;overflow:hidden}.jrpt-publication-thumb img{width:100%;height:100%;object-fit:cover}.jrpt-publication-body{padding:13px}.jrpt-publication-body strong{display:block}.jrpt-publication-body small{color:#b0b3b8}.jrpt-empty{padding:30px;background:#242526;border:1px solid #3a3b3c;border-radius:12px;color:#b0b3b8}

/* Dark overrides for the most visible JR interfaces. */
body .jrchat-app,body .jrchat-shell,body .jrchat-sidebar,body .jrchat-main,body .jrchat-chat-header,body .jrchat-composer,body .jrchat-side-tabs button,body .jrchat-conv-row,body .jrchat-side-footer{background:#242526!important;border-color:#3a3b3c!important;color:#e4e6eb!important}
body .jrchat-messages{background:#18191a!important}body .jrchat-conv-row:hover,body .jrchat-conv-row.is-active,body .jrchat-icon-btn:hover,body .jrchat-header-btn:hover,body .jrchat-tool-btn:hover{background:#303031!important}
body .jrchat-search,body .jrchat-composer textarea{background:#3a3b3c!important;color:#e4e6eb!important;border-color:#4a4b4d!important}body .jrchat-search::placeholder,body .jrchat-composer textarea::placeholder{color:#b0b3b8!important}
body .jrchat-bubble{background:#3a3b3c!important;color:#e4e6eb!important}body .jrchat-message.is-mine .jrchat-bubble{background:#1769aa!important;color:#fff!important}body .jrchat-message-tools button,body .jrchat-reaction-chip,body .jrchat-file-card,body .jrchat-link-card,body .jrchat-settings-gear{background:#303031!important;color:#e4e6eb!important;border-color:#4b4c4f!important}
body .jrchat-modal,body .jrchat-popover{background:#242526!important;color:#e4e6eb!important;border-color:#3a3b3c!important}
body .jrchat-page--messenger .jrchat-app{height:clamp(680px,calc(100vh - 120px),1000px)!important;min-height:640px}
body .jrc-card,body .jrc-profile,body .jrc-account,body .jrg-card,body .jrg-group-card,body .jrfor-card,body .jraf-card,body .jraf-composer,body .jrn-page,body .jrsh main,body .jrsh aside,body .jrgs,body .jrsi{background:#242526!important;color:#e4e6eb!important;border-color:#3a3b3c!important}
body input,body textarea,body select{color-scheme:dark}body input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),body textarea,body select{background-color:#3a3b3c;color:#e4e6eb;border-color:#4b4c4f}

/* Mobile drawer and bottom navigation. */
.jrpt-mobile-nav,.jrpt-mobile-drawer,.jrpt-mobile-scrim{display:none}.jrpt-mobile-nav button,.jrpt-mobile-nav a{appearance:none;border:0;background:transparent;color:#d3d5d8;text-decoration:none;font:inherit;cursor:pointer}
body.jrpt-menu-open{overflow:hidden}

/* Large and medium screens */
@media(min-width:1800px){.jrpt-main{grid-template-columns:minmax(250px,310px) minmax(0,1fr) minmax(300px,370px);gap:30px}.jrpt-content>article>h1{font-size:36px}}
@media(max-width:1250px){.jrpt-main{width:calc(100% - 28px);grid-template-columns:220px minmax(0,1fr);gap:18px}.jrpt-right{display:none}}
@media(max-width:940px){.jrpt-main{width:calc(100% - 20px);grid-template-columns:190px minmax(0,1fr);gap:12px}.jrpt-left a{gap:9px;padding-left:8px;padding-right:8px}.jrpt-left a b{width:28px;height:28px}.jrpt-left a span{font-size:13px}}

/* Tablet/mobile */
@media(max-width:760px){
 body{padding-bottom:calc(var(--jr-mobile-nav-h) + env(safe-area-inset-bottom))}.jrpt-main{display:block;width:100%;padding:10px 10px 18px}.jrpt-left,.jrpt-right{display:none}.jrpt-content{width:100%;max-width:none}.jrpt-content>article>h1{font-size:25px;margin:5px 4px 13px}
 body .jrchat-page--messenger .jrchat-app{height:calc(100dvh - var(--jr-header-h) - var(--jr-mobile-nav-h) - 24px)!important;min-height:520px!important;border-radius:10px!important}
 body .jrchat-shell{grid-template-columns:1fr!important}body .jrchat-sidebar{width:100%!important}.jrchat-message-wrap{max-width:86%!important}
 .jrpt-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:0;right:0;bottom:0;height:calc(var(--jr-mobile-nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(36,37,38,.98);border-top:1px solid #3a3b3c;z-index:99970;box-shadow:0 -2px 10px rgba(0,0,0,.3);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 .jrpt-mobile-nav a,.jrpt-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;font-weight:650}.jrpt-mobile-nav b{font-size:20px;line-height:1.1}.jrpt-mobile-nav .is-active{color:var(--jr-blue)}
 .jrpt-mobile-scrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:99978;opacity:0;visibility:hidden;transition:.18s}.jrpt-mobile-drawer{display:block;position:fixed;top:0;bottom:0;right:0;width:min(88vw,380px);z-index:99979;background:#242526;border-left:1px solid #3a3b3c;transform:translateX(105%);transition:transform .2s ease;overflow:auto;padding:calc(18px + var(--jr-admin-offset,0)) 12px calc(80px + env(safe-area-inset-bottom))}.jrpt-mobile-drawer header{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 14px}.jrpt-mobile-drawer header strong{font-size:20px}.jrpt-mobile-drawer header button{border:0;background:#3a3b3c;color:#fff;border-radius:50%;width:36px;height:36px;font-size:21px}.jrpt-mobile-drawer nav a{display:flex;align-items:center;gap:12px;padding:12px 10px;border-radius:9px;text-decoration:none;font-weight:650}.jrpt-mobile-drawer nav a:hover{background:#303031}.jrpt-mobile-drawer nav b{width:31px;text-align:center;font-size:18px}
 body.jrpt-menu-open .jrpt-mobile-scrim{opacity:1;visibility:visible}body.jrpt-menu-open .jrpt-mobile-drawer{transform:translateX(0)}
}
@media(max-width:480px){body .jrmh-search{display:none!important}body .jrmh-inner{grid-template-columns:1fr auto!important}.jrpt-fallback-header{grid-template-columns:1fr}.jrpt-fallback-header form{display:none}.jrpt-main{padding-left:7px;padding-right:7px}.jrpt-content>article>h1{font-size:22px}.jrpt-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.jrpt-publication-body{padding:9px}.jr-platform-placeholder{min-height:280px;padding:25px 16px}}

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


/* Logged-out public landing: JR dark-mode sign-in home. */
body.jrpt-loggedout-home{background:#18191a!important;color:#e4e6eb!important;padding-bottom:0}
body.jrpt-loggedout-home .jrpt-shell{min-height:100vh;background:radial-gradient(circle at 24% 34%,rgba(226,35,47,.08),transparent 31%),radial-gradient(circle at 78% 72%,rgba(45,136,255,.045),transparent 30%),#18191a}
.jrpt-public-home{width:min(1180px,calc(100% - 40px));min-height:calc(100vh - 72px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,430px);gap:clamp(50px,8vw,120px);align-items:center;padding:80px 0 110px}
.jrpt-public-brand{align-self:center;padding-bottom:54px}.jrpt-public-brand h1{margin:0;color:#ff3341;font-size:clamp(50px,6vw,74px);line-height:.98;letter-spacing:-2.5px;font-weight:850;text-shadow:0 0 28px rgba(226,35,47,.12)}.jrpt-public-brand p{max-width:600px;margin:20px 0 0;color:#f0f2f5;font-size:clamp(25px,2.2vw,32px);line-height:1.18;font-weight:400}.jrpt-public-brand .jrpt-motto{display:block;margin-top:10px;font-size:clamp(19px,1.5vw,23px);font-weight:650;color:#b0b3b8;letter-spacing:.01em}
.jrpt-public-auth{width:100%}.jrpt-public-login-card{background:#242526;border:1px solid #3a3b3c;border-radius:12px;box-shadow:0 16px 48px rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.45);padding:18px}.jrpt-public-login-card .jrc-card,.jrpt-public-login-card .jrc-auth-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#e4e6eb!important}.jrpt-public-login-card .jrc-form{display:block}.jrpt-public-login-card .jrc-field{margin:0 0 12px}.jrpt-public-login-card .jrc-field label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.jrpt-public-login-card input:not([type=checkbox]):not([type=radio]):not([type=submit]),.jrpt-public-login-card #user_login,.jrpt-public-login-card #user_pass{width:100%!important;min-height:52px!important;background:#3a3b3c!important;color:#f0f2f5!important;border:1px solid #4b4c4f!important;border-radius:8px!important;padding:13px 15px!important;font-size:17px!important;outline:none!important;box-shadow:none!important}.jrpt-public-login-card input::placeholder{color:#aeb2b7!important}.jrpt-public-login-card input:focus{border-color:#e2232f!important;box-shadow:0 0 0 3px rgba(226,35,47,.16)!important}.jrpt-public-login-card .jrc-check,.jrpt-public-login-card .login-remember{display:flex;align-items:center;gap:7px;color:#b0b3b8;font-size:13px;margin:2px 0 11px}.jrpt-public-login-card .jrc-button--wide,.jrpt-public-login-card .jrc-button[type=submit],.jrpt-public-login-card #wp-submit{width:100%!important;min-height:49px!important;border:1px solid #f03a46!important;border-radius:8px!important;background:#e2232f!important;color:#fff!important;font-size:20px!important;font-weight:750!important;cursor:pointer!important;padding:10px 18px!important;box-shadow:0 4px 14px rgba(226,35,47,.18)!important}.jrpt-public-login-card .jrc-button--wide:hover,.jrpt-public-login-card #wp-submit:hover{background:#f02f3c!important}.jrpt-public-login-card .jrc-auth-links{display:block!important;text-align:center!important;margin-top:14px!important}.jrpt-public-login-card .jrc-auth-links a{display:block;color:#67a7ff!important;text-decoration:none!important;font-size:14px!important}.jrpt-public-login-card .jrc-auth-links a:last-child{display:none!important}.jrpt-public-login-card .login-username label,.jrpt-public-login-card .login-password label{display:block;color:#b0b3b8;font-size:13px;margin-bottom:5px}.jrpt-public-login-card .login-submit{margin:12px 0 0}.jrpt-public-login-card .login-remember{margin:8px 0}.jrpt-public-forgot{display:block;text-align:center;color:#67a7ff!important;text-decoration:none!important;font-size:14px;margin:14px 0 16px}.jrpt-public-forgot:hover{text-decoration:underline!important}.jrpt-public-divider{height:1px;background:#3a3b3c;margin:18px 0}.jrpt-public-create-wrap{text-align:center}.jrpt-public-create{display:inline-flex;min-height:48px;align-items:center;justify-content:center;padding:0 22px;border:1px solid #50c13a;border-radius:8px;background:#42b72a;color:#fff!important;text-decoration:none!important;font-size:17px;font-weight:750;box-shadow:0 4px 14px rgba(66,183,42,.13)}.jrpt-public-create:hover{background:#4ac832}.jrpt-public-caption{text-align:center;color:#b0b3b8;font-size:14px;margin:26px 10px 0}.jrpt-public-caption strong{font-weight:700;color:#e4e6eb}.jrpt-public-footer{position:absolute;left:0;right:0;bottom:0;color:#8f9297;text-align:center;font-size:12px;padding:18px;border-top:1px solid rgba(58,59,60,.35)}
@media(max-width:900px){.jrpt-public-home{grid-template-columns:1fr;gap:26px;min-height:auto;padding:54px 0 90px;max-width:520px;text-align:center}.jrpt-public-brand{padding-bottom:0}.jrpt-public-brand p{margin-left:auto;margin-right:auto}.jrpt-public-brand h1{font-size:52px}.jrpt-public-auth{text-align:left}}
@media(max-width:560px){body.jrpt-loggedout-home .jrpt-shell{min-height:100dvh}.jrpt-public-home{width:calc(100% - 28px);padding:34px 0 74px;gap:22px}.jrpt-public-brand h1{font-size:42px;letter-spacing:-1.5px}.jrpt-public-brand p{font-size:22px}.jrpt-public-brand .jrpt-motto{font-size:17px}.jrpt-public-login-card{padding:14px;border-radius:10px}.jrpt-public-footer{position:static;padding:0 14px 18px;border-top:0}}

.jrpt-public-login-form{display:grid;gap:12px}.jrpt-public-login-form>input:not([type=checkbox]){width:100%;min-height:52px;background:#3a3b3c!important;color:#f0f2f5!important;border:1px solid #4b4c4f!important;border-radius:8px;padding:13px 15px;font-size:17px;outline:none;box-shadow:none}.jrpt-public-login-form>input:not([type=checkbox])::placeholder{color:#aeb2b7!important}.jrpt-public-login-form>input:not([type=checkbox]):focus{border-color:#e2232f!important;box-shadow:0 0 0 3px rgba(226,35,47,.16)!important}.jrpt-public-remember{display:flex;align-items:center;gap:7px;color:#b0b3b8;font-size:13px;margin-top:-2px}.jrpt-public-login-button{width:100%;min-height:49px;border:1px solid #f03a46;border-radius:8px;background:#e2232f;color:#fff;font-size:20px;font-weight:750;cursor:pointer;padding:10px 18px;box-shadow:0 4px 14px rgba(226,35,47,.18)}.jrpt-public-login-button:hover{background:#f02f3c}.jrpt-public-login-card .jrc-auth-links{display:none!important}

body.jrpt-member .jrpdf-catalog__hero,body.jrpt-member .jrpdf-catalog-card,body.jrpt-member .jrpdf-catalog__tabs{border-color:#45474b}
body.jrpt-member .jrpdf-catalog__hero{background:linear-gradient(135deg,#25272a,#353941)}
@media(min-width:1600px){body.jrpt-member .jrpdf-catalog__grid{grid-template-columns:repeat(auto-fill,minmax(175px,1fr))}}

/* V1.1 Apple/iOS viewport and safe-area hardening. */
.jrpt-shell{min-height:100vh;min-height:100dvh}
body.jrpt-loggedout-home .jrpt-shell{min-height:100vh;min-height:100dvh}
.jrpt-public-home{min-height:calc(100vh - 72px);min-height:calc(100dvh - 72px)}
@media(max-width:760px){
 .jrpt-mobile-nav{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
 .jrpt-mobile-drawer{padding-top:calc(18px + var(--jr-admin-offset,0px) + env(safe-area-inset-top));padding-left:calc(12px + env(safe-area-inset-left));padding-right:calc(12px + env(safe-area-inset-right))}
 .jrpt-edge-handle{left:env(safe-area-inset-left)}
 body .jrmh-inner{padding-left:calc(14px + env(safe-area-inset-left));padding-right:calc(14px + env(safe-area-inset-right))}
}

/* V1.3 dedicated Messenger / Chat Rooms application pages. */
body .jrmh-actions .jrmh-chat-button{background:#3a3b3c!important;color:#e4e6eb!important}
body .jrmh-actions .jrmh-chat-button:hover,body .jrmh-actions .jrmh-chat-button:focus-visible{background:#4a4b4d!important;color:#72b4ff!important}
body .jrmh-actions .jrmh-chat-button b{border-color:#242526!important}
body.jrpt-chat-app{padding-bottom:0!important;overflow:hidden}
body.jrpt-chat-app .jrpt-main.jrpt-main--chat{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.jrpt-chat-app .jrpt-main--chat .jrpt-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
body.jrpt-chat-app .jrpt-main--chat .jrpt-content>article{height:calc(100dvh - var(--jr-header-h) - var(--jr-admin-offset,0px));min-height:560px;margin:0!important;padding:0!important;overflow:hidden}
body.jrpt-chat-app .jrchat-page{height:100%!important;min-height:0!important;margin:0!important;padding:0!important}
body.jrpt-chat-app .jrchat-page>.jrchat-app{height:100%!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.jrpt-chat-app .jrchat-shell,body.jrpt-chat-app .jrchat-room-shell,body.jrpt-chat-app .jrchat-room-chat{height:100%!important;min-height:0!important}
body.jrpt-chat-app .jrchat-room-directory{height:100%!important;min-height:0!important}
body.jrpt-chat-app .jrchat-room-chat{grid-template-columns:minmax(0,1fr) minmax(220px,270px)}
body.jrpt-chat-app .jrchat-sidebar{width:auto}
body.jrpt-chat-app #jrchat-global-dock{display:none!important}

@media(max-width:780px){
 body.jrpt-chat-app{padding-bottom:0!important;overflow:hidden!important}
 body.jrpt-chat-app .jrmh-search{display:none!important}
 body.jrpt-chat-app .jrmh-inner{grid-template-columns:1fr auto!important;gap:8px!important}
 body.jrpt-chat-app .jrpt-mobile-nav{display:none!important}
 body.jrpt-chat-app .jrpt-main--chat .jrpt-content>article{height:calc(100dvh - var(--jr-header-h) - var(--jr-admin-offset,0px));min-height:0}
 body.jrpt-chat-app .jrchat-page>.jrchat-app{border-radius:0!important}
 body.jrpt-chat-app .jrchat-room-chat{grid-template-columns:minmax(0,1fr)}
 body.jrpt-chat-app .jrpt-edge-handle{top:calc(var(--jr-header-h) + 14px);bottom:auto}
}


/* V1.4 canonical line-icon sizing. */
.jrpt-icon{display:block;width:20px;height:20px}.jrpt-left a b{font-size:0}.jrpt-left a b .jrpt-icon{width:18px;height:18px}.jrpt-fallback-menu{display:none}

/* V1.7 base dark fallbacks for public utility/plugin surfaces that can render before member-only polish. */
body .jrmh-menu-button{background:#3a3b3c!important;color:#e4e6eb!important}
body .jrmh-menu-button:hover,body .jrmh-menu-button:focus-visible{background:#45474b!important;color:#fff!important}
body .jrv-card{background:#242526!important;color:#e4e6eb!important;border-color:#3a3b3c!important}
body .jrv-card h1,body .jrv-form label{color:#f5f6f7!important}
body .jrv-lead,body .jrv-help{color:#b0b3b8!important}
body .jrv-form input{background:#3a3b3c!important;color:#e4e6eb!important;border-color:#4b4c4f!important;color-scheme:dark}
body .jrv-icon{background:#44272b!important;color:#ff9aa3!important}
