/* 团队管理：采用工作台雾霾蓝配色的通透卡片布局。 */
#teamPanel.team-management{max-width:1280px;margin:12px auto 36px;--team-blue:#3e607c;--team-muted:#7c8d9b;--team-line:#e2e9ef;color:#304b61}
#teamPanel .team-heading{margin:0 0 23px;padding:0;border:0;background:transparent}
#teamPanel .team-heading h2{font-size:27px;font-weight:650;letter-spacing:-.6px;margin:0 0 7px;color:#29465d;line-height:1.5}
#teamPanel .team-heading p{font-size:13px;color:var(--team-muted);line-height:1.8}
#teamPanel .team-company{display:flex;align-items:center;gap:12px;padding:17px 22px;margin-bottom:20px;border:1px solid var(--team-line);border-radius:13px;background:linear-gradient(110deg,#f0f5f9,#fff 75%);font-size:13px;min-width:0}
#teamPanel .team-company>svg{width:21px;height:21px;flex:none;color:#7695ad}
#teamPanel .team-company>strong{font-weight:550;overflow-wrap:anywhere;min-width:0}
#teamPanel .team-company-stats{margin-left:auto;color:#8a9ba8;font-size:11px;white-space:nowrap}
#teamPanel .team-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:start}
#teamPanel .team-aside{display:grid;gap:20px;min-width:0}
.workspace-simple #teamPanel .internal-section{margin:0;padding:25px 26px;border:1px solid var(--team-line);border-radius:16px;box-shadow:0 4px 20px #304c6903;background:#fff}
#teamPanel .team-section-heading{display:flex;align-items:flex-start;gap:13px;margin:0 0 23px}
#teamPanel .team-section-heading>svg{width:27px;height:27px;flex:none;color:#7092ad;margin-top:1px}
#teamPanel .team-section-heading>div{min-width:0}
#teamPanel .team-section-heading h3{font-size:19px;font-weight:600;line-height:1.5;color:#2d4960;margin:0 0 6px}
#teamPanel .team-section-heading p{margin:0;font-size:11px;line-height:1.9;color:#8797a4}
#teamPanel .internal-create{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:0 0 16px;padding:17px;background:#f5f8fb;border:1px solid #eef2f5;border-radius:12px}
#teamPanel .internal-create>.internal-field{flex-basis:100%}
#teamPanel .internal-create>button{margin-left:auto}
#teamPanel .team-reception-help{flex-basis:100%;min-width:0;color:#71899b;font-size:11px;line-height:1.8}
#teamPanel .team-reception-help>summary{display:inline-flex;align-items:center;gap:5px;cursor:pointer;list-style:none;color:#64839b}
#teamPanel .team-reception-help>summary::before{content:'›';display:inline-block;font-size:15px;line-height:1;transition:transform .18s}
#teamPanel .team-reception-help[open]>summary::before{transform:rotate(90deg)}
#teamPanel .team-reception-help>p{margin:7px 0 0;line-height:1.8;overflow-wrap:anywhere}
#teamPanel .team-group-content>.team-reception-help{margin:0 0 15px}
#teamPanel textarea{box-sizing:border-box;width:100%;min-width:0;resize:vertical;max-height:240px;padding:10px 12px;border:1px solid #dfe7ed;border-radius:9px;color:#3d5b72;background:#fff;font:inherit;font-size:12px;line-height:1.7}
#teamPanel textarea::placeholder{color:#9aaab7}
#teamPanel .internal-field{flex:1;min-width:0;gap:7px}
#teamPanel .internal-field>span{font-size:11px;color:#6c8396}
#teamPanel input:not([type=checkbox]){max-width:100%;min-width:0;min-height:42px;border-color:#dfe7ed;border-radius:9px;font-size:12px;color:#3d5b72}
#teamPanel input::placeholder{color:#9aaab7}
#teamPanel :is(input,textarea,button,a,summary):focus-visible{outline:2px solid #87a8c0;outline-offset:3px}
#teamPanel button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;margin:0;font-size:11px;border:1px solid #dce6ee;border-radius:9px;color:#56778f;background:#f7fafc;box-shadow:none;transition:background-color .18s,border-color .18s,transform .18s}
#teamPanel button:hover:not(:disabled){background:#edf3f8;border-color:#c4d6e4;transform:translateY(-1px)}
#teamPanel button.primary{background:#476b89;border-color:#476b89;color:#fff}
#teamPanel button.primary:hover:not(:disabled){background:#365872;border-color:#365872;box-shadow:0 4px 12px #304c691a}
#teamPanel button:disabled{opacity:.55;cursor:wait}
#teamPanel .internal-create button{flex:none;min-height:42px;white-space:nowrap}
#teamPanel button>svg{width:17px;height:17px;flex:none}
#teamPanel .team-group-list{display:grid;gap:11px}
#teamPanel .internal-group{margin:0;padding:0;border:1px solid var(--team-line);border-radius:12px;overflow:hidden;background:#fff;transition:border-color .18s,box-shadow .18s}
#teamPanel .internal-group:hover{border-color:#cbdbe6;box-shadow:0 3px 14px #304c6905}
#teamPanel .internal-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;padding:12px 15px;list-style:none;font-size:13px;font-weight:500}
#teamPanel summary::-webkit-details-marker{display:none}
#teamPanel .team-group-identity{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap;flex:1}
#teamPanel .team-group-identity>strong{font-size:13px;font-weight:600;overflow-wrap:anywhere;min-width:0;max-width:calc(100% - 63px)}
#teamPanel .team-group-icon{--team-icon-bg:#edf4fa;display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:12px;color:#6b90ae;background:var(--team-icon-bg)}
#teamPanel .team-group-icon>svg{width:23px;height:23px}
#teamPanel .team-group-icon[data-tone=teal]{--team-icon-bg:#edf6f5;color:#6c9c9c}
#teamPanel .team-group-icon[data-tone=violet]{--team-icon-bg:#f1eff8;color:#9584b4}
#teamPanel .team-group-icon[data-tone=amber]{--team-icon-bg:#fbf3e9;color:#c29965}
#teamPanel .team-group-icon[data-tone=rose]{--team-icon-bg:#fbf0f3;color:#be8599}
#teamPanel .team-member-count{font-size:10px;color:#7b96aa;background:#eff5f9;border-radius:20px;padding:3px 8px;white-space:nowrap;font-weight:400}
#teamPanel .team-disabled{font-size:10px;color:#ab8a64;padding:3px 6px;background:#fbf5ed;border-radius:5px}
#teamPanel .team-group-chevron{width:16px;height:16px;flex:none;color:#95a9b8;transition:transform .18s}
#teamPanel .internal-group[open]{border-color:#cfdee9;box-shadow:0 4px 16px #304c6905}
#teamPanel .internal-group[open]>summary{background:#f8fafc}
#teamPanel .internal-group[open] .team-group-chevron{transform:rotate(90deg)}
#teamPanel .team-group-content{padding:0 17px 18px}
#teamPanel .internal-config-row{gap:10px;grid-template-columns:minmax(0,1fr) auto;padding:16px 0;border-top:1px solid #edf1f4}
#teamPanel .internal-config-row>input{grid-column:1/-1;margin:0}
#teamPanel .internal-config-row>.internal-field{grid-column:1/-1;display:grid;margin:0}
#teamPanel .internal-config-row>button{justify-self:end}
#teamPanel .internal-check{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;color:#6b8396;min-height:27px;line-height:1.7;min-width:0}
#teamPanel .internal-check>span{min-width:0;overflow-wrap:anywhere}
#teamPanel .internal-check>input[type=checkbox]{margin:0!important;accent-color:#557c9c;flex:none}
#teamPanel .internal-member-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 15px;margin:12px 0 19px}
#teamPanel h4{font-size:12px;font-weight:550;color:#3b5870;margin:0 0 12px}
#teamPanel .team-admin-note{display:flex;align-items:flex-start;gap:8px;margin:23px 0 0;font-size:11px;color:#8a9aa7;line-height:1.8}
#teamPanel .team-admin-note>svg{width:17px;height:17px;flex:none;margin-top:1px;color:#8ea7b9}
#teamPanel .team-invitation{max-width:none;margin:0;display:block}
#teamPanel .team-invitation>button.primary{width:100%;min-height:43px;margin-top:16px;font-size:12px}
#teamPanel .team-invite-qualification{border:1px solid #e8eef3;border-radius:9px;background:#fafcfd;padding:0 12px;margin-top:6px}
#teamPanel .team-invite-qualification>summary{padding:9px 0;cursor:pointer;list-style:none;font-size:11px;color:#7c93a5;display:flex;align-items:center;justify-content:space-between}
#teamPanel .team-invite-qualification>summary:after{content:'＋';font-size:15px;line-height:1}
#teamPanel .team-invite-qualification[open]>summary:after{content:'−'}
#teamPanel .team-invite-qualification>.internal-check{padding:4px 0 12px}
#teamPanel .team-invite-qualification>p{font-size:11px;line-height:1.8;margin:0 0 12px;color:#8b9ba8}
#teamPanel .team-invite-note{display:flex;gap:8px;margin:17px 0 0;font-size:10px;line-height:1.9;color:#8b9ba8}
#teamPanel .team-invite-note>svg{width:15px;height:15px;margin-top:3px;flex:none}
#teamPanel .team-invite-output:empty{display:none}
#teamPanel .team-invite-output{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 0 0;min-width:0}
#teamPanel .team-invite-output>p{width:100%;font-size:11px;color:#7b90a0;margin:0;overflow-wrap:anywhere}
#teamPanel .team-invite-output>input{width:100%;margin:0;font-family:monospace;letter-spacing:1px}
#teamPanel .team-invite-output>a{font-size:11px;color:#6086a4;text-underline-offset:3px}
#teamPanel .team-permission-steps{list-style:none;counter-reset:permission;margin:0;padding:0}
#teamPanel .team-permission-steps>li{counter-increment:permission;position:relative;display:flex;gap:13px;align-items:flex-start;margin:0;padding:3px 0 25px 31px}
#teamPanel .team-permission-steps>li:last-child{padding-bottom:2px}
#teamPanel .team-permission-steps>li:before{content:counter(permission);position:absolute;left:0;top:10px;display:grid;place-items:center;width:21px;height:21px;border:1px solid #dae6ef;border-radius:50%;background:#f0f6fa;font-size:10px;color:#7998b0;z-index:1}
#teamPanel .team-permission-steps>li:not(:last-child):after{content:'';position:absolute;left:10px;top:31px;bottom:-10px;border-left:1px dashed #dce6ef}
#teamPanel .team-step-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:11px;background:#f0f5f9;color:#7b9ab2}
#teamPanel .team-step-icon>svg{width:21px;height:21px}
#teamPanel .team-permission-steps strong{display:block;font-weight:550;font-size:12px;color:#45647c;margin:0 0 4px;line-height:1.7}
#teamPanel .team-permission-steps p{margin:0;font-size:10px;color:#8b9ba9;line-height:1.9}
.workspace-simple #teamPanel .team-members{margin-top:20px}
#teamPanel .team-members .team-section-heading{margin-bottom:16px}
#teamPanel .team-members .table-wrap{max-height:none;min-width:0;border:1px solid #e8eef3;border-radius:11px;overflow:auto}
#teamPanel .team-members table{width:100%;min-width:0;border-collapse:collapse;font-size:12px;margin:0;table-layout:fixed}
#teamPanel .team-members th{font-size:10px;font-weight:500;padding:11px 15px;background:#f4f8fb;color:#7b92a4;border:0;text-align:left}
#teamPanel .team-members th:nth-child(4){width:80px}#teamPanel .team-members th:last-child{width:112px}
#teamPanel .team-members td{padding:14px 15px;border:0;border-top:1px solid #edf2f6;vertical-align:middle;color:#6d8497;overflow-wrap:anywhere}
#teamPanel .team-members td:first-child{color:#3b5870}
#teamPanel .team-members td:first-child>strong{font-weight:500;vertical-align:middle}
#teamPanel .team-person-avatar{display:inline-grid;place-items:center;vertical-align:middle;width:29px;height:29px;margin-right:9px;border-radius:9px;background:#edf3f7;color:#86a1b5;font-size:12px}
#teamPanel .team-member-actions button{white-space:nowrap;min-height:34px;padding:7px 10px}
#teamPanel .team-group-chip{display:inline-block;padding:3px 7px;font-size:10px;border-radius:5px;margin:2px 4px 2px 0;background:#f0f5f9;color:#7a95a9}
#teamPanel .team-status{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#7c96a9;white-space:nowrap}
#teamPanel .team-status:before{content:'';width:5px;height:5px;border-radius:50%;background:#7ca4b7}
#teamPanel .team-status[data-active=false]{color:#a59a8d}
#teamPanel .team-status[data-active=false]:before{background:#c6b7a6}
#teamPanel .internal-empty{font-size:12px;line-height:1.9;background:#f6f9fb;color:#8a9eac;margin:12px 0}
#teamPanel .internal-notice{margin:0 0 18px;font-size:12px;background:#edf4fa;color:#66859c}
#teamPanel .internal-notice:empty{display:none}
#teamPanel .internal-callout{font-size:11px;line-height:1.8}
#teamPanel .internal-loading{padding:40px;text-align:center;font-size:13px;color:#8ba0b1}
@media(max-width:1100px){#teamPanel .team-columns{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px}#teamPanel .team-aside{gap:16px}.workspace-simple #teamPanel .internal-section{padding:21px}#teamPanel .internal-create{flex-wrap:wrap;padding:14px}#teamPanel .internal-create>.internal-field{flex-basis:100%}#teamPanel .internal-create>button{width:100%}}
@media(max-width:940px){#teamPanel .team-columns{grid-template-columns:1fr}#teamPanel .team-aside{grid-template-columns:repeat(2,minmax(0,1fr))}#teamPanel .internal-create{flex-wrap:nowrap}#teamPanel .internal-create>.internal-field{flex-basis:auto}#teamPanel .internal-create>button{width:auto}}
@media(max-width:620px){#teamPanel.team-management{margin:12px auto 24px}#teamPanel .team-heading{margin-bottom:18px}#teamPanel .team-heading h2{font-size:24px}#teamPanel .team-heading p{font-size:11px}#teamPanel .team-company{padding:14px 16px;gap:9px;flex-wrap:wrap;margin-bottom:16px}#teamPanel .team-company-stats{width:100%;margin-left:30px;font-size:10px}#teamPanel .team-aside{grid-template-columns:1fr;gap:16px}.workspace-simple #teamPanel .internal-section{padding:20px 18px;border-radius:14px}#teamPanel .team-section-heading{gap:10px;margin-bottom:19px}#teamPanel .team-section-heading>svg{width:24px;height:24px}#teamPanel .team-section-heading h3{font-size:17px}#teamPanel .team-section-heading p{font-size:10px}#teamPanel .internal-create{padding:13px;gap:10px}#teamPanel .internal-create button{padding:8px 11px;font-size:10px}#teamPanel .internal-create button>svg{width:14px;height:14px}#teamPanel .internal-create input{font-size:11px;padding:8px 10px}#teamPanel .internal-group>summary{padding:11px;gap:8px;min-height:70px}#teamPanel .team-group-identity{gap:9px}#teamPanel .team-group-icon{width:38px;height:38px;border-radius:10px}#teamPanel .team-group-icon>svg{width:21px;height:21px}#teamPanel .team-group-identity>strong{font-size:12px}#teamPanel .team-member-count{font-size:9px;padding:3px 6px}#teamPanel .team-group-content{padding:0 13px 16px}#teamPanel .internal-member-choices{column-gap:10px}#teamPanel .internal-check{font-size:11px}#teamPanel .team-members .table-wrap{border:0;border-radius:0;overflow:visible}#teamPanel .team-members table,#teamPanel .team-members tbody{display:block}#teamPanel .team-members thead{display:none}#teamPanel .team-members tr{display:grid;grid-template-columns:1fr;gap:9px;border:1px solid #e7eef3;border-radius:11px;padding:15px;margin:0 0 11px}#teamPanel .team-members tr:last-child{margin-bottom:0}#teamPanel .team-members td{display:flex;align-items:center;gap:7px;padding:0;border:0;font-size:11px;min-width:0}#teamPanel .team-members td:not(:first-child):before{content:attr(data-label);flex:none;width:55px;font-size:10px;color:#a0afbb}#teamPanel .team-members td:nth-child(3){flex-wrap:wrap;gap:3px}#teamPanel .team-members td:first-child{margin-bottom:5px}#teamPanel .team-person-avatar{margin-right:2px}.workspace-simple #teamPanel .team-members{margin-top:16px}}
@media(max-width:360px){#teamPanel .internal-create{flex-wrap:wrap}#teamPanel .internal-create>.internal-field{flex-basis:100%}#teamPanel .internal-create>button{width:100%}#teamPanel .team-group-identity{column-gap:7px}#teamPanel .team-member-count{margin-left:45px}}
#teamPanel .team-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 0 0;padding-top:13px;border-top:1px solid #edf2f6;flex-wrap:wrap}
#teamPanel .team-page-status{font-size:10px;color:#8a9eac}#teamPanel .team-page-controls{display:flex;gap:7px}
#teamPanel .team-pagination button{min-height:30px;padding:5px 10px;font-size:10px}#teamPanel button:disabled{cursor:default}
#teamPanel .team-selection{width:100%;border:1px solid #e1e9f0;border-radius:11px;overflow:hidden;background:#fff}
#teamPanel .team-selection-toolbar{display:flex;align-items:center;gap:8px;padding:9px 11px;background:#f7fafc;border-bottom:1px solid #eaf0f5}
#teamPanel .team-selection-toolbar input{flex:1;min-width:0;min-height:32px;padding:6px 9px;margin:0;background:#fff;font-size:11px}
#teamPanel .team-selection-count{flex:none;font-size:10px;color:#849eaf;white-space:nowrap}
#teamPanel .team-selection .team-selection-list{display:flex;flex-direction:column;gap:0;padding:3px 11px;margin:0;max-height:none}
#teamPanel .team-selection-list>.internal-check{width:100%;min-height:37px;gap:9px;border-bottom:1px solid #f0f4f7;padding:7px 2px}
#teamPanel .team-selection-list>.internal-check:last-child{border-bottom:0}#teamPanel .team-selection-list>.internal-check:has(input:checked){color:#426c89}
#teamPanel .team-selection-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 11px;border-top:1px solid #edf2f6;font-size:10px;color:#91a4b3}
#teamPanel .team-selection-pages button{min-height:27px;padding:4px 7px;font-size:10px;background:transparent;border-color:transparent}
#teamPanel .team-selection-empty{font-size:11px;color:#9aabb8;padding:12px 0;margin:0}
#teamPanel td>.team-pagination{margin-top:5px;padding-top:5px;gap:5px}#teamPanel td .team-page-controls{gap:3px}#teamPanel td .team-pagination button{padding:3px 6px;min-height:25px;font-size:9px}#teamPanel .team-member-groups{min-width:0}
#teamPanel .team-group-removal{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:17px;padding-top:13px;border-top:1px solid #edf2f6;font-size:10px;color:#96a7b4}
#teamPanel button.team-delete-button{background:#fff8f7;border-color:#edddda;color:#ae756c}#teamPanel button.team-delete-button:hover:not(:disabled){background:#fbeeea;border-color:#e5c9c3}
#teamPanel .team-group-delete-confirm{flex-basis:100%;padding:13px;background:#fcf8f6;border:1px solid #eee2dd;border-radius:9px}#teamPanel .team-group-delete-confirm p{font-size:11px;line-height:1.9;margin:0 0 12px;color:#99877b;overflow-wrap:anywhere}#teamPanel .team-delete-actions{display:flex;justify-content:flex-end;gap:8px}
#teamMemberDeleteDialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;padding:27px;border:1px solid #dce7ef;border-radius:18px;background:#fff;color:#3a5b72;box-shadow:0 25px 80px #1f3e552e;overflow:auto}#teamMemberDeleteDialog::backdrop{background:#233d4f55;backdrop-filter:blur(3px)}#teamMemberDeleteDialog h2{font-size:20px;font-weight:600;margin:0 0 14px}#teamMemberDeleteDialog p{font-size:13px;line-height:1.9;overflow-wrap:anywhere;margin:0 0 20px;color:#7a90a2}#teamMemberDeleteDialog .team-member-delete-error{color:#ad7169;font-size:12px}#teamMemberDeleteDialog .team-member-delete-error:empty{display:none}.team-member-delete-actions{display:flex;justify-content:flex-end;gap:10px}.team-member-delete-actions button{min-height:40px;padding:9px 15px;border:1px solid #dce6ee;border-radius:9px;background:#f7fafc;color:#65849b;font:inherit;font-size:12px;cursor:pointer}.team-member-delete-actions button.team-delete-button{background:#fff8f7;border-color:#edddda;color:#ae756c}.team-member-delete-actions button:hover:not(:disabled){background:#edf3f8}.team-member-delete-actions button.team-delete-button:hover:not(:disabled){background:#fbeeea;border-color:#e5c9c3}.team-member-delete-actions button:focus-visible{outline:3px solid #99b9ce;outline-offset:3px}.team-member-delete-actions button:disabled{opacity:.55;cursor:default}
@media(max-width:620px){#teamPanel .team-member-actions:empty{display:none}#teamPanel .team-member-actions button{min-height:38px}#teamMemberDeleteDialog{padding:23px 20px}}
#teamPanel .team-quick-invite{padding:14px;background:linear-gradient(130deg,#f1f7fb,#f9fbfd);border:1px solid #e2ecf3;border-radius:12px}#teamPanel .team-quick-invite-help{font-size:10px;line-height:1.9;color:#7892a5;margin:11px 0 0}
#teamPanel .team-invite-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#teamPanel button.team-invite-method{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:116px;padding:14px 6px;background:#fff;border:1px solid #dce7ef;border-radius:10px;color:#476b89;white-space:normal}#teamPanel button.team-invite-method:hover:not(:disabled){background:#f4f9fd;border-color:#9bb8cd;box-shadow:0 4px 12px #365d7710}#teamPanel .team-invite-method svg{width:23px;height:23px;flex:none}#teamPanel .team-invite-method strong{font-size:12px;font-weight:600}#teamPanel .team-invite-method span{font-size:10px;color:#7d95a6;line-height:1.5}
.team-join-code{box-sizing:border-box;min-width:0;padding:17px 15px;background:linear-gradient(130deg,#f1f7fb,#f9fbfd);border:1px solid #dce7ef;border-radius:12px;text-align:left}.team-join-code>span{display:block;font-size:11px;color:#65849b;margin-bottom:10px}.team-join-code textarea{box-sizing:border-box;display:block;width:100%;min-width:0;resize:none;padding:12px;border:1px solid #dce7ef;border-radius:8px;background:#fff;color:#355a75;font:14px/1.7 ui-monospace,Consolas,monospace;overflow-wrap:anywhere;word-break:break-all}.team-join-code small{display:block;margin-top:9px;font-size:10px;color:#7d95a6}.team-join-actions{flex-wrap:wrap}
#teamPanel .team-fixed-invitation{padding:0;margin:18px 0 0;border:0;border-top:1px solid #edf2f6;border-radius:0;background:transparent}#teamPanel .team-fixed-invitation>summary{padding:12px 0;color:#92a5b3;font-size:11px;cursor:pointer;list-style:revert}#teamPanel .team-fixed-invitation[open]>summary{margin-bottom:4px}
#teamJoinQrDialog{box-sizing:border-box;width:min(400px,calc(100vw - 28px));max-height:calc(100dvh - 28px);margin:auto;padding:27px;border:1px solid #dce7ef;border-radius:18px;background:#fff;color:#3a5b72;box-shadow:0 25px 80px #1f3e552e;text-align:center;overflow:auto}#teamJoinQrDialog::backdrop{background:#233d4f55;backdrop-filter:blur(3px)}#teamJoinQrDialog h2{font-size:21px;font-weight:600;margin:0 0 9px}#teamJoinQrDialog .team-join-company{font-size:13px;color:#89a2b3;margin:0 0 19px}
.team-join-qr{width:220px;height:220px;margin:auto;border:1px solid #e1eaf1;border-radius:12px;padding:9px;background:#fff}.team-join-qr svg{display:block;width:100%;height:100%}.team-join-steps{font-size:12px;color:#7291a8;margin:18px 0 9px}.team-join-expiry{font-size:10px;line-height:1.9;color:#a0b0bb;margin:0 0 19px}.team-join-actions{display:flex;justify-content:center;gap:10px}.team-join-actions button{min-height:38px;padding:9px 14px;border:1px solid #dce6ee;border-radius:9px;background:#f7fafc;color:#65849b;font:inherit;font-size:12px;cursor:pointer}.team-join-actions button.primary{background:#476b89;border-color:#476b89;color:white}.team-join-status{font-size:11px;line-height:1.8;color:#7f9caf;margin:10px 0 0}.team-join-status:empty{display:none}.team-join-status input{width:100%;min-width:0;font-size:10px;padding:8px;border:1px solid #dce6ef;border-radius:7px}.team-join-actions button:focus-visible{outline:3px solid #99b9ce;outline-offset:3px}
@media(max-width:420px){#teamJoinQrDialog{padding:23px 19px}.team-join-qr{width:200px;height:200px}.team-join-expiry{font-size:9px}}
@media(prefers-reduced-motion:reduce){#teamPanel *,#teamPanel *:before,#teamPanel *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.team-iteration-permission{min-width:180px;max-width:340px;text-align:left;white-space:normal;margin:0 0 10px}.team-iteration-permission>summary{cursor:pointer;color:#295c72;font-weight:600;line-height:1.6}.team-iteration-permission[open]{padding:10px;border:1px solid #d6e3e9;border-radius:8px;background:#f8fbfc}.team-iteration-permission .internal-check{margin-top:10px}.team-iteration-help{font-size:12px;line-height:1.65;color:#647681;margin:8px 0}.team-iteration-groups>strong{display:block;font-size:13px;margin:10px 0 6px}.team-iteration-permission .team-selection{max-width:100%}.team-iteration-default{display:block;font-size:12px;line-height:1.6;color:#607582;white-space:normal}@media(max-width:680px){.team-iteration-permission{max-width:100%;min-width:0;width:100%}}

/* 现有部门与接待画像共同构成一个清晰可读的组织架构视图。 */
#teamPanel .team-company{flex-wrap:wrap;background:#fff;border-radius:9px;padding:14px 18px}
#teamPanel .team-reception-summary{display:flex;align-items:center;gap:22px;flex-basis:100%;padding-top:12px;margin-top:0;border-top:1px solid #e3eaf0;color:#6e8294;font-size:11px}
#teamPanel .team-reception-summary>span{display:inline-flex;align-items:baseline;gap:7px}
#teamPanel .team-reception-summary strong{color:#2d5a7d;font-size:20px}
#teamPanel .team-create-department{margin-bottom:14px}
#teamPanel .team-create-department>summary,#teamPanel .team-organization-help>summary{font-size:12px;color:#2c638c;cursor:pointer;padding:5px 0}
#teamPanel .team-create-department .internal-create{margin-top:12px}
#teamPanel .team-reception-badge{font-size:10px;font-weight:400;padding:3px 6px;border-radius:4px;color:#2f7290;background:#edf6f8}
#teamPanel .team-group-duty{flex-basis:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-left:55px;margin-top:-5px;color:#7b8fa0;font-size:10px;font-weight:400;line-height:1.7}
#teamPanel .team-organization-help{padding:0 8px;color:#7a8d9e;font-size:11px;line-height:1.8}
#teamPanel .team-organization-help p{margin:8px 0}
#teamPanel .team-member-filters{display:grid;grid-template-columns:minmax(160px,1fr) minmax(120px,.6fr) minmax(120px,.6fr);gap:10px;margin-bottom:15px}
#teamPanel .team-member-filters select,#teamPanel .team-member-filters input{width:100%;min-width:0;min-height:35px;margin:0;padding:7px 10px;border:1px solid #dce5ed;border-radius:5px;background:#fff;color:#4b6a82;font-size:11px}
#teamPanel .team-members th:first-child{width:18%}#teamPanel .team-members th:nth-child(2){width:16%}#teamPanel .team-members th:nth-child(3){width:22%}#teamPanel .team-members th:nth-child(4){width:26%}#teamPanel .team-members th:nth-child(5){width:8%}#teamPanel .team-members th:last-child{width:10%}
#teamPanel .team-member-person{display:inline-flex;flex-direction:column;vertical-align:middle;gap:4px;max-width:calc(100% - 42px)}
#teamPanel .team-member-person strong{font-size:12px;color:#335570;font-weight:600}
#teamPanel .team-member-person small,#teamPanel .team-member-source,#teamPanel .team-member-duty-note{display:block;color:#8297a7;font-size:10px;line-height:1.7}
#teamPanel .team-member-duty{display:block;color:#4f6c82;font-size:11px;font-weight:500}
#teamPanel .team-member-duty-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:5px}
#teamPanel .team-member-skills{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:5px}
#teamPanel .team-skill-chip{display:inline-block;padding:2px 5px;color:#3e6b89;background:#edf4f8;border-radius:4px;font-size:10px;line-height:1.6;overflow-wrap:anywhere}
#teamPanel .team-member-capacity{display:block;color:#41677f;font-size:10px;line-height:1.7}
#teamPanel .team-member-priority{display:block;color:#947224;font-size:10px;line-height:1.7}
#teamPanel .team-status[data-presence=在线]{color:#2e8065}#teamPanel .team-status[data-presence=在线]:before{background:#2e8065}
#teamPanel .team-status[data-presence=忙碌]{color:#a47626}#teamPanel .team-status[data-presence=忙碌]:before{background:#c39847}
#teamPanel .team-status[data-presence=离线]{color:#8898a5}#teamPanel .team-status[data-presence=离线]:before{background:#a9b5bd}
#teamPanel button.team-text-button{min-height:0;padding:3px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#2e648a;transform:none}
#teamPanel button.team-text-button:hover{background:transparent;text-decoration:underline;transform:none}
#teamReceptionSettings{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 30px);margin:auto;padding:22px 24px;border:1px solid #dce5ed;border-radius:11px;background:#fff;color:#35556e;box-shadow:0 20px 70px #203c5429;overflow:auto}
#teamReceptionSettings::backdrop{background:#233d4f55}
#teamReceptionSettings header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
#teamReceptionSettings h2{margin:0;font-size:17px;font-weight:600;color:#294c69}
#teamReceptionSettings .team-settings-context{font-size:11px;line-height:1.8;color:#7b8fa1;margin:10px 0 15px}
#teamReceptionSettings .internal-field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:11px;color:#658098}
#teamReceptionSettings :is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;padding:9px 11px;border:1px solid #d8e2ec;border-radius:5px;background:#fff;color:#3c607a;font:inherit;font-size:12px}
#teamReceptionSettings :is(input,textarea,select):disabled{background:#f5f7f9;color:#95a4b0}
#teamReceptionSettings textarea{resize:vertical;line-height:1.7}
#teamReceptionSettings footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:15px;margin-top:18px;border-top:1px solid #e4ebf1}
#teamReceptionSettings button{padding:8px 13px;border:0;border-radius:5px;font:inherit;font-size:12px;cursor:pointer}
#teamReceptionSettings button.primary{background:#2d648e;color:#fff}
#teamReceptionSettings button.team-text-button{padding:3px 0;background:transparent;color:#54758e}
#teamReceptionSettings button.team-delete-button{color:#ae756c}
#teamReceptionSettings .team-settings-status{color:#a46b29;font-size:11px;line-height:1.7}
#teamReceptionSettings :focus-visible{outline:2px solid #76a0c2;outline-offset:2px}
@media(max-width:900px){#teamPanel .team-members th,#teamPanel .team-members td{padding:12px 10px}#teamPanel .team-person-avatar{width:24px;height:24px;margin-right:5px}#teamPanel .team-member-person{max-width:calc(100% - 33px)}}
@media(max-width:620px){#teamPanel .team-member-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#teamPanel .team-member-filters input{grid-column:1/-1}#teamPanel .team-members td{padding:0}#teamPanel .team-member-person{max-width:none}#teamPanel .team-members td:nth-child(3),#teamPanel .team-members td:nth-child(4){display:block}#teamPanel .team-members td:nth-child(3):before,#teamPanel .team-members td:nth-child(4):before{display:block;margin-bottom:4px}#teamPanel .team-reception-summary{gap:12px;justify-content:space-between}#teamPanel .team-group-duty{margin-left:47px}#teamReceptionSettings{padding:20px}}

/* 部门子分组作为业务运营单元；文档访问权限仍保持继承关系。 */
#teamPanel .team-columns-scoped{display:block}
#teamPanel .team-workgroups{margin-top:20px;padding-top:15px;border-top:1px solid #e3ebf2}
#teamPanel .team-workgroups-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
#teamPanel .team-workgroups-heading h4{font-size:12px;color:#355b78;margin:0}
#teamPanel .team-subgroup-note{font-size:10px;line-height:1.8;color:#7d93a4;font-weight:400}
#teamPanel .team-workgroup{border:1px solid #e0e8ef;border-radius:7px;background:#fff;margin:9px 0}
#teamPanel .team-workgroup>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;cursor:pointer;list-style:none}
#teamPanel .team-workgroup>summary::-webkit-details-marker{display:none}
#teamPanel .team-workgroup-identity{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
#teamPanel .team-workgroup-identity>strong{color:#315a7b;font-size:12px}
#teamPanel .team-workgroup-identity>small{flex-basis:100%;display:block}
#teamPanel .team-workgroup[open] .team-group-chevron{transform:rotate(90deg)}
#teamPanel .team-workgroup-content{padding:0 13px 14px}
#teamPanel .team-workgroup-members{color:#466c85;font-size:11px;line-height:1.8;margin:0 0 11px}
#teamPanel .team-workgroup-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px;background:#f7fafc;border-radius:6px;margin:9px 0 13px}
#teamPanel .team-workgroup-form .internal-field{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#718a9c;margin:0}
#teamPanel .team-workgroup-form :is(input,textarea){box-sizing:border-box;width:100%;min-width:0;margin:0;font:inherit;font-size:11px;padding:8px 9px;border:1px solid #dce5ed;border-radius:5px;background:#fff;color:#3d607a}
#teamPanel .team-workgroup-form>button{justify-self:end}
#teamPanel .team-create-subgroup>summary{cursor:pointer;font-size:11px;color:#2d668f;padding:8px 0}
#teamPanel .team-managed-department{border:1px solid #e1e9f0;border-radius:9px;padding:16px;margin-bottom:14px}
#teamPanel .team-managed-heading{display:flex;align-items:center;gap:12px}
#teamPanel .team-managed-heading h4{font-size:14px;color:#2b536f;margin:0}
#teamPanel .team-workgroup-content h5{font-size:11px;color:#668196;margin:12px 0}
@media(max-width:620px){#teamPanel .team-workgroups-heading{align-items:flex-start;flex-direction:column;gap:4px}#teamPanel .team-managed-department{padding:12px}}

#teamPanel .team-workgroup-form>.internal-check{display:flex;align-items:center;justify-content:flex-start;justify-self:start;gap:8px;width:auto;min-width:0;margin:0}
#teamPanel .team-workgroup-form input[type=checkbox]{flex:none;width:14px;height:14px;min-width:14px;padding:0;margin:0}
#teamPanel .team-workgroup-form>.internal-check>span{flex:none;white-space:nowrap;font-size:11px}

/* 企业概览展示整体结果；部门管理员可编辑接待能力。 */
#teamReceptionSettings .team-settings-summary{margin:4px 0 20px}
#teamReceptionSettings .team-settings-summary>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:18px;padding:14px 0;border-bottom:1px solid #e9eef3}
#teamReceptionSettings .team-settings-summary dt{font-size:12px;color:#768ca0}
#teamReceptionSettings .team-settings-summary dd{margin:0;color:#315975;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#teamReceptionSettings footer:has(button:only-child){justify-content:flex-end}
#teamPanel .team-member-actions{white-space:nowrap}
#teamPanel .team-member-actions>button+button{margin-left:14px}
#teamPanel button.team-delete-button{color:#ae756c}
@media(max-width:480px){#teamReceptionSettings .team-settings-summary>div{grid-template-columns:1fr;gap:5px}}

/* 部门成员列表省略企业职责列。 */
#teamPanel .team-admin-list{list-style:none;padding:0;margin:0 0 14px}
#teamPanel .team-admin-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;overflow-wrap:anywhere}
#teamPanel .team-administrator-invite{display:grid;gap:10px}
#teamPanel .team-administrator-invite input{box-sizing:border-box;width:100%;min-width:0}
#teamPanel .team-administrator-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;box-sizing:border-box}
#teamPanel .team-administrator-dialog form{display:grid;gap:14px}
#teamPanel .team-administrator-dialog .team-selection-list{display:grid;gap:8px;max-height:45vh;overflow:auto}
#teamPanel .team-selection-description{display:block;margin-top:4px;font-size:12px;font-weight:400;color:#64748b;overflow-wrap:anywhere}
#teamPanel .team-administrator-dialog .internal-check:has(input:disabled){opacity:.6}
#teamPanel .team-members-scoped th:first-child{width:22%}
#teamPanel .team-members-scoped th:nth-child(2){width:20%}
#teamPanel .team-members-scoped th:nth-child(3){width:36%}
#teamPanel .team-members-scoped th:nth-child(4){width:10%}
#teamPanel .team-members-scoped th:last-child{width:12%}
@media(max-width:620px){#teamPanel .team-members-scoped td:nth-child(4){display:flex}#teamPanel .team-members-scoped td:nth-child(4):before{display:inline;margin-bottom:0}}
.organization-setup{display:grid;gap:12px}.organization-channel{display:grid;gap:10px}.organization-channel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.organization-state{font-size:12px;color:#795d24;background:#fff6dd;border-radius:20px;padding:4px 9px}.organization-channel p{margin:0;line-height:1.65}.organization-channel>button{justify-self:start}.organization-guide-dialog{width:min(560px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid #dce3ed;border-radius:18px;padding:26px;color:#223148;box-sizing:border-box}.organization-guide-dialog::backdrop{background:rgba(20,35,55,.38)}.organization-guide-dialog h2{margin:0 0 14px}.organization-guide-dialog p,.organization-guide-dialog li{line-height:1.8}.organization-guide-dialog details{padding:12px;background:#f5f7fa;border-radius:10px}.organization-guide-dialog summary{cursor:pointer}.organization-guide-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}

/* 这些控件仅在独立模拟服务器确认其目录后才创建。 */
.organization-simulation-card{margin-top:24px;padding:20px;border:1px solid #b9d4e5;border-radius:14px;background:#f4f9fd;color:#24475f;text-align:left}
.organization-simulation-card[hidden],.organization-simulation-manager-button[hidden]{display:none!important}
.organization-simulation-card h3{margin:0 0 10px;font-size:17px}.organization-simulation-card p{margin:8px 0;line-height:1.7;font-size:12px}
.organization-simulation-card form,.organization-simulation-dialog form{display:grid;gap:12px;margin-top:16px}
.organization-simulation-card label,.organization-simulation-dialog label{display:grid;gap:7px;font-size:12px;font-weight:600}
.organization-simulation-card select,.organization-simulation-dialog select{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #cfdae5;border-radius:8px;background:#fff;color:#24475f;font:inherit}
.organization-simulation-card .organization-simulation-boundary,.organization-simulation-dialog .organization-simulation-boundary{padding:9px 12px;border-radius:8px;background:#fff4d9;color:#795d24;font-size:12px;line-height:1.7}
.organization-simulation-status{min-height:20px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.organization-simulation-status[data-kind=error]{color:#b34438}
body>header>.organization-simulation-manager-button{flex:none;padding:7px 11px;border:1px solid #c3d7e7;border-radius:8px;background:#f1f7fc;color:#315975;font-size:12px;white-space:nowrap}
.organization-simulation-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 32px));max-height:86vh;overflow:auto;padding:26px;border:1px solid #dce3ed;border-radius:16px;background:#fff;color:#24475f}
.organization-simulation-dialog::backdrop{background:rgba(20,35,55,.4)}.organization-simulation-dialog h2{margin:0 0 12px;font-size:21px}.organization-simulation-dialog>p{font-size:12px;line-height:1.8}
.organization-simulation-summary{display:grid;gap:8px;margin:16px 0}.organization-simulation-summary article{padding:12px;background:#f5f8fb;border:1px solid #e1e9f0;border-radius:9px}.organization-simulation-summary strong{font-size:13px}.organization-simulation-summary p{margin:5px 0;font-size:12px;line-height:1.7}.organization-simulation-summary small{display:block;font-size:11px;color:#6c8395;overflow-wrap:anywhere}
.organization-simulation-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.organization-simulation-customer-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.organization-simulation-customer-links a{font-size:12px;color:#286994;text-decoration:underline;text-underline-offset:3px}
@media(max-width:620px){body>header>.organization-simulation-manager-button{max-width:112px;white-space:normal;font-size:10px}.organization-simulation-card,.organization-simulation-dialog{padding:18px}.organization-simulation-actions button{flex:1}}
/* 真实组织登录沿用现有入口与按账号隔离的会话。 */
.organization-login{display:grid;gap:8px;margin:16px 0;padding:14px;border:1px solid var(--border,#dbe2ea);border-radius:12px}
.organization-login p:empty{display:none}
.organization-login p{margin:0;font-size:13px;color:var(--muted,#64748b)}
.organization-department-template{padding:14px 0;border-bottom:1px solid var(--border,#dbe2ea)}
.organization-permission-summary{margin:8px 0;font-size:13px;overflow-wrap:anywhere}
.organization-permission-summary ul{padding-left:20px}
.organization-guide-dialog:has(.organization-directory){width:min(760px,calc(100vw - 32px))}
.organization-directory-count{font-size:13px;font-weight:600;color:#315975}
.organization-department-preview{margin:12px 0 12px calc(var(--organization-depth,0)*16px);padding:14px;border:1px solid #dce3ed;border-radius:12px;background:#fff;min-width:0}
.organization-department-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.organization-department-heading>.internal-check{min-width:0;flex:1}
.organization-department-heading>.internal-check>span{overflow-wrap:anywhere}
.organization-department-badge{font-size:11px;padding:3px 8px;border-radius:12px;background:#edf5fa;color:#315975}
.organization-department-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;align-items:center}
.organization-department-settings>.internal-field,.organization-department-settings>.muted,.organization-department-settings>details{grid-column:1/-1}
.organization-department-settings input:not([type=checkbox]),.organization-department-settings select{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;border:1px solid #cfdae5;border-radius:8px;background:#fff;color:inherit;font:inherit}
.organization-department-preview p{margin:8px 0 0;font-size:12px}
.organization-department-preview .internal-check input{flex:none}
.organization-department-skipped{background:#f8fafc}
.organization-department-skipped>.organization-department-heading{color:#64748b}
.organization-connection-controls{margin-bottom:16px}
.organization-connection-controls:empty{display:none}
.organization-connection-controls p{font-size:12px;margin-bottom:10px}
.organization-default-cleanup{margin-top:16px;font-size:13px}
.organization-guide-dialog [hidden]{display:none!important}
@media(max-width:620px){.organization-guide-dialog{padding:20px}.organization-department-preview{margin-left:calc(var(--organization-depth,0)*7px);padding:12px}.organization-department-settings{grid-template-columns:1fr}.organization-guide-actions{flex-wrap:wrap}.organization-guide-actions button{flex:1;min-width:90px}}

.organization-mobile-settings{margin:18px 0;padding:16px;border:1px solid #dbe2ea;border-radius:12px}.organization-mobile-settings form{display:grid;gap:12px}.organization-mobile-settings label{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.organization-mobile-settings input:not([type=checkbox]){max-width:220px}.organization-mobile-settings button{justify-self:start}.organization-mobile-settings h3{margin:0}.organization-mobile-settings .enterprise-language-options label{gap:5px}
