.wx-account-root { --wa-green: #248450; --wa-dark: #173d31; --wa-line: #e5ebe5; --wa-muted: #829087; color: #263b30; font: 13px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.wx-account-root *, .wx-account-root *::before, .wx-account-root *::after { box-sizing: border-box; }
.wx-account-root [hidden] { display: none !important; }
.wx-account-root button, .wx-account-root input { font: inherit; }
.wx-account-root button { cursor: pointer; }
.wx-account-root button:disabled { cursor: not-allowed; opacity: .5; }
.wx-account-root button:focus-visible, .wx-account-root input:focus-visible { outline: 3px solid #9dcfb0; outline-offset: 3px; }
.wx-account-root h1, .wx-account-root h2, .wx-account-root h3, .wx-account-root p { margin: 0; }
.wx-account-root input { color: inherit; width: 100%; min-width: 0; height: 44px; border: 1px solid #dce4dc; border-radius: 8px; background: #fff; padding: 0 12px; }
.wx-account-root input:focus { border-color: #66a37c; box-shadow: 0 0 0 3px #75ad8820; }
.wx-account-root button { transition: background-color .15s ease, border-color .15s ease; }
.wx-account-auth-overlay { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 32px; background: #edf2ed; overflow-y: auto; }
.wx-account-auth { width: min(880px, 100%); display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid #dfe7df; border-radius: 22px; background: #fff; box-shadow: 0 24px 80px #173d3112; }
.wx-account-auth-intro { padding: 50px 40px; background: #183f32; color: #f0f8ef; display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.wx-account-mark { width: 47px; height: 47px; border-radius: 15px; display: grid; place-items: center; background: #3b8f5d; color: #fff; font-weight: 700; font-size: 24px; margin-bottom: 46px; box-shadow: inset 0 0 0 1px #ffffff15; }
.wx-account-eyebrow { display: block; color: #95b89d; font-size: 10px; font-weight: 600; letter-spacing: 2.2px; }
.wx-account-auth-intro h1 { font-size: 31px; font-weight: 500; line-height: 1.65; letter-spacing: 1px; white-space: pre-line; margin-top: 18px; }
.wx-account-auth-intro p { margin-top: 24px; color: #acc3b2; font-size: 12px; line-height: 2; white-space: pre-line; }
.wx-account-auth-foot { padding-top: 70px; margin-top: auto; color: #85a48f; font-size: 10px; letter-spacing: .8px; }
.wx-account-auth-body { padding: 38px 42px; }
.wx-account-auth-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--wa-line); margin-bottom: 26px; }
.wx-account-auth-tab { padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; color: #9aa79e; background: transparent; font-size: 13px; }
.wx-account-auth-tab.is-selected { color: #226643; border-bottom-color: #2c8450; font-weight: 600; }
.wx-account-auth h2 { font-size: 23px; font-weight: 600; letter-spacing: .5px; }
.wx-account-copy { margin-top: 9px !important; color: var(--wa-muted); font-size: 12px; }
.wx-account-form { display: flex; flex-direction: column; gap: 17px; margin-top: 26px; }
.wx-account-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #65796b; }
.wx-account-primary, .wx-account-button, .wx-account-danger { display: inline-flex; justify-content: center; align-items: center; border-radius: 8px; min-height: 39px; padding: 8px 16px; border: 1px solid #dae5d9; background: #fff; color: #4d6d55; font-weight: 500; line-height: 1.5; }
.wx-account-primary { background: #27834e; border-color: #27834e; color: #fff; }
.wx-account-primary:hover:not(:disabled) { background: #1f7042; border-color: #1f7042; }
.wx-account-button:hover:not(:disabled) { background: #f0f6ee; border-color: #bdcfb9; }
.wx-account-danger { background: #af5d4c; border-color: #af5d4c; color: #fff; }
.wx-account-auth-submit { width: 100%; min-height: 44px; margin-top: 1px; }
.wx-account-status { color: #65876a; font-size: 11px; overflow-wrap: anywhere; }
.wx-account-status:empty { display: none; }
.wx-account-status.is-error { color: #b2614d; }
.wx-account-hint { font-size: 11px; color: #8b998c; line-height: 1.8; }
.wx-account-text { border: 0; background: transparent; color: #56865d; padding: 4px 0; font-size: 12px; }
.wx-account-auth-body > .wx-account-text { margin-top: 20px; }
.wx-account-warning { color: #a46b53; }
.wx-account-shade { position: fixed; inset: 0; background: #112b224f; z-index: 1400; backdrop-filter: blur(2px); }
.wx-account-drawer { position: fixed; inset: 0 0 0 auto; z-index: 1401; width: min(540px, 100%); display: flex; flex-direction: column; background: #fbfcf9; border-left: 1px solid #e0e8dd; box-shadow: -18px 0 70px #173d3120; outline: none; }
.wx-account-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 30px 22px; background: #fff; }
.wx-account-drawer-header h2 { font-size: 22px; font-weight: 550; margin-top: 4px; }
.wx-account-close { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e3e9df; background: #fff; color: #8b9b8b; font-size: 25px; border-radius: 10px; }
.wx-account-summary { padding: 12px 30px 22px; display: flex; align-items: center; gap: 13px; background: #fff; }
.wx-account-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; color: #4d7955; background: #dfebdb; font-size: 17px; position: relative; overflow: hidden; }
.wx-account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wx-account-avatar.is-large { height: 60px; width: 60px; flex-basis: 60px; }
.wx-account-summary-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.wx-account-summary-copy strong { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.wx-account-summary-copy span { color: #99a594; font-size: 11px; overflow-wrap: anywhere; }
.wx-account-badge { flex-shrink: 0; border-radius: 5px; padding: 3px 7px; background: #edf3e8; color: #6f8767; font-size: 10px; }
.wx-account-nav { display: flex; overflow-x: auto; flex: 0 0 auto; padding: 0 24px; gap: 16px; background: #fff; border-bottom: 1px solid var(--wa-line); }
.wx-account-nav-button { border: 0; border-bottom: 2px solid transparent; padding: 12px 3px; color: #8a9a85; font-size: 12px; background: transparent; white-space: nowrap; }
.wx-account-nav-button.is-selected { color: #287c46; border-bottom-color: #358d51; font-weight: 600; }
.wx-account-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 27px 30px 40px; }
.wx-account-section-heading h3 { font-size: 17px; font-weight: 550; }
.wx-account-section-heading p { color: #8c9a86; font-size: 11px; line-height: 1.9; margin-top: 7px; }
.wx-account-readonly { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid #e5ebdf; border-radius: 9px; background: #f0f4ec; overflow-wrap: anywhere; }
.wx-account-readonly span { color: #8f9c86; font-size: 11px; }
.wx-account-readonly strong { font-size: 13px; font-weight: 500; }
.wx-account-drawer-footer { padding: 17px 30px; border-top: 1px solid var(--wa-line); background: #fff; }
.wx-account-logout { color: #7d8f78; }
.wx-account-code-card { display: flex; flex-direction: column; align-items: center; margin-top: 23px; border: 1px solid #dce7d5; background: #edf4e8; border-radius: 14px; padding: 25px 16px 19px; gap: 8px; }
.wx-account-code-label { color: #859a7a; font-size: 11px; }
.wx-account-code { display: block; color: #386b3c; font: 600 clamp(17px, 4vw, 27px)/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 2px; max-width: 100%; overflow-wrap: anywhere; user-select: text; text-align: center; }
.wx-account-code-copy { background: #fff; border: 1px solid #d7e2cf; border-radius: 6px; color: #65945c; font-size: 11px; padding: 5px 12px; }
.wx-account-steps { padding-left: 19px; margin: 20px 0 26px; color: #93a18b; font-size: 11px; line-height: 2; }
.wx-account-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.wx-account-list-heading { display: flex; justify-content: space-between; align-items: center; color: #8a9984; font-size: 11px; margin: 19px 0 11px; }
.wx-account-device-list, .wx-account-user-list { display: flex; flex-direction: column; gap: 13px; }
.wx-account-device-card, .wx-account-user-card { border: 1px solid #dfe7d8; border-radius: 12px; background: #fff; padding: 17px; }
.wx-account-device-main, .wx-account-user-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wx-account-device-copy { flex: 1; min-width: 0; }
.wx-account-device-title { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.wx-account-device-title strong { font-weight: 550; font-size: 14px; overflow-wrap: anywhere; }
.wx-account-device-copy p { color: #8b9b83; font-size: 11px; margin-top: 5px; overflow-wrap: anywhere; }
.wx-account-device-copy > span { display: block; color: #a0ac98; font-size: 10px; margin-top: 2px; overflow-wrap: anywhere; }
.wx-account-online { font-size: 10px; color: #a0ab99; flex-shrink: 0; white-space: nowrap; }
.wx-account-online::before { content: ''; display: inline-block; vertical-align: 1px; height: 5px; width: 5px; border-radius: 50%; background: #adb9a6; margin-right: 4px; }
.wx-account-online.is-online { color: #4c9460; }.wx-account-online.is-online::before { background: #4aab6b; }
.wx-account-device-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf0e9; margin-top: 15px; padding-top: 11px; }
.wx-account-device-actions > span { color: #a3ae9b; font-size: 10px; }
.wx-account-device-card > .wx-account-status { margin-top: 10px; }
.wx-account-empty { padding: 35px 18px; color: #98a58e; text-align: center; font-size: 12px; }
.wx-account-empty strong { font-weight: 500; color: #6f8566; }
.wx-account-empty p { margin: 9px 0 17px; line-height: 1.9; }
.wx-account-confirm { border-top: 1px solid #e8ece1; margin-top: 14px; padding-top: 12px; }
.wx-account-confirm p { font-size: 11px; color: #9b8164; line-height: 1.8; margin-bottom: 11px; }
.wx-account-confirm button { font-size: 11px; min-height: 33px; padding: 6px 11px; }
.wx-account-user-list { margin-top: 20px; }
.wx-account-user-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.wx-account-user-copy strong { font-weight: 550; font-size: 13px; overflow-wrap: anywhere; }
.wx-account-user-copy span { color: #a0ac96; font-size: 11px; overflow-wrap: anywhere; }
.wx-account-user-state { flex-shrink: 0; color: #7c9e70; font-size: 10px; }
.wx-account-user-state.is-disabled { color: #b58e75; }
.wx-account-user-card > .wx-account-text { display: block; margin-left: auto; margin-top: 10px; font-size: 11px; }
@media (max-width: 600px) {
  .wx-account-auth-overlay { padding: 0; display: block; background: #fff; }
  .wx-account-auth { min-height: 100vh; min-height: 100dvh; display: block; border: 0; border-radius: 0; box-shadow: none; }
  .wx-account-auth-intro { padding: 28px 26px; min-height: 190px; }.wx-account-mark { width: 35px; height: 35px; border-radius: 11px; margin-bottom: 21px; font-size: 19px; }
  .wx-account-auth-intro h1 { font-size: 25px; line-height: 1.4; margin-top: 8px; white-space: normal; }.wx-account-auth-intro h1::first-line { letter-spacing: .5px; }
  .wx-account-auth-intro p, .wx-account-auth-foot { display: none; }.wx-account-auth-intro .wx-account-eyebrow { font-size: 9px; }
  .wx-account-auth-body { padding: 27px 26px 40px; }.wx-account-auth h2 { font-size: 21px; }.wx-account-auth-tabs { margin-bottom: 23px; }
  .wx-account-drawer { width: 100%; border-left: 0; }.wx-account-drawer-header { padding: 22px 21px 16px; }.wx-account-summary { padding: 10px 21px 20px; }
  .wx-account-nav { padding: 0 18px; gap: 14px; }.wx-account-content { padding: 23px 21px 30px; }.wx-account-drawer-footer { padding: 15px 21px; }
  .wx-account-device-card, .wx-account-user-card { padding: 14px; }.wx-account-user-main { flex-wrap: wrap; }.wx-account-user-copy { flex-basis: calc(100% - 60px); }.wx-account-user-main > .wx-account-badge { margin-left: 56px; }
}
@media (prefers-reduced-motion: reduce) { .wx-account-root button { transition: none; } }

/* The workspace keeps the familiar three-column chat layout. */
.workspace-owner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 22px; font-size: 10px; color: #96a18e; }
.workspace-owner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-owner > button { flex-shrink: 0; font-size: 10px; color: #56865d; }
.wechat-device-profile { margin: 14px 0 4px; display: flex; gap: 10px; align-items: center; padding: 12px; background: #f0f4ec; border: 1px solid #e2e9db; border-radius: 10px; }
.wechat-device-profile > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.wechat-device-profile strong { font-weight: 550; font-size: 12px; color: #4b6650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wechat-device-profile span { font-size: 10px; color: #97a28d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wechat-device-profile .avatar { width: 35px; height: 35px; border-radius: 9px; font-size: 14px; }
.wechat-device-profile > button { font-size: 10px; }
#workspaceUserName { width: 56px; max-height: 36px; overflow: hidden; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 760px) { .workspace-owner { margin-bottom: 14px; } }
@media (max-width: 720px), (max-width: 950px) and (max-height: 500px) {
  .wx-account-drawer { width: 100%; max-height: var(--app-height, 100dvh); border-left: 0; }
  .wx-account-drawer-header { padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px; background: #ededed; }
  .wx-account-drawer-header button { min-height: 44px; min-width: 44px; }.wx-account-content { padding: 20px 17px; }
  .wx-account-root input { font-size: 16px; }.wx-account-root button { touch-action: manipulation; }.wx-account-nav-button { min-height: 44px; }
  .wx-account-drawer-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); }.wx-account-auth-body { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
}
