.team-page{font-size:1rem}.team-auth{max-width:650px}.team-page form,.team-modal form{display:grid;gap:16px}.team-page input,.team-page select,.team-modal input,.team-modal select{max-width:100%}.team-page textarea,.team-modal textarea{display:block;width:100%;min-height:100px;margin-top:8px}.team-check{display:flex;align-items:center;gap:10px;line-height:1.6;margin:12px 0}.team-check input{width:18px;height:18px;flex:none}.team-account-row,.team-row{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}.team-account-row{margin-bottom:22px}.team-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.team-metrics strong{display:block;font-size:2rem;margin-top:10px;color:#3564ee}.team-list{display:grid;gap:14px;margin-top:18px}.team-list p,.team-modal p{line-height:1.8;overflow-wrap:anywhere}.team-pre{white-space:pre-wrap}.team-error{color:#9d293b;background:#fff1f3;padding:14px;border-radius:10px;line-height:1.6}.team-reply{padding:14px;margin:12px 0;background:#f1f5ff;border-radius:12px}.team-tabs{overflow-x:auto;white-space:nowrap;margin-bottom:24px}.team-nav-count{margin-left:auto;font-size:14px;color:#3564ee}.team-unread{margin-left:12px;color:#3564ee}.team-escalate{margin:0 14px 18px}.team-document-selection{max-height:360px;overflow:auto}.team-page .actions{flex-wrap:wrap}.team-modal .form-note{font-size:14px}@media(max-width:900px){.team-metrics{grid-template-columns:repeat(2,1fr)}}

.team-chat [hidden] { display: none; }
#team-chat-history { height: min(43vh, 440px); overflow: auto; margin: 16px 0; }
.team-chat-message { border-bottom: 1px solid #e5eaf3; padding: 10px 0; }
.team-chat-message time { color: #64748b; margin-inline-start: 12px; font-size: .85em; }
.team-chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
#team-chat-form textarea { margin: 8px 0; }
#meeting-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
#meeting-screens video { width: 100%; max-height: 52vh; background: #0f172a; border-radius: 8px; }

.team-auth-switch {
  display:inline-grid;
  grid-template-columns:repeat(2,minmax(5.5rem,1fr));
  gap:4px;
  padding:4px;
  margin:16px 0 22px;
  border:1px solid #e1e8f4;
  border-radius:12px;
  background:#f2f5fb;
}
.team-auth-switch .btn {
  padding:8px 16px;
  min-height:36px;
  min-width:0;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  color:#556582;
  font-weight:600;
}
.team-auth-switch .btn[aria-pressed="true"] {
  background:white;
  color:#2854c9;
  border-color:#d8e3fa;
  box-shadow:0 1px 3px #1e3d7114;
}
.team-auth-switch .btn:focus-visible { outline:2px solid #436aed; outline-offset:1px; }

.top-account { position: relative; }
.top-account .avatar { cursor: pointer; }
.top-account-panel { position: absolute; z-index: 15; inset-inline-end: 0; inset-block-start: calc(100% + 9px); width: 206px; max-width: 76vw; display: grid; gap: 5px; padding: 9px; border: 1px solid #dce6f5; border-radius: 13px; background: #fff; box-shadow: 0 14px 32px #1d376728; }
.top-account-panel[hidden] { display: none; }
.top-account-panel .btn { justify-content: flex-start; text-align: start; min-height: 36px; padding: 7px 10px; }
.top-account-identity { margin: 2px 2px 4px; padding: 5px 8px 8px; color: #556983; font-size: 12px; border-bottom: 1px solid #e7eef8; }
.top-account-identity strong { display: block; margin-top: 4px; color: #233858; overflow-wrap: anywhere; font-size: 15px; }
.account-view { max-width: 1040px; margin: 0 auto; padding: 10px 0 38px; }
.account-view-header { margin-bottom: 18px; }
.account-view-layout { display: grid; grid-template-columns: minmax(220px, .88fr) minmax(310px, 1fr); align-items: start; gap: 24px; }
.account-view-intro { align-self: stretch; min-height: 290px; padding: clamp(24px, 4vw, 48px); border: 1px solid #dce6f5; border-radius: 18px; background: linear-gradient(145deg, #f0f5ff, #e3ecfd); color: #233858; }
.account-view-intro h1 { margin: 25px 0 10px; font-size: clamp(26px, 3vw, 38px); }
.account-view-intro p { max-width: 17em; line-height: 1.65; color: #4b658b; }
.account-view .team-auth,.account-view-card { padding: clamp(20px, 3.2vw, 34px); }
.account-view .team-auth form { display: grid; gap: 12px; }
.account-view .team-auth .field label { display: grid; gap: 6px; }
.account-view .team-auth .field input { width: 100%; }
.account-view-identity { font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
body:has(.account-view) .top-actions :is(.mode-badge, [data-page="settings"].quiet) { display: none; }
@media(max-width:710px) { .account-view-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; } .account-view-intro { min-height: 0; padding: 20px; } .account-view-intro h1 { margin-top: 12px; } }

