/* Team editor follows the legacy fieldset layout with separate image roles. */
html body .cb-site .team-quick-actions>button{color:#09f!important}
html body .cb-site .team-edit-form{padding:12px 10px;background:linear-gradient(#101c25,#30383d);border:1px solid #347597;margin:0}
html body .cb-site .team-edit-form fieldset{min-width:0;margin:14px 0;padding:14px 12px;border:1px solid #28779e;background:rgba(26,37,45,.5)}
html body .cb-site .team-edit-form legend{color:#09f;padding:0 5px;font:bold 10px/16px Arial,sans-serif}
html body .cb-site .team-edit-form .team-create-row{display:grid;grid-template-columns:155px minmax(0,1fr);gap:8px 12px;align-items:start;min-height:0!important;margin:6px 0!important;padding:0!important;border:0!important}
html body .cb-site .team-edit-form .team-create-row>label,html body .cb-site .team-edit-form .team-create-row>span{text-align:right;color:#b9cad6}
html body .cb-site .team-edit-form .team-create-row>div{min-width:0;overflow-wrap:anywhere}
html body .cb-site .team-edit-form :is(input:not([type=checkbox]),textarea){max-width:100%;width:380px;box-sizing:border-box}
html body .cb-site .team-edit-form input.short-input{width:90px}
html body .cb-site .team-edit-form :is(input[type=file],input[type=url],textarea){background:#272727;color:#eee;border:1px solid #718894}
html body .cb-site .team-edit-form input[type=file]{display:block;height:auto;min-height:30px;padding:2px}
html body .cb-site .team-edit-form small{display:block;color:#b9cad6;font:10px/15px Arial,sans-serif!important;margin:3px 0 6px}
html body .cb-site .team-edit-form .inline-check{display:flex;align-items:center;gap:6px;text-align:left}
html body .cb-site .team-edit-form .inline-check input{width:auto;flex:none}
html body .cb-site .team-edit-form .team-edit-preview{display:block;object-fit:contain;background:#19232b;border:1px solid #557384;margin-bottom:8px}
html body .cb-site .team-edit-form .team-edit-preview.avatar{width:64px;height:64px}
html body .cb-site .team-edit-form .team-edit-preview.logo{width:300px;height:200px;max-width:100%}
html body .cb-site .team-edit-form .team-create-submit{display:flex;justify-content:flex-end;padding:10px 0 0}
html body .cb-site .roster-identity{color:#c78bfa}html body .cb-site .roster-other{color:#ef795d}
html body .cb-site .roster-identity-help{padding:8px 12px;color:#b9cad6}
html body .cb-site .cb-member-support.support-v3 .member-support-message{grid-template-columns:64px minmax(0,1fr);padding:16px;gap:14px;border:1px solid #3b596a;background:#1a2b36;margin:12px 0}
html body .cb-site .cb-member-support.support-v3 .member-support-message.from-staff{background:#183343;border-left:3px solid #55b6e5}
html body .cb-site .cb-member-support.support-v3 .member-support-avatar,html body .cb-site .cb-member-support.support-v3 .member-support-avatar>*{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important;object-fit:contain}
html body .cb-site .cb-member-support.support-v3 .member-support-message-content header{padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #385365;align-items:baseline}
html body .cb-site .cb-member-support.support-v3 .member-support-message-content header>a{color:#09f;font-weight:bold}
html body .cb-site .cb-member-support.support-v3 .member-support-message-content time{color:#b9cad6;white-space:normal}
@media(max-width:600px){
 html body .cb-site .team-edit-form .team-create-row{grid-template-columns:minmax(0,1fr);gap:3px}
 html body .cb-site .team-edit-form .team-create-row>label,html body .cb-site .team-edit-form .team-create-row>span{text-align:left}
 html body .cb-site .cb-member-support.support-v3 .member-support-message{grid-template-columns:36px minmax(0,1fr);padding:12px;gap:10px}
 html body .cb-site .cb-member-support.support-v3 .member-support-avatar,html body .cb-site .cb-member-support.support-v3 .member-support-avatar>*{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important}
}

html body .cb-site .team-edit-form .team-create-row:has(#edit-team-name) button{display:block;margin-left:auto}

/* Activity timestamps need their own width, independent of the roster eligibility column. */
html body .cb-site .reference-fidelity .classic-team-manager table.team-activity-table :is(th,td):first-child{width:170px!important;min-width:170px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
html body .cb-site .reference-fidelity .classic-team-manager table.team-activity-table th:nth-child(2){width:110px!important}
html body .cb-site .reference-fidelity .classic-team-manager table.team-activity-table th:nth-child(3){width:180px!important}
html body .cb-site .reference-fidelity .classic-team-manager table.team-activity-table time{display:inline-flex!important;gap:5px!important;white-space:nowrap!important}

/* Keep confirmation buttons padded inside the team action panel. */
html body .cb-site .reference-fidelity .team-titlebar .team-quick-actions .team-disband-panel .team-disband-buttons{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:12px!important;
  margin:20px 0 0!important;
  padding:0 12px 12px!important;
}
html body .cb-site .reference-fidelity .team-titlebar .team-quick-actions .team-disband-panel .team-disband-buttons>button{
  padding:3px 14px!important;
  min-height:24px!important;
  height:auto!important;
  margin:0!important;
  box-sizing:border-box!important;
  line-height:16px!important;
  white-space:nowrap!important;
}

html body .cb-site .reference-fidelity .team-titlebar .team-quick-actions .team-disband-panel{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  z-index:1000!important;
  width:480px!important;
  max-width:calc(100vw - 32px)!important;
  min-height:0!important;
  box-sizing:border-box!important;
  padding:16px!important;
}
