
.auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceff1;
  font-family: Roboto, sans-serif;
}
.auth-card {
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.auth-card-wide { width: min(640px, calc(100vw - 32px)); }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand .material-icons { font-size: 32px; color: #546e7a; }
.auth-brand h1 { margin: 0; font-size: 1.6rem; }
.auth-lead { color: #607d8b; margin: 8px 0 18px; }
.auth-form label, .auth-form fieldset label {
  display: block;
  margin: 0 0 12px;
  font-size: .85rem;
  color: #455a64;
}
.auth-form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  box-sizing: border-box;
}
.auth-form fieldset {
  border: 1px solid #eceff1;
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
}
.auth-error { color: #c62828; min-height: 1.2em; }
.auth-alt { text-align: center; margin-top: 16px; color: #607d8b; }
.auth-actions { display: flex; gap: 8px; justify-content: flex-end; }
.kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind-card {
  border: 1px solid #cfd8dc;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.kind-card:hover { border-color: #546e7a; }
.kind-card .material-icons { display: block; margin-bottom: 8px; }
.kind-card span { display: block; color: #78909c; font-size: .85rem; margin-top: 4px; }
.captcha-box { margin: 12px 0; }
.brand-logo { height: 28px; width: 28px; object-fit: contain; border-radius: 6px; margin-right: 8px; vertical-align: middle; }
.saas-chrome { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.instance-name {
  font-size: 13px;
  color: #546e7a;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-hint { font-size: 12px; color: #78909c; margin: 0 0 12px; }
.switch-company-lead { margin: 0; color: #607d8b; font-size: 13px; }
.switch-company-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.switch-company-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #eceff1;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.switch-company-item:hover { border-color: #90a4ae; background: #fafafa; }
.switch-company-item.is-active { border-color: #546e7a; background: #eceff1; }
.switch-company-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.switch-company-copy strong { font-size: 14px; color: #37474f; }
.switch-company-copy small { font-size: 12px; color: #78909c; }
.switch-company-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f5f5;
  flex: 0 0 auto;
}
.switch-company-logo.avatar-initials { font-size: 14px; color: #fff; }
.switch-company-check { color: #546e7a; font-size: 20px; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th, .users-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eceff1; }
.instance-settings { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; margin-bottom: 20px; }
.instance-settings img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #f5f5f5; }
.user-menu { position: relative; }
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 2px 4px;
  text-align: left;
}
.user-menu-copy { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-menu-copy strong { font-size: 13px; color: #37474f; }
.user-menu-copy small { font-size: 11px; color: #78909c; }
.user-menu-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #eceff1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 180px;
  z-index: 40;
  padding: 6px;
}
.user-menu-drop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.user-menu-drop button:hover { background: #eceff1; }
.avatar, .avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  font-weight: 600;
  flex: 0 0 auto;
}
.avatar-xs, .avatar-xs.avatar-initials { width: 22px; height: 22px; font-size: 10px; }
.avatar-sm, .avatar-sm.avatar-initials { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg, .avatar-lg.avatar-initials { width: 72px; height: 72px; font-size: 22px; }
.assignee-stack { display: flex; gap: 4px; margin: 6px 0 2px; flex-wrap: wrap; }
.assignee-face { display: inline-flex; }
.assignee-face.is-playing { outline: 2px solid #fff; border-radius: 50%; }
.assignee-box { display: grid; gap: 8px; }
.assignee-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eceff1;
  border-radius: 999px;
  padding: 3px 8px 3px 3px;
  font-size: 12px;
}
.assignee-chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.profile-preview { margin-bottom: 12px; }
.company-edit-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #f5f5f5; }
.timer-total { opacity: .8; font-size: 12px; }
