/* Messenger: existing message transport and permission model retained. */
#appChatOpen::before,#crFab::before{content:'▤';display:inline-grid;place-items:center;width:24px;height:24px;border:1.5px solid currentColor;border-radius:8px 8px 8px 2px;margin-right:8px;font-size:15px}
#appChat.dm{width:min(760px,94vw);height:min(760px,88dvh);border:1px solid #e5dcd5;border-radius:22px;padding:20px;box-shadow:0 24px 90px #21191540;color:#352d29}
#appChat .chat-head{padding-bottom:14px;border-bottom:1px solid #e9e1da;gap:10px}#appChat .chat-head h3{font-size:20px;letter-spacing:-.5px;margin:0 auto 0 0}
.dm-directory-title{display:flex;align-items:center;justify-content:space-between;padding:16px 4px 4px}.dm-directory-title>b{font-size:17px}#dmPresenceSummary{font-size:12px;color:#70635b}
#dmWholeRoom{display:flex;align-items:center;justify-content:space-between;padding:15px;border:1px solid #ded4cb;border-radius:12px;background:#f4eee8;color:#4e3e32;font:inherit;font-weight:700;cursor:pointer}#dmWholeRoom span{font-size:12px;font-weight:400;color:#766a60}
#appChat #dmSearch{background:#f6f3f0;border:0;padding:13px 14px}#appChat .dm-person{padding:13px 8px;min-height:76px;border-color:#eee7e1;border-radius:12px;gap:12px}#appChat .dm-person:hover,#appChat .dm-person.on{background:#f5eee7}.dm-avatar{width:40px;height:40px;display:grid;place-items:center;background:#e9dfd5;border-radius:15px;color:#675143;font-size:17px;font-weight:700;flex:none}.dm-person b small{display:block;font-size:12px;font-weight:400;color:#82756b;margin-top:4px}.dm-person .dm-dot{width:7px;height:7px}.dm-person .dm-dot.live{background:#31976a}
#appChat #chatMessages{background:#f3efeb!important;border:0!important;border-radius:14px!important;padding:16px 12px!important;gap:10px!important}#appChat .chat-message.dm-msg{width:fit-content!important;max-width:82%!important;align-self:flex-start!important;border:0!important;border-radius:14px!important;padding:9px 13px!important;margin:0 0 6px!important;background:white!important;box-shadow:0 1px 2px #38251b0b}#appChat .chat-message.dm-msg.mine{align-self:flex-end!important;background:#ead8c5!important;border-radius:14px 4px 14px 14px!important}#appChat .dm-msg.mine header b{color:#704e33}#appChat .dm-msg header time{color:#82756b}#appChat .dm-current{padding:12px 0!important}#appChat #chatForm{gap:10px;padding-top:10px}#appChat #chatText{border:1px solid #ded4cb;border-radius:12px;padding:12px}#appChat #chatSend{background:#76543e;border-color:#76543e;color:#fff;border-radius:12px}#appChat #chatStatus{font-size:12px;color:#806e60;min-height:18px}
#crFab{background:#564236!important;border-radius:16px!important}#crPanel{background:#faf8f6!important}.cr-msg{width:fit-content;max-width:85%;margin:8px 12px;background:#fff;border:0!important;border-radius:14px;padding:10px 13px!important}.cr-msg.mine{margin-left:auto;background:#ead8c5!important}.cr-msg.mine header b{color:#704e33!important}.cr-head{background:#faf8f6}.cr-msg.failed{outline:1px solid #b3261e}
@media(max-width:900px){#appChat.dm{border-radius:0}#appChat .dm-nav{gap:0}#appChat .dm-current b{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#appChat #dmDay{padding:6px 2px;font-size:12px}#appChat .dm-navb{min-width:28px}#appChat .chat-message.dm-msg{max-width:86%!important}#appChat #chatText{font-size:16px}#appChat .dm-person{min-height:76px}.dm-directory-title{gap:8px}#crFab{bottom:20px!important}}
#appChatOpen::before,#crFab::before{content:'';width:20px;height:16px;border:2px solid currentColor;border-radius:6px 6px 6px 1px;vertical-align:middle;background:linear-gradient(currentColor,currentColor) center 5px/10px 1px no-repeat,linear-gradient(currentColor,currentColor) center 9px/7px 1px no-repeat}
.message-save{display:block;margin-top:8px;margin-left:auto;padding:5px 7px;border:0;background:transparent;color:#71533d;font-size:11px;min-height:32px;cursor:pointer}.message-save[aria-pressed=true]{font-weight:700}.message-save:disabled{opacity:.5;cursor:wait}.saved-highlight{outline:2px solid #b87b48!important}#savedMessages{width:min(620px,calc(100vw - 24px));max-height:85dvh;box-sizing:border-box;border:1px solid #dfd4c9;border-radius:18px;padding:20px;color:#352d29}#savedMessages::backdrop{background:#21191588}#savedMessages header{display:flex;justify-content:space-between;align-items:center}#savedMessages header h3{margin:0;font-size:18px}#savedMessages header button{border:0;background:none;font-size:24px}#savedMessages>p{font-size:12px;color:#837367}.saved-list article{background:#f6f1ec;border-radius:12px;margin:12px 0;padding:15px}.saved-list time{display:block;font-size:12px;color:#857367;margin-top:6px}.saved-list article p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.saved-list button,#savedNotice button{padding:8px 10px;border:1px solid #d7c7b8;border-radius:8px;background:white;color:#654b37;min-height:40px;margin:4px}#savedNotice{font-size:13px}#chatStatus button{border:0;background:none;color:#76543e;text-decoration:underline;min-height:36px}
.home-site-grid{display:flex;gap:12px;flex-wrap:wrap;padding:16px}.home-site-grid a{display:flex;align-items:center;gap:10px;min-width:125px;border:1px solid #e5d9ce;border-radius:12px;padding:10px 14px;color:#503d30;text-decoration:none}.home-site-grid img,.home-site-grid a>span{width:32px;height:32px;border-radius:8px;object-fit:contain;display:grid;place-items:center;background:#eee4da}.home-account-search #homeAccountQuery{width:100%;min-height:44px}.home-account-search article{padding:14px 0;border-bottom:1px solid #e8dfd8;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.home-account-search label{display:flex;flex-direction:column;font-size:12px;gap:4px}.home-account-search input{padding:9px;border:1px solid #ddd3c9;border-radius:8px;max-width:100%;box-sizing:border-box}.home-account-search small{color:#837264}.home-invoice-report{border-top:3px solid #987353}#homeAccountEditor{margin-bottom:20px}#homeAccountEditor .acctwrap{overflow:auto}#homeAccountEditor h2{font-size:19px}.home-account-search .boxhead{flex-wrap:wrap}@media(max-width:650px){.home-account-search article label{width:100%}.home-site-grid{gap:8px}.home-site-grid a{min-width:0;flex:1 1 40%}.home-account-search input{font-size:16px}}
.info-query{display:flex;gap:8px}.info-query input{flex:1;min-width:0}.info-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.info-conflict{color:#9a3412;background:#fff7ed;padding:8px;border-radius:8px}#homeAccountEditor{padding:18px}.home-account-search article small{display:block;margin:8px 0;color:#666}
#setiCatalogEntry{display:inline-flex;align-items:center;gap:7px;min-height:40px}#setiCatalogEntry .catalog-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#9c6544;color:white;font-size:12px;font-weight:700}
html{height:auto!important;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}html body{height:auto!important;min-height:100vh;overflow:visible!important}html body .shell{height:auto!important;overflow:visible!important}html body.workflow-v2 .main{height:auto!important;overflow:visible!important}html:has(dialog[open]){overflow-y:hidden!important}

.home-site-grid img{background:transparent;border-radius:0;width:36px;height:36px;flex:none}.home-site-grid img[src$="saypen.png"]{width:64px}
