/* Wiantex Studio R5. Shared surfaces use the current theme's tokens. */
:root{--wtx-ease:cubic-bezier(.2,.8,.2,1);--wtx-motion:180ms}
body.wtx-pro-ui [hidden]{display:none!important}
body.wtx-pro-ui .sidebar{overflow-x:hidden!important}
body.wtx-pro-ui .sidebar-brand{display:flex;align-items:center;justify-content:center;gap:10px!important;padding:18px!important;min-height:84px}
body.wtx-pro-ui .sidebar-brand-logo{width:48px!important;height:48px!important;max-height:48px!important;object-fit:contain}
.wtx-brand-wordmark{font-family:var(--font-display);font-weight:700;font-size:22px;letter-spacing:-.8px;color:var(--text-0)}
.wtx-brand-wordmark>span,.wtx-brand-domain{color:var(--purple-soft);font-size:.72em;letter-spacing:0}
.wtx-mobile-brand{display:none;flex-shrink:0}
.wtx-mobile-brand img{display:block;object-fit:contain}
body.wtx-pro-ui .navbar .icon-btn,body.wtx-pro-ui .profile-trigger{background:var(--panel-0)!important;border:1px solid var(--border)!important;border-radius:12px!important;box-shadow:none!important}
body.wtx-pro-ui .profile-trigger{min-height:44px;padding:4px 8px!important}
body.wtx-pro-ui .profile-dropdown{width:268px;padding:8px!important;background:var(--panel-0)!important;border:1px solid var(--border)!important;border-radius:14px!important;box-shadow:0 16px 48px #0005!important;backdrop-filter:none!important;transform:translateY(-6px) scale(.98);transition:opacity var(--wtx-motion) var(--wtx-ease),transform var(--wtx-motion) var(--wtx-ease),visibility var(--wtx-motion)}
body.wtx-pro-ui .profile-menu.open .profile-dropdown{transform:translateY(0) scale(1)}
body.wtx-pro-ui .profile-dropdown a{min-height:44px;padding:10px 12px;border:0!important;border-radius:8px;gap:10px;color:var(--text-1);font-weight:500;transform:none!important;background:none}
body.wtx-pro-ui .profile-dropdown a:hover,body.wtx-pro-ui .profile-dropdown a:focus-visible{background:var(--panel-1)!important;color:var(--text-0)}
body.wtx-pro-ui .profile-dropdown .profile-logout{color:#ef858f}
body.wtx-pro-ui .profile-dropdown .profile-logout:hover{background:color-mix(in srgb,#ed6575 12%,var(--panel-0))!important;color:#ed6575}
.wtx-profile-menu-label{padding:7px 12px;color:var(--text-2);font-size:10px;letter-spacing:1.4px;font-weight:700}
.wtx-menu-divider{height:1px;background:var(--border);margin:7px 5px}
.wtx-count-pill{display:inline-flex;justify-content:center;align-items:center;min-width:24px;min-height:24px;padding:2px 7px;border-radius:7px;background:color-mix(in srgb,var(--purple) 15%,var(--panel-0));color:var(--purple-soft);font-size:12px;font-weight:600}
body.wtx-pro-ui .hero.wtx-home-hero{padding:0!important;overflow:hidden}
.wtx-brand-banner{width:100%;background:#101115;overflow:hidden;border-bottom:1px solid var(--border)}
.wtx-brand-banner img{display:block;width:100%;height:auto;max-height:300px;object-fit:cover;object-position:center}
.wtx-hero-copy{padding:24px 24px 14px;text-align:center}
body.wtx-pro-ui .wtx-home-hero h1{font-size:clamp(24px,3vw,34px)!important;line-height:1.3;letter-spacing:-.8px;margin:0 0 8px!important;overflow-wrap:anywhere}
body.wtx-pro-ui .wtx-home-hero p{max-width:620px;margin:0 auto!important;line-height:1.6}
body.wtx-pro-ui .wtx-home-hero .hero-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 22px 22px!important;gap:10px!important;margin:0!important;border:0!important}
body.wtx-pro-ui .wtx-home-hero .hero-stat{display:flex!important;flex-direction:column;align-items:center!important;justify-content:center!important;text-align:center!important;border:1px solid var(--border)!important;border-radius:10px!important;padding:14px 8px!important;min-width:0;background:var(--bg-0)!important;gap:1px}
body.wtx-pro-ui .hero-stat strong{font-size:25px!important;line-height:1.3}
body.wtx-pro-ui .hero-stat span{font-size:12px!important;text-align:center!important;display:block;width:100%}
.wtx-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;margin-bottom:18px;border:1px solid var(--border);border-radius:14px;background:var(--panel-0);min-width:0}
.wtx-page-heading h1{display:flex;align-items:center;gap:10px;font-size:clamp(25px,3vw,32px);line-height:1.25;margin:7px 0 8px;letter-spacing:-.8px}
.wtx-page-heading p{font-size:13px;color:var(--text-2);margin:0;line-height:1.6}
.wtx-page-heading form{margin:0;flex-shrink:0}
body.wtx-pro-ui .forum-surface{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
body.wtx-pro-ui .forum-toolbar{padding:24px!important;margin:0 0 16px!important;align-items:center!important}
.wtx-category-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin;max-width:100%;margin-bottom:4px}
.wtx-category-chips a{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 13px;background:var(--panel-0);border:1px solid var(--border);border-radius:9px;color:var(--text-2);font-size:12px;text-decoration:none}
.wtx-category-chips a[aria-current],.wtx-category-chips a:hover{background:color-mix(in srgb,var(--purple) 12%,var(--panel-0));color:var(--purple-soft);border-color:color-mix(in srgb,var(--purple) 35%,var(--border))}
.wtx-category-chips span{font-size:10px;opacity:.7}
.wtx-forum-search{display:flex;gap:12px;align-items:center;padding:8px 10px 8px 14px;border:1px solid var(--border);background:var(--panel-0);border-radius:10px;margin:0 0 20px;color:var(--text-2)}
.wtx-forum-search input{background:none;border:0;color:var(--text-0);font:inherit;min-width:0;width:100%;padding:8px 0;outline-offset:4px}
.wtx-list-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--text-2);margin:0 2px 12px}
.wtx-list-heading strong{color:var(--text-1);font-weight:500}
body.wtx-pro-ui .forum-page .topic-list{gap:10px}
body.wtx-pro-ui .topic-card{padding:18px!important;gap:14px!important}
body.wtx-pro-ui .topic-icon{width:42px!important;height:42px!important;flex:0 0 42px!important;border-radius:12px!important}
body.wtx-pro-ui .topic-title{font-size:14px!important;line-height:1.5;min-width:0}
body.wtx-pro-ui .topic-meta{font-size:11px!important;line-height:1.6;gap:6px!important;flex-wrap:wrap}
body.wtx-pro-ui .topic-title>.text{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}
body.wtx-pro-ui .topic-stat{text-align:center}
body.wtx-pro-ui .wtx-site-footer{display:grid!important;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);gap:40px;padding:32px!important;align-items:start}
body.wtx-pro-ui .wtx-footer-brand{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:start}
body.wtx-pro-ui .wtx-footer-mark{display:grid;place-items:center;width:52px;height:52px;background:var(--panel-0)!important;border:1px solid var(--border);border-radius:12px!important;box-shadow:none!important}
.wtx-footer-mark img{width:100%;height:100%;object-fit:contain}
body.wtx-pro-ui .wtx-footer-brand strong{font-size:19px}
body.wtx-pro-ui .wtx-footer-brand p{font-size:12px;line-height:1.7;margin:5px 0 12px;max-width:370px}
body.wtx-pro-ui .wtx-footer-copy{font-size:10px;line-height:1.7}
body.wtx-pro-ui .wtx-footer-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.wtx-pro-ui .wtx-footer-group>b{font-size:11px;letter-spacing:1px}
body.wtx-pro-ui .wtx-footer-links{display:flex;flex-direction:column;gap:2px;margin-top:9px}
body.wtx-pro-ui .wtx-footer-links a{font-size:11px;line-height:1.5;min-height:34px;display:flex;align-items:center;color:var(--text-2)}
body.wtx-pro-ui .wtx-footer-links a:hover{color:var(--purple-soft)}
/* Account screens */
body.wtx-pro-ui.wtx-auth-page .auth-shell{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(360px,440px);max-width:1060px;margin:0 auto;gap:0;padding:48px 24px!important;min-height:100dvh;align-items:center;background:none!important}
.wtx-auth-story{min-height:600px;display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;padding:32px 40px 32px 0;min-width:0}
.wtx-auth-story>div{padding:30px 0}
.wtx-auth-home{color:var(--text-2);font-size:12px;text-decoration:none;align-self:flex-start}
.wtx-auth-banner{width:100%;height:auto;border:1px solid var(--border);border-radius:14px;display:block;margin-bottom:38px}
.wtx-auth-story h2{font-size:clamp(28px,3vw,42px);line-height:1.2;letter-spacing:-1px;margin:16px 0}
.wtx-auth-story p{max-width:360px;color:var(--text-2);font-size:14px;line-height:1.8}
.wtx-auth-story>small{color:var(--text-2);font-size:11px}
.wtx-auth-features{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px;color:var(--purple-soft);font-size:11px}
.wtx-auth-features span{display:inline-flex;align-items:center;gap:6px}
body.wtx-pro-ui.wtx-auth-page .auth-card{width:100%!important;max-width:440px;box-sizing:border-box;padding:32px!important;background:var(--panel-0)!important;border:1px solid var(--border)!important;border-radius:16px!important;box-shadow:0 20px 70px #0002!important;animation:wtx-surface-enter .26s var(--wtx-ease)}
body.wtx-pro-ui .auth-site-brand{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-decoration:none;margin-bottom:22px!important}
body.wtx-pro-ui .auth-site-logo{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important;object-fit:contain}
body.wtx-pro-ui .auth-card h1{font-size:25px!important;line-height:1.3}
body.wtx-pro-ui .auth-card .sub{font-size:13px;line-height:1.6;margin-top:8px!important;margin-bottom:24px!important}
body.wtx-pro-ui .auth-card .field label{font-size:12px!important;letter-spacing:0}
body.wtx-pro-ui .auth-card .input{min-height:46px;font-size:14px}
body.wtx-pro-ui .auth-card .btn-primary{min-height:46px;justify-content:center}
.wtx-password-field{position:relative}
.wtx-password-field .input{width:100%;padding-right:60px!important;box-sizing:border-box}
.wtx-password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--text-2);font:inherit;font-size:10px;padding:8px;min-height:36px;cursor:pointer}
.wtx-password-toggle:hover{color:var(--text-0)}
.wtx-password-strength{display:flex;gap:4px;margin-top:9px;align-items:center}
.wtx-password-strength i{height:3px;flex:1;background:var(--border);border-radius:5px}
.wtx-password-strength i.filled{background:var(--purple)}
.wtx-password-strength span{font-size:10px;color:var(--text-2);min-width:62px;text-align:right}
body.wtx-pro-ui .social-auth-stack{display:grid;gap:8px}
body.wtx-pro-ui .social-auth-btn{color:var(--text-0)!important;transition:background var(--wtx-motion),border-color var(--wtx-motion)}
body.wtx-pro-ui .social-auth-btn:hover{background:var(--bg-0)!important;border-color:var(--purple)!important}
body.wtx-pro-ui .auth-switch{line-height:1.8;margin-top:16px}
body.wtx-pro-ui .auth-legal-mini{font-size:10px;display:flex;gap:8px;justify-content:center;margin-top:22px;color:var(--text-2)}
body.wtx-pro-ui .wtx-auth-wait{background:color-mix(in srgb,var(--bg-0) 94%,transparent)!important;backdrop-filter:blur(8px)}
body.wtx-pro-ui .wtx-auth-wait>div{max-width:380px;padding:36px!important;background:var(--panel-0)!important;border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 80px #0003}
.wtx-auth-status-logo{display:block;width:76px;height:60px;object-fit:contain;margin:0 auto 22px}
.wtx-status-spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--purple);border-radius:50%;margin:0 auto 22px;animation:wtx-status-spin .8s linear infinite}
body.wtx-pro-ui .wtx-auth-wait h2{font-size:22px;margin:12px 0;line-height:1.3}
body.wtx-pro-ui .wtx-auth-wait p{font-size:13px;line-height:1.7}
body.wtx-pro-ui .wtx-auth-wait .btn{margin-top:16px}
body.wtx-pro-ui .wtx-oauth-transition-card{background:var(--panel-0)!important;border:1px solid var(--border)!important;border-radius:18px!important;box-shadow:0 20px 80px #0003!important;animation:wtx-surface-enter .24s var(--wtx-ease)}
body.wtx-pro-ui .wtx-oauth-orbit-core{background:var(--panel-1)!important;box-shadow:none!important;border:1px solid var(--border)}
body.wtx-pro-ui .wtx-oauth-eyebrow{color:var(--purple-soft)}
/* Settings and previews */
.wtx-settings-tabs{display:flex;gap:6px;margin:0 0 22px;overflow-x:auto;padding:5px;background:var(--panel-0);border:1px solid var(--border);border-radius:12px;scrollbar-width:thin}
.wtx-settings-tabs a{padding:11px 16px;white-space:nowrap;color:var(--text-2);font-size:12px;border-radius:8px;text-decoration:none;flex:1;text-align:center}
.wtx-settings-tabs a[aria-current]{background:var(--panel-1);color:var(--purple-soft)}
body.wtx-pro-ui .profile-settings-layout{max-width:1140px;grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:24px}
body.wtx-pro-ui .profile-settings-hero{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0 24px!important;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
body.wtx-pro-ui .profile-settings-hero-copy{flex:1;min-width:180px}
body.wtx-pro-ui .profile-settings-hero h1{font-size:28px;line-height:1.3;margin:6px 0;letter-spacing:-.8px}
body.wtx-pro-ui .profile-settings-hero p{font-size:12px;line-height:1.7;color:var(--text-2)}
body.wtx-pro-ui .profile-settings-hero-icon{display:none}
body.wtx-pro-ui .profile-settings-layout [data-settings-panel]{padding:24px!important;scroll-margin-top:90px;animation:wtx-surface-enter .18s var(--wtx-ease)}
body.wtx-pro-ui .profile-settings-card-head{gap:12px;margin-bottom:20px}
body.wtx-pro-ui .profile-settings-card-head h3{font-size:16px}
body.wtx-pro-ui .profile-settings-card-head p{font-size:12px;line-height:1.7;color:var(--text-2)}
body.wtx-pro-ui .profile-settings-layout .input{font-size:14px;max-width:100%;box-sizing:border-box}
body.wtx-pro-ui .profile-upload-box{background:var(--bg-0);padding:16px;border-radius:10px;display:flex;flex-direction:column;gap:5px;align-items:flex-start}
body.wtx-pro-ui .profile-upload-box .btn{margin-top:8px}
body.wtx-pro-ui .profile-preview-card{top:86px;border-radius:14px!important;order:0}
body.wtx-pro-ui .profile-preview-banner{height:125px;background-color:var(--panel-1)}
body.wtx-pro-ui .profile-settings-save-row{padding-top:18px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
body.wtx-pro-ui .profile-settings-save-row>span{font-size:10px;color:var(--text-2)}
.wtx-file-selection{display:block;max-width:100%;font-size:10px;color:var(--purple-soft);overflow-wrap:anywhere;margin-top:7px}
/* Notifications */
.wtx-notification-center{max-width:1040px;margin:0 auto}
.wtx-notice-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px;flex-wrap:wrap}
.wtx-segmented{display:flex;align-items:center;gap:4px;padding:4px;background:var(--panel-0);border:1px solid var(--border);border-radius:10px;max-width:100%}
.wtx-segmented>a,.wtx-segmented>button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 14px;border:0;background:transparent;color:var(--text-2);font:inherit;font-size:12px;border-radius:7px;text-decoration:none;cursor:pointer}
.wtx-segmented [aria-current],.wtx-segmented [aria-pressed=true]{color:var(--purple-soft);background:var(--panel-1)}
.wtx-segmented span{font-size:10px}
.wtx-notice-filter{display:flex;gap:8px;margin:0;min-width:0}
.wtx-notice-filter select{max-width:200px}
.wtx-notice-date{font-size:11px;font-weight:600;color:var(--text-2);padding:10px 2px 12px}
.wtx-notice-item{margin:0 0 7px;border:1px solid var(--border);border-radius:12px;background:var(--panel-0);overflow:hidden}
.wtx-notice-item.is-unread{border-left:3px solid var(--purple);background:color-mix(in srgb,var(--purple) 5%,var(--panel-0))}
.wtx-notice-open{width:100%;display:flex;align-items:center;gap:16px;background:none;border:0;padding:19px;text-align:left;color:var(--text-1);font:inherit;cursor:pointer}
.wtx-notice-open:hover{background:var(--panel-1)}
.wtx-notice-avatar{position:relative;display:inline-flex;flex:0 0 40px;align-items:center;justify-content:center;width:40px;height:40px}
.wtx-notice-avatar>img{object-fit:contain}
.wtx-notice-avatar>i{position:absolute;right:-6px;bottom:-4px;display:grid;place-items:center;width:23px;height:23px;border-radius:7px;background:var(--panel-1);color:var(--purple-soft);border:2px solid var(--panel-0)}
.wtx-notice-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.wtx-notice-copy strong{color:var(--text-0);font-weight:600}
.wtx-notice-copy small{font-size:12px;color:var(--text-2)}
.wtx-notice-copy time{font-size:10px;color:var(--text-2)}
.wtx-unread-dot{width:7px;height:7px;flex:0 0 7px;background:var(--purple);border-radius:50%}
.wtx-centered-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:64px 24px!important;min-width:0}
.wtx-empty-symbol{width:72px;height:72px;border-radius:22px;background:color-mix(in srgb,var(--purple) 13%,var(--panel-0));color:var(--purple-soft);display:grid;place-items:center;margin-bottom:8px}
.wtx-centered-empty h2{font-size:22px;margin:0;line-height:1.3}
.wtx-centered-empty p{color:var(--text-2);font-size:13px;max-width:350px;margin:0 0 8px;line-height:1.7}
/* Inbox; existing WiaNova, call and attachment hooks remain shared. */
body.wtx-pro-ui .messages-shell{grid-template-columns:300px minmax(0,1fr);height:clamp(480px,calc(100dvh - 235px),820px);border-radius:14px!important;min-width:0}
body.wtx-pro-ui .conv-list{padding:10px;background:var(--bg-1);overscroll-behavior:contain}
.wtx-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 8px 10px;font-size:14px}
.wtx-inbox-head .icon-btn{width:32px;height:32px;background:var(--panel-0);border:1px solid var(--border);border-radius:9px}
.wtx-conversation-search{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--border);background:var(--bg-0);border-radius:9px;color:var(--text-2);margin:0 0 12px}
.wtx-conversation-search input{width:100%;min-width:0;background:transparent;border:0;color:var(--text-0);font:inherit;font-size:12px}
.wtx-inbox-filters{margin-bottom:14px;background:var(--bg-0)}
.wtx-inbox-filters>button{flex:1;font-size:11px;min-height:34px;padding:6px 10px}
.wtx-inbox-no-match{color:var(--text-2);padding:20px 12px;font-size:12px;text-align:center}
body.wtx-pro-ui .conv-list-label{font-size:10px;letter-spacing:1px;text-transform:uppercase;padding:3px 10px 10px;color:var(--text-2)}
body.wtx-pro-ui .conv-list-item{padding:13px 10px;border-radius:10px;border:1px solid transparent;gap:12px;margin-bottom:4px;background:transparent}
body.wtx-pro-ui .conv-list-item:hover{background:var(--panel-0)}
body.wtx-pro-ui .conv-list-item.active{background:var(--panel-1);border-color:var(--border);box-shadow:none}
body.wtx-pro-ui .conv-username{font-size:13px;font-weight:600;color:var(--text-0)}
body.wtx-pro-ui .conv-preview{font-size:11px;color:var(--text-2);padding-top:4px}
body.wtx-pro-ui .conv-time{font-size:9px;color:var(--text-2)}
body.wtx-pro-ui .conv-unread-badge{background:var(--purple);color:white;min-width:19px;height:19px;font-size:10px}
body.wtx-pro-ui .conv-chat{background-color:var(--panel-0);min-width:0;min-height:0}
body.wtx-pro-ui .conv-chat-header{background:var(--panel-0);border-bottom:1px solid var(--border);min-height:70px;padding:14px 18px;gap:12px;flex-shrink:0;box-sizing:border-box}
body.wtx-pro-ui .conv-chat-body{padding:22px;overscroll-behavior:contain;scrollbar-width:thin;min-height:0;overflow-x:hidden}
body.wtx-pro-ui .conv-chat:not([style*="background-image"]) .msg-bubble{border:1px solid var(--border);box-shadow:none;border-radius:12px!important}
body.wtx-pro-ui .msg-bubble{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
body.wtx-pro-ui .msg-row{animation:wtx-message-enter .14s var(--wtx-ease)}
body.wtx-pro-ui .msg-time{font-size:10px;color:var(--text-2)}
body.wtx-pro-ui .msg-day-divider{background:none;border:0;color:var(--text-2);font-size:10px;display:flex;align-items:center;gap:14px}
body.wtx-pro-ui .msg-day-divider:before,body.wtx-pro-ui .msg-day-divider:after{content:"";height:1px;background:var(--border);flex:1}
body.wtx-pro-ui .conv-chat-input{padding:12px 16px 16px;background:var(--panel-0);border-top:1px solid var(--border);flex-shrink:0}
body.wtx-pro-ui .msg-composer-wrap{background:var(--bg-0);border:1px solid var(--border);border-radius:12px;min-width:0}
body.wtx-pro-ui .msg-composer{background:transparent!important;color:var(--text-0);font-size:14px;line-height:1.6;min-height:42px;max-height:160px}
body.wtx-pro-ui .msg-send{border-radius:11px;background:var(--purple)!important}
body.wtx-pro-ui .msg-voice,body.wtx-pro-ui .msg-attach{background:var(--panel-1);border-color:var(--border);color:var(--text-2)}
body.wtx-pro-ui .wtx-inbox-welcome{margin:auto;min-height:350px}
@keyframes wtx-surface-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@keyframes wtx-message-enter{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}
@keyframes wtx-status-spin{to{transform:rotate(360deg)}}
@media(min-width:901px){body.wtx-pro-ui .chat-section-head{padding:20px 24px}body.wtx-pro-ui .chat-section-head h1{font-size:26px}}
@media(max-width:1100px){body.wtx-pro-ui .wtx-site-footer{grid-template-columns:1fr;gap:25px}.wtx-page-heading{padding:20px}body.wtx-pro-ui .messages-shell{grid-template-columns:265px minmax(0,1fr)}}
@media(max-width:900px){
 .wtx-mobile-brand{display:inline-flex;margin-left:2px;margin-right:auto}
 body.wtx-pro-ui .navbar{gap:8px!important;padding:10px 12px!important;min-height:64px!important}
 body.wtx-pro-ui .navbar-actions{gap:6px!important}
 body.wtx-pro-ui .navbar-woin{padding:8px!important;min-height:40px!important}
 body.wtx-pro-ui .navbar-actions>.btn{min-height:40px!important;padding:8px 10px!important;font-size:11px!important}
 body.wtx-pro-ui .wtx-site-footer{padding:26px 20px calc(28px + env(safe-area-inset-bottom))!important;margin-bottom:16px}
 body.wtx-pro-ui .wtx-footer-brand p{max-width:none}
 body.wtx-pro-ui .wtx-footer-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 body.wtx-pro-ui .wtx-footer-group:last-child{grid-column:1/-1}
 body.wtx-pro-ui .wtx-footer-group:last-child .wtx-footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.wtx-pro-ui .wtx-footer-links a{min-height:38px;font-size:11px}
 body.wtx-pro-ui .bottom-nav{padding-bottom:env(safe-area-inset-bottom);background:var(--bg-0)!important;box-shadow:none;border-top:1px solid var(--border)}
 body.wtx-pro-ui .bottom-nav .fab{width:44px;height:44px;border-radius:14px!important;border:1px solid var(--border)!important;box-shadow:none!important;transform:translateY(-4px)!important;background:var(--purple)!important}
 body.wtx-pro-ui .bottom-nav a{font-size:9px!important;gap:4px}
 body.wtx-pro-ui .profile-settings-layout{grid-template-columns:minmax(0,1fr)}
 body.wtx-pro-ui .profile-preview-card{position:relative;top:auto;order:0;max-width:none}
 body.wtx-pro-ui.wtx-auth-page .auth-shell{grid-template-columns:minmax(0,1fr) minmax(330px,410px);padding:30px 20px!important}
 .wtx-auth-story{padding:20px 26px 20px 0}
 body.wtx-pro-ui .chat-list .chat-section-head,body.wtx-pro-ui.chat-list .chat-section-head{display:flex}
 body.wtx-pro-ui.chat-list .messages-shell{height:auto;min-height:420px;grid-template-columns:minmax(0,1fr)}
 body.wtx-pro-ui.chat-open .messages-shell{grid-template-columns:minmax(0,1fr);height:100dvh;min-height:0!important;border-radius:0!important;border:0!important}
 body.wtx-pro-ui.chat-open .conv-chat{height:100%;max-height:100%;overflow:hidden;min-height:0}
 body.wtx-pro-ui.chat-open .conv-chat-body{padding:16px 12px!important;flex:1;overflow:auto;min-height:0}
 body.wtx-pro-ui.chat-open .conv-chat-input{position:relative!important;width:auto!important;inset:auto!important;padding:10px 12px calc(12px + env(safe-area-inset-bottom))!important;flex-shrink:0}
 body.wtx-pro-ui.chat-open .conv-chat-header{padding:calc(10px + env(safe-area-inset-top)) 12px 10px!important;min-height:64px;gap:9px;flex-wrap:wrap}
 body.wtx-pro-ui .conv-chat-header .dm-header-actions{gap:5px;flex-wrap:wrap;margin-left:auto}
 body.wtx-pro-ui .conv-chat-header .dm-mini-action span{display:none}
 body.wtx-pro-ui .conv-chat-header .wtx-call-label{display:none}
 body.wtx-pro-ui .conv-chat-header .wtx-call-header-btn{min-width:36px;min-height:36px;padding:8px}
 body.wtx-pro-ui.chat-open .msg-composer{font-size:16px!important}
}
@media(max-width:700px){
 body.wtx-pro-ui .forum-toolbar{padding:20px!important;align-items:flex-start!important;flex-direction:column;gap:16px}
 .wtx-page-heading{padding:20px;flex-direction:column;align-items:flex-start;gap:16px}
 .wtx-page-heading h1{font-size:26px}
 .wtx-page-heading>.btn,.wtx-page-heading>form{align-self:stretch}
 .wtx-page-heading>form .btn{width:100%;justify-content:center}
 body.wtx-pro-ui .forum-toolbar>.btn{width:100%;justify-content:center}
 body.wtx-pro-ui .topic-card{padding:16px!important;gap:12px!important}
 body.wtx-pro-ui .topic-title{font-size:13px!important;align-items:flex-start}
 body.wtx-pro-ui .topic-icon{width:36px!important;height:36px!important;flex-basis:36px!important;border-radius:10px!important}
 body.wtx-pro-ui .topic-time{font-size:10px!important;margin-top:6px}
 body.wtx-pro-ui .wtx-home-hero .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:6px 16px 16px!important;gap:8px!important}
 .wtx-hero-copy{padding:20px 18px 14px}
 body.wtx-pro-ui .wtx-home-hero p{font-size:12px;max-width:330px}
 body.wtx-pro-ui .wtx-home-hero .hero-stat{padding:12px 8px!important}
 .wtx-notice-toolbar{align-items:stretch}
 .wtx-notice-toolbar>.wtx-segmented{width:100%;box-sizing:border-box}
 .wtx-notice-toolbar>.wtx-segmented a{flex:1}
 .wtx-notice-filter{width:100%}
 .wtx-notice-filter select{flex:1;max-width:none;font-size:16px!important}
 .wtx-notice-open{padding:16px 12px;gap:12px}
 .wtx-notice-copy{font-size:12px}
 .wtx-notice-avatar{flex-basis:36px;width:36px;height:36px}
 .wtx-settings-tabs{position:sticky;top:64px;z-index:8;margin-bottom:18px}
 .wtx-settings-tabs a{padding:10px 13px;font-size:11px}
 body.wtx-pro-ui .profile-settings-layout [data-settings-panel]{padding:20px!important}
 body.wtx-pro-ui .profile-settings-layout .input{font-size:16px!important}
 body.wtx-pro-ui .profile-settings-save-row .btn{width:100%;justify-content:center}
 body.wtx-pro-ui .profile-settings-hero h1{font-size:25px}
 body.wtx-pro-ui.wtx-auth-page .auth-shell{display:flex!important;align-items:center;justify-content:center;min-height:100dvh;padding:24px 16px!important}
 .wtx-auth-story{display:none}
 body.wtx-pro-ui.wtx-auth-page .auth-card{padding:26px 22px!important;max-width:440px;width:100%!important}
 body.wtx-pro-ui .auth-card .input{font-size:16px!important}
 body.wtx-pro-ui .auth-site-brand{margin-bottom:20px!important}
 body.wtx-pro-ui .auth-card h1{font-size:24px!important}
 .wtx-forum-search input,.wtx-conversation-search input{font-size:16px}
 body.wtx-pro-ui .conv-list{padding:12px 8px}
}
@media(max-width:380px){.wtx-mobile-brand{display:none}.wtx-settings-tabs a{padding:10px 9px}.wtx-page-heading{padding:16px}body.wtx-pro-ui .wtx-site-footer{padding:22px 16px!important}body.wtx-pro-ui .profile-dropdown{width:260px}.wtx-notice-open>svg{display:none}}
@media(prefers-reduced-motion:reduce){body.wtx-pro-ui *,body.wtx-pro-ui *:before,body.wtx-pro-ui *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* R5.1: brand alignment and CAPTCHA sizing on narrow auth cards. */
body.wtx-pro-ui .auth-site-brand{justify-content:flex-start!important}
body.wtx-pro-ui .auth-site-logo{margin:0!important;flex:0 0 52px!important}
body.wtx-pro-ui.wtx-auth-page .wtx-captcha-wrap{display:block;transform:none!important;width:100%!important;min-height:0;overflow:visible}
body.wtx-pro-ui.wtx-auth-page .wtx-captcha-wrap .g-recaptcha{transform-origin:left top}
