/* Focused refinements for Staff account, profile and chat surfaces. */
.sf-profile-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.sf-profile-card,
.sf-profile-details {
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 16px;
  min-width: 0;
}
.sf-profile-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.sf-profile-card .sf-profile-avatar {
  margin: 0 0 8px;
  width: 132px;
  height: 132px;
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
  align-self: flex-start;
}
.sf-profile-avatar > svg {
  position: absolute;
  right: 0;
  bottom: 0;
  background: white;
  border: 1px solid #dce5e9;
  border-radius: 50%;
  padding: 4px;
  width: 28px;
  height: 28px;
  color: #087f8c;
}
.sf-profile-card h2 {
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
}
.sf-profile-card > p {
  font-size: 14px;
  color: #526574;
}
.sf-profile-card dl {
  width: 100%;
  margin: 10px 0;
}
.sf-profile-card dt,
.sf-profile-info-grid dt {
  font-size: 12px;
  color: #526574;
  margin-bottom: 6px;
}
.sf-profile-card dd {
  font-size: 14px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.sf-profile-card a {
  color: #087f8c;
}
.sf-profile-card .sf-profile-schedule {
  border-top: 1px solid #dce5e9;
  padding: 20px 0 0;
  width: 100%;
  gap: 12px;
  margin: 0;
}
.sf-profile-schedule small {
  display: block;
  font-size: 12px;
  color: #526574;
}
.sf-profile-schedule strong {
  display: block;
  margin-top: 5px;
}
.sf-profile-card > .sf-primary {
  width: 100%;
  margin-top: 8px;
}
.sf-profile-details > .tz-tabs {
  margin: 0;
  padding: 0 22px;
  justify-content: flex-start;
  flex-wrap: wrap;
  border-bottom: 1px solid #dce5e9;
}
.sf-profile-details > .tz-tabs button {
  padding: 18px 14px;
  font-size: 13px;
  flex: none;
}
.sf-profile-content {
  padding: 28px;
  min-height: 360px;
}
.sf-profile-content h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 16px;
}
.sf-profile-content h3:not(:first-child) {
  margin-top: 30px;
}
.sf-profile-content p {
  color: #526574;
  font-size: 14px;
  line-height: 1.7;
}
.sf-profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.sf-profile-info-grid dd {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.sf-profile-colleagues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sf-profile-colleagues button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  padding: 12px;
}
.sf-profile-colleagues strong {
  display: block;
  font-size: 13px;
}
.sf-profile-colleagues small {
  display: block;
  color: #526574;
  font-size: 12px;
  margin-top: 4px;
}
.sf-global-search input.ui-input {
  border: 1px solid #dce5e9 !important;
  background: #f7fafb !important;
  border-radius: 12px !important;
  padding-right: 42px !important;
  box-shadow: none !important;
  outline: none !important;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.sf-global-search input.ui-input:focus {
  border-color: #087f8c !important;
  background: white !important;
  outline: none !important;
  box-shadow: 0 0 0 3px #087f8c12 !important;
}
.sf-global-search-results {
  border-radius: 14px !important;
  border-color: #dce5e9 !important;
  box-shadow: 0 16px 45px #142c3b18 !important;
  padding: 6px !important;
  animation: sf-surface-in 0.16s ease-out;
}
.sf-global-search-results button {
  border: 0 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  background: white !important;
  box-shadow: none !important;
}
.sf-global-search-results button:hover,
.sf-global-search-results button:focus-visible {
  background: #edf6f5 !important;
  outline: 1px solid #087f8c !important;
  outline-offset: -1px;
}
.sf-global-search-results mark.search-highlight {
  background: #dff0ee !important;
  color: #087f8c !important;
  border-radius: 3px;
  padding: 0 2px;
}
.sf-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #6b7e89;
  border-radius: 7px;
}
.sf-search-clear:hover {
  background: #e7f1f2;
}
.tz-directory-filters {
  justify-content: flex-start !important;
}
.tz-directory-filters > label {
  flex: 1;
  max-width: 380px;
}
.tz-directory-filters .tz-tabs {
  margin-left: auto;
}
.staff-auth .sf-login-options input[type="checkbox"] {
  appearance: auto !important;
  accent-color: #087f8c;
  width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  min-width: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  flex: none;
}
.staff-auth .sf-login-options input[type="checkbox"]:focus-visible {
  outline: 2px solid #087f8c !important;
  outline-offset: 4px;
}
.sf-register-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.sf-register-progress {
  display: flex;
  gap: 20px;
  font-size: 11px;
  color: #748893;
  margin-bottom: 4px;
}
.sf-register-progress .is-active {
  color: #087f8c;
  font-weight: 650;
}
.sf-register-identity {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  background: #edf6f5;
  border: 1px solid #d6e9e6;
  border-radius: 12px;
  font-size: 13px;
}
.sf-register-identity > span {
  color: #526574;
}
.sf-register-identity button {
  text-align: left;
  color: #087f8c;
  font-size: 12px;
  margin-top: 4px;
}
.sf-register-extra {
  font-size: 13px;
  color: #526574;
}
.sf-register-extra summary {
  cursor: pointer;
  padding: 8px 0;
  color: #087f8c;
}
.sf-register-extra .sf-form {
  padding-top: 14px;
}
.staff-auth-form:has(.sf-register-form) {
  align-items: center !important;
}
.staff-auth-form:has(.sf-register-form) h1 {
  font-size: 32px !important;
  line-height: 1.2 !important;
}
body #nik49-settings .nik49-settings-shell {
  width: min(1040px, calc(100vw - 48px)) !important;
  height: min(780px, calc(100dvh - 64px)) !important;
  max-height: calc(100dvh - 32px) !important;
  margin: auto !important;
  display: grid !important;
  grid-template-columns: 210px minmax(0, 1fr) !important;
  border: 1px solid #dce5e9 !important;
  border-radius: 18px !important;
  background: #f5f8f9 !important;
  box-shadow: 0 28px 90px #142c3b30 !important;
  transform: none !important;
  overflow: hidden !important;
}
body #nik49-settings .nik49-settings-sidebar {
  padding: 24px 16px !important;
  background: #f1f6f7 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid #dce5e9 !important;
}
body #nik49-settings .nik49-settings-title {
  margin: 0 0 28px !important;
  padding: 0 6px !important;
  gap: 6px !important;
}
body #nik49-settings .nik49-settings-title p {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  font-weight: 650 !important;
  color: #66818b !important;
}
body #nik49-settings .nik49-settings-title h2 {
  font-size: 19px !important;
  margin-top: 8px !important;
}
body #nik49-settings .nik49-settings-nav {
  overflow: visible !important;
  display: grid !important;
  gap: 6px !important;
  padding: 0 !important;
}
body #nik49-settings .nik49-settings-tab {
  padding: 13px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  min-height: 44px !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  color: #526574 !important;
  background: transparent !important;
  line-height: 1.35 !important;
}
body #nik49-settings .nik49-settings-tab.is-active {
  background: #e0eeee !important;
  color: #087f8c !important;
}
body #nik49-settings .nik49-settings-tab > span {
  width: 18px !important;
  height: 18px !important;
}
body #nik49-settings .nik49-settings-footer {
  margin-top: auto !important;
  font-size: 11px !important;
  line-height: 1.6 !important;
  padding: 16px 6px 0 !important;
}
body #nik49-settings .nik49-settings-content {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #f8fafb !important;
}
body #nik49-settings .nik49-settings-topbar {
  padding: 24px 28px !important;
  background: white !important;
  border-bottom: 1px solid #dce5e9 !important;
  margin: 0 !important;
  flex: none !important;
}
body #nik49-settings .nik49-settings-topbar h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
}
body #nik49-settings .nik49-settings-topbar p {
  font-size: 12px !important;
  color: #738590 !important;
  margin: 6px 0 0 !important;
}
body #nik49-settings .nik49-settings-panel {
  padding: 22px 28px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  flex: 1 !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bcd3d7 transparent;
}
body #nik49-settings .nik49-settings-actions {
  padding: 16px 28px !important;
  background: white !important;
  border-top: 1px solid #dce5e9 !important;
  margin: 0 !important;
  flex: none !important;
  font-size: 11px !important;
}
.sf-settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.sf-settings-subnav button {
  padding: 8px 11px;
  font-size: 12px;
  color: #526574;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
}
.sf-settings-subnav button[aria-selected="true"] {
  background: white;
  color: #087f8c;
  border-color: #cce0e2;
}
.sf-settings-subnav button:hover {
  background: #eaf3f4;
}
body #nik49-settings .nik49-form-grid {
  gap: 16px !important;
  margin-bottom: 18px !important;
}
body #nik49-settings .nik49-field > span {
  font-size: 12px !important;
  font-weight: 550 !important;
  color: #526574 !important;
}
body #nik49-settings .nik49-field :is(input, select) {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 9px !important;
  border-color: #dce5e9 !important;
  background: white !important;
  box-shadow: none !important;
}
body #nik49-settings .nik49-field :is(input, select, textarea):focus {
  border-color: #087f8c !important;
  outline: none !important;
  box-shadow: 0 0 0 3px #087f8c12 !important;
}
body #nik49-settings .nik49-btn {
  border: 1px solid #dce5e9 !important;
  border-radius: 9px !important;
  background: white !important;
  color: #526574 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
}
body #nik49-settings .nik49-btn-primary {
  background: #087f8c !important;
  border-color: #087f8c !important;
  color: white !important;
}
body #nik49-settings .nik49-btn-danger {
  background: #fff6f6 !important;
  border-color: #eacdd1 !important;
  color: #a43e4c !important;
}
body #nik49-settings .nik49-btn-ghost {
  border-color: transparent !important;
  background: transparent !important;
}
.sf-settings-avatar-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #dce5e9;
}
.sf-settings-avatar-row p {
  font-size: 12px;
  color: #738590;
  margin: 5px 0 10px;
}
.sf-settings-avatar-row strong {
  font-size: 15px;
}
body #nik49-settings .sf-settings-avatar-row .nik49-avatar-preview {
  width: 72px !important;
  height: 72px !important;
  flex: none;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.sf-settings-avatar-row .nik49-file-row {
  gap: 6px;
}
.sf-settings-avatar-row .nik49-file-button {
  padding: 0 !important;
  background: transparent !important;
  color: #087f8c !important;
  font-size: 12px !important;
  border: 0 !important;
  box-shadow: none !important;
}
.sf-settings-card {
  background: white;
  border: 1px solid #dce5e9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.sf-settings-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.sf-settings-card h4 {
  font-size: 15px;
  font-weight: 600;
}
.sf-settings-card p {
  font-size: 12px;
  color: #526574;
  line-height: 1.6;
  margin: 5px 0;
}
.sf-settings-hint {
  font-size: 12px;
  color: #738590;
  line-height: 1.65;
  margin: 12px 0;
}
.sf-session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e5ecee;
  padding: 16px 0;
}
.sf-session-row > div {
  flex: 1;
  min-width: 0;
}
.sf-session-row strong {
  font-size: 13px;
}
.sf-session-row small {
  font-size: 11px;
  color: #738590;
}
.sf-session-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #edf6f5;
  color: #087f8c;
  flex: none;
}
.sf-session-icon svg {
  width: 19px;
  height: 19px;
}
.sf-session-end-all {
  border-top: 1px solid #dce5e9;
  padding-top: 18px;
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
body #nik49-emoji-popover {
  z-index: 100 !important;
  width: min(360px, calc(100vw - 24px)) !important;
  height: min(420px, calc(100dvh - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  padding: 14px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px #142c3b26 !important;
  background: white !important;
  color: #172b3a !important;
}
body #nik49-emoji-popover.is-open {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  animation: sf-surface-in 0.18s ease-out !important;
}
.nik49-emoji-heading {
  flex: none;
  margin: 0 !important;
}
.nik49-emoji-tabs {
  flex: none;
  gap: 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
}
.nik49-emoji-tab {
  font-size: 10px !important;
  padding: 5px 7px !important;
  border-radius: 6px !important;
}
.nik49-emoji-search {
  flex: none;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  border: 1px solid #dce5e9 !important;
  background: #f7fafb !important;
  color: #172b3a !important;
}
.nik49-emoji-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 4px !important;
  overflow: auto !important;
  min-height: 0 !important;
  flex: 1;
  scrollbar-width: thin;
}
.nik49-emoji-cell {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}
.sf-emoji-glyph,
.nik49-emoji-cell,
.nik49-current-emoji,
.chat-emoji-grid button {
  font-family:
    "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
  font-variant-emoji: emoji;
  font-size: 24px !important;
  line-height: 1.2 !important;
}
.nik49-current-emoji {
  font-size: 26px !important;
  background: #f1f7f7 !important;
  border-radius: 10px !important;
}
.sf-emoji-glyph {
  font-size: 14px !important;
}
.nik49-emoji-cell:hover,
.chat-emoji-grid button:hover {
  background: #edf6f5 !important;
  transform: translateY(-1px);
  transition:
    background 0.12s,
    transform 0.12s;
}
.nik49-emoji-cell.is-selected {
  background: #dff0ee !important;
}
.staff-chat-inputbar,
.chat-emoji-anchor {
  overflow: visible !important;
}
.chat-emoji-picker {
  width: min(360px, calc(100vw - 42px)) !important;
  max-height: min(420px, 65dvh) !important;
  border: 1px solid #dce5e9 !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-shadow: 0 14px 40px #142c3b20 !important;
  background: white !important;
  animation: sf-surface-in 0.18s ease-out;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-chat-emoji-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}
.sf-chat-emoji-heading button {
  padding: 3px;
  color: #738590;
}
.sf-chat-emoji-search {
  border: 1px solid #dce5e9 !important;
  border-radius: 8px !important;
  background: #f7fafb !important;
  height: 35px !important;
  min-height: 35px !important;
  width: 100%;
  font-size: 12px !important;
  padding: 0 10px !important;
}
.chat-emoji-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  overflow: visible !important;
}
.chat-emoji-tabs button {
  font-size: 10px !important;
  padding: 5px 7px !important;
  border-radius: 6px !important;
}
.chat-emoji-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 3px !important;
  overflow-y: auto !important;
  max-height: 240px !important;
  scrollbar-width: thin;
}
.chat-emoji-grid button {
  height: 36px !important;
  border: 0 !important;
  border-radius: 8px !important;
  transition:
    background 0.12s,
    transform 0.12s;
}
body #nik49-settings .nik49-settings-shell,
body #nik49-settings :is(h2, h3, h4, button, input, select, textarea) {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
}
body #nik49-settings button.nik49-emoji-cell,
body #nik49-settings .nik49-current-emoji {
  font-family:
    "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif !important;
  font-weight: 400 !important;
}
body #nik49-settings .sf-settings-avatar-row .nik49-file-button > span {
  color: #087f8c !important;
  background: transparent !important;
}
body #nik49-settings .nik49-save-state {
  white-space: normal !important;
  min-width: 0;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .sf-session-row > div {
    flex-basis: calc(100% - 50px);
  }
  .sf-session-row .sf-status {
    margin-left: 50px;
    flex: none;
  }
  .sf-session-row .nik49-btn {
    margin-left: 50px;
  }
  body #nik49-settings .nik49-settings-actions {
    gap: 8px !important;
  }
  body #nik49-settings .nik49-save-state {
    font-size: 10px !important;
    max-width: 42%;
  }
}
@keyframes sf-surface-in {
  from {
    opacity: 0;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 1050px) {
  .sf-profile-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
  }
  .sf-profile-content {
    padding: 22px;
  }
  .sf-profile-info-grid,
  .sf-profile-colleagues {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sf-profile-layout {
    grid-template-columns: 1fr;
  }
  .sf-profile-card {
    padding: 22px;
  }
  .sf-profile-card .sf-profile-avatar {
    width: 100px;
    height: 100px;
  }
  .sf-profile-card .sf-profile-avatar > div {
    width: 100px !important;
    height: 100px !important;
  }
  .sf-profile-details > .tz-tabs {
    padding: 0 8px;
  }
  .sf-profile-details > .tz-tabs button {
    padding: 14px 10px;
    font-size: 12px;
  }
  .sf-profile-content {
    padding: 20px;
    min-height: 0;
  }
  .tz-directory-filters .tz-tabs {
    margin-left: 0;
  }
  body #nik49-settings .nik49-settings-shell {
    grid-template-columns: 1fr !important;
    width: calc(100vw - 20px) !important;
    height: calc(100dvh - 32px) !important;
  }
  body #nik49-settings .nik49-settings-sidebar {
    padding: 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dce5e9 !important;
    display: block !important;
  }
  body #nik49-settings .nik49-settings-title {
    margin: 0 0 10px !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  body #nik49-settings .nik49-settings-title p {
    display: none !important;
  }
  body #nik49-settings .nik49-settings-title h2 {
    margin: 0 !important;
    font-size: 17px !important;
  }
  body #nik49-settings .nik49-settings-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px !important;
  }
  body #nik49-settings .nik49-settings-tab {
    min-height: 34px !important;
    padding: 8px !important;
    font-size: 11px !important;
    flex: 1;
  }
  body #nik49-settings .nik49-settings-tab > span {
    display: none !important;
  }
  body #nik49-settings .nik49-settings-footer {
    display: none !important;
  }
  body #nik49-settings .nik49-settings-topbar {
    padding: 16px 18px !important;
  }
  body #nik49-settings .nik49-settings-topbar h3 {
    font-size: 20px !important;
  }
  body #nik49-settings .nik49-settings-panel {
    padding: 16px !important;
  }
  body #nik49-settings .nik49-settings-actions {
    padding: 12px 16px !important;
  }
  .sf-settings-card {
    padding: 16px;
  }
  .sf-session-row {
    flex-wrap: wrap;
  }
  .sf-session-row .sf-status {
    margin-left: 50px;
  }
  .sf-settings-card-heading {
    flex-wrap: wrap;
  }
  .sf-settings-avatar-row {
    gap: 12px;
  }
  .sf-settings-avatar-row .nik49-file-row {
    flex-wrap: wrap;
  }
  .sf-register-progress {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf-global-search-results,
  .chat-emoji-picker,
  body #nik49-emoji-popover.is-open {
    animation: none !important;
  }
  .nik49-emoji-cell,
  .chat-emoji-grid button {
    transition: none !important;
    transform: none !important;
  }
}

.staff-chat-message-text,
.sf-profile-card .sf-status,
.sf-global-search-results .tz-pill,
.hub-status-text {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    "Noto Color Emoji",
    sans-serif !important;
}

.sf-emoji-image {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.23em;
  flex: none;
}
.nik49-emoji-cell .sf-emoji-image,
.chat-emoji-grid .sf-emoji-image {
  width: 26px;
  height: 26px;
}
.nik49-current-emoji .sf-emoji-image {
  width: 28px;
  height: 28px;
}

body .staff-v3[data-staff-page="communications"] .chat-emoji-picker {
  display: flex !important;
  overflow: hidden !important;
}
body:has(#nik49-settings.is-open) #nik49-toast {
  bottom: auto;
  top: 18px;
  right: 18px;
  max-width: calc(100vw - 36px);
}
