/* Gold accents matched to the original J.W. Messenger wordmark. */
:root{--fm-bg:#f0eadc;--fm-bg-soft:#f8f6f0;--fm-surface-soft:#fffdf7;--fm-surface-blue:#f8f0d9;--fm-royal:#75520c;--fm-royal-deep:#3e2b0a;--fm-royal-soft:#846829;--fm-text:#352c20;--fm-muted:#70644e;--fm-line:#e8dfcc;--fm-line-strong:#d3bf91;--fm-gold:#d8ac30;--fm-gold-deep:#785007;--fm-accent:#b8871f;--fm-shadow:0 24px 70px #6e501c24;--fm-shadow-soft:0 10px 28px #6e501c16;--jw-gold-shine:linear-gradient(145deg,#fff4c7 0%,#f4d46a 18%,#c79425 43%,#ffe99b 49%,#d3a333 62%,#a87213 100%);--jw-gold-depth:inset 0 1px 0 #fff8df,inset 0 -2px 0 #86580755,0 5px 14px #78531e22}
.fm-button--primary,.primary-button,.button,.send-button,.voice-play,.shield-mark,.chat-filter.active{background:var(--jw-gold-shine);color:#352508;border-color:#c59b3c;box-shadow:var(--jw-gold-depth);text-shadow:0 1px 0 #fff3cb80}
.fm-button--primary:hover,.primary-button:hover,.button:hover{box-shadow:var(--jw-gold-depth);filter:brightness(1.04)}
.icon-button,.composer .icon-button{color:#8c6412;background:linear-gradient(145deg,#fffdf6,#f4e7bd);box-shadow:inset 0 0 0 1px #dec993,inset 0 1px 0 #fff}
.icon-button:hover,.rail-button:hover{background:#f6e6b8;color:#5e4008}
.secondary-button,.fm-button--secondary{background:linear-gradient(180deg,#fffefb,#f7efd8);color:#694b0e;border-color:#ddca9e;box-shadow:0 4px 12px #6e501c0c}
.rail-image-icon,.mobile-new-chat-button .rail-image-icon,.menu-item-icon .rail-image-icon{filter:sepia(1) saturate(2.7) hue-rotate(355deg) brightness(1.12) drop-shadow(0 3px 5px #76501330)}
.rail-image-button:hover .rail-image-icon{filter:sepia(1) saturate(2.7) hue-rotate(355deg) brightness(1.2) drop-shadow(0 4px 7px #76501338)}
.app-rail{background:linear-gradient(180deg,#fffefa,#f5efdf)}
.settings-tabs,.admin-tabs{background:#f4eedf;border-color:#e2d3ae}
.settings-tabs [role="tab"],.admin-tabs button{color:#79612d}
.settings-tabs [aria-selected="true"],.admin-tabs button[aria-selected=true]{color:#4c350b;background:linear-gradient(145deg,#fffaf0,#f5e4ae);box-shadow:inset 0 1px 0 #fff,0 2px 7px #79551a16}
.settings-toggle>input:checked+.settings-toggle-control{background:var(--jw-gold-shine)}
input[type="checkbox"],input[type="radio"],input[type="range"]{accent-color:#91640e}
:is(button,a,input,textarea,select,[role="tab"]):focus-visible{outline:3px solid #91640e;outline-offset:3px}
.call-controls .call-control:not(.off):not(.call-action-danger),.group-call-controls .call-control:not(.off):not(.call-action-danger){color:#ffe8a0;background:linear-gradient(180deg,#554324,#302717);border-color:#ad864b}
.group-call-controls .call-control.active{color:#392706;background:var(--jw-gold-shine);border-color:#f3d26e}
.admin-account-actions .vault-request-pending{background:#b42332;color:#fff;border-color:#b42332}
.admin-account-actions .vault-request-pending:hover{background:#8e1925;color:#fff}
@media(prefers-reduced-motion:reduce){button{transition:none}}
/* Highlight the complete search control, not the text input inside it. */
.chat-search:focus-within{background:#fffdf7;border-color:#b59140;box-shadow:none}
.chat-search input:focus,.chat-search input:focus-visible{outline:none;outline-offset:0;border:0;background:transparent;box-shadow:none!important}
.help-gold-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--jw-gold-shine);border:1px solid #ae7d19;color:#493008;font:bold 30px/1 Georgia,serif;box-shadow:var(--jw-gold-depth);text-shadow:0 1px 0 #fff6cb}
.help-rail-button{width:54px;height:54px;flex:0 0 54px;background:transparent}
.help-rail-button:hover .help-gold-symbol{filter:brightness(1.08)}
.menu-item-icon .help-gold-symbol{width:32px;height:32px;border-radius:10px;font-size:24px}
.help-dialog{width:min(850px,calc(100vw - 24px))}
.help-dialog>section{min-width:0}
.help-dialog h2{margin:4px 0 0}
.help-intro{color:var(--fm-muted);line-height:1.6}
.help-topics{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 26px}
.help-topics a{display:flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid #ddca9e;border-radius:12px;background:linear-gradient(180deg,#fffdf5,#f5e9c4);color:#654810;text-decoration:none;font-weight:750;font-size:13px}
.help-topic{scroll-margin-top:20px;margin:24px 0}
.help-topic h3{margin:0 0 12px;font-size:18px;color:var(--fm-royal-deep)}
.help-question{margin:9px 0;border:1px solid var(--fm-line);border-radius:14px;background:#fffdf8;overflow:hidden}
.help-question summary{padding:15px 17px;color:#4f3b17;font-weight:750;cursor:pointer;line-height:1.5;overflow-wrap:anywhere}
.help-question[open] summary{background:#f7efd9;border-bottom:1px solid var(--fm-line)}
.help-question p{margin:0;padding:16px 17px;color:var(--fm-text);line-height:1.75;overflow-wrap:anywhere}
.help-question summary:focus-visible{outline:3px solid #91640e;outline-offset:-4px;border-radius:12px}
.help-footer{padding:18px;border:1px solid #dfcd9f;border-radius:16px;background:#faf2dd;line-height:1.65}
.help-footer p{margin:7px 0 0}
.help-open-button{margin:0 0 14px}
.help-search-label{display:grid;gap:8px;margin:20px 0 0;color:#634b1f;font-weight:700;font-size:13px}
.help-question ol{margin:0;padding:16px 20px 16px 38px;line-height:1.75}
.help-question li+li{margin-top:8px}
.help-topic[hidden],.help-question[hidden],.help-topics[hidden]{display:none!important}
@media(max-width:480px){.help-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.help-topics a{font-size:12px}.help-question summary,.help-question p{padding:13px 14px}}
