.wood-live #support-dialog{position:fixed;inset:var(--auth-visible-top,0px) 0 auto auto;margin:0;width:70vw;max-width:70vw;height:var(--auth-visible-height,100dvh);max-height:var(--auth-visible-height,100dvh);padding:0;border:0;border-radius:0;background:#f8efdf;color:#493522;overflow:hidden}
.wood-live #support-dialog[open]{display:flex;flex-direction:column;animation:rules-enter .28s ease-out}
#support-dialog::backdrop{background:#17130e99}
#support-dialog .rules-drawer-head{flex:none}
.support-chat{display:flex;flex-direction:column;gap:10px;min-height:0;padding:16px;flex:1;overflow:hidden}
.support-messages{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:100px;padding:4px;display:flex;flex-direction:column;gap:12px}
.support-bubble{align-self:flex-start;max-width:90%;padding:10px 12px;border-radius:12px;background:#e7ddcb;color:#493522}
.support-bubble.is-mine{align-self:flex-end;background:#765332;color:#fffaf1}
.support-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0!important;font-size:15px!important;line-height:1.6!important;color:inherit!important}
.support-bubble small{font-size:11px;opacity:.85}.support-empty{font-size:14px;line-height:1.8;color:#6e5944}
.support-chat form{flex:none;display:flex;gap:8px;align-items:flex-end;margin:0}.support-input-label{display:grid;gap:6px;flex:1;min-width:0;font-size:12px}
.support-chat textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;max-height:150px;min-height:70px;font-family:inherit;font-size:18px;line-height:1.4;padding:10px;background:#fffaf2;border:1px solid #bba685;border-radius:8px;color:#493522}
.support-chat form .primary{flex:none;margin:0!important;min-height:44px;min-width:0!important;width:auto!important;padding:10px 14px!important;font-size:14px!important;text-align:center}
.support-status{flex:none;font-size:12px!important;margin:0!important;overflow-wrap:anywhere}.support-status:empty{display:none}.support-older{align-self:center;flex:none;background:none;border:0;text-decoration:underline;color:inherit;min-height:32px}
#support-open{position:relative;margin-left:auto}#support-badge{position:absolute;right:0;top:0;min-width:15px;padding:2px;border-radius:10px;background:#a53127;color:white;font-size:9px}.wood-live .table-dock #agent-open,.wood-live .table-dock #wallet-open{margin-left:0}
.support-workspace{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;height:65vh;min-height:450px}.support-workspace>aside{overflow:auto;border-right:1px solid #dce2dc;padding-right:12px}.support-thread{display:grid;gap:6px;width:100%;text-align:left;margin-bottom:8px}.support-thread[aria-pressed=true]{background:#e1ece7;border-color:#214c3e}.support-thread span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.support-workspace .support-chat{background:#f6f4ed}.support-workspace h3{margin:0;font-size:16px}
html[data-dialog-input="pointer"] .wood-live #support-close:focus{outline:none}html[data-dialog-input="keyboard"] .wood-live #support-close:focus{outline:2px solid #b87825;outline-offset:3px}
@media(max-width:600px){.wood-live .table-dock{flex-wrap:wrap}.wood-live .table-dock .dock-button{width:32px;font-size:8px}.support-chat{padding:12px;gap:8px}.support-chat form{flex-wrap:wrap}.support-chat form .support-input-label{flex-basis:100%}.support-chat form .primary{margin-left:auto!important}.support-workspace{grid-template-columns:1fr;height:auto}.support-workspace>aside{max-height:180px}.support-workspace .support-chat{height:65vh}}
@media(prefers-reduced-motion:reduce){.wood-live #support-dialog[open]{animation:none}}

/* Match the keyboard-safe wallet/account fields on iOS and WeChat. */
.wood-live #support-dialog{box-sizing:border-box;min-height:0;overscroll-behavior:contain}
.wood-live #support-dialog textarea{font-size:18px;line-height:1.4;transform:none;-webkit-text-size-adjust:100%;text-size-adjust:100%;resize:none}
.wood-live #support-dialog .support-messages{min-height:0}
.wood-live #support-dialog .support-chat{padding-bottom:max(12px,env(safe-area-inset-bottom));min-width:0}
@media(max-height:450px){.wood-live #support-dialog .rules-drawer-head{padding:8px 12px}.wood-live #support-dialog .support-chat{gap:4px;padding-top:6px}.wood-live #support-dialog textarea{min-height:54px;max-height:80px}.wood-live #support-dialog form{flex-wrap:nowrap}.wood-live #support-dialog .support-input-label{flex-basis:auto}}
