.nikmed-step29-presence-root,
.nikmed-step29-settings,
.nikmed-step29-settings * {
  box-sizing: border-box;
}
.nikmed-step29-presence-root {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1190;
  width: min(390px, calc(100vw - 44px));
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nikmed-step29-presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid rgba(125, 211, 252, .7);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  padding: 8px 10px 8px 14px;
  color: #0f172a;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
  backdrop-filter: blur(18px) saturate(145%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nikmed-step29-presence-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, .85);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}
.nikmed-step29-presence-pill strong {
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.nikmed-step29-presence-pill > span:not(.nikmed-step29-live-dot) {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.nikmed-step29-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .14), 0 0 18px rgba(34, 197, 94, .78);
  animation: nikmed-step29-pulse 1.8s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes nikmed-step29-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .72; }
}
.nikmed-step29-mini-avatars {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}
.nikmed-step29-mini-avatars img,
.nikmed-step29-mini-avatars span {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  font-size: 10px;
  font-weight: 850;
}
.nikmed-step29-mini-avatars img:first-child,
.nikmed-step29-mini-avatars span:first-child { margin-left: 0; }
.nikmed-step29-presence-panel {
  display: none;
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, .86);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .24);
  backdrop-filter: blur(22px) saturate(145%);
}
.nikmed-step29-presence-panel.is-open { display: block; }
.nikmed-step29-presence-panel header,
.nikmed-step29-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.nikmed-step29-presence-panel header {
  padding: 18px 18px 12px;
}
.nikmed-step29-presence-panel header p,
.nikmed-step29-settings-head p,
.nikmed-step29-label {
  margin: 0 0 5px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nikmed-step29-presence-panel h3,
.nikmed-step29-inline-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.nikmed-step29-presence-panel header button,
.nikmed-step29-secondary,
.nikmed-step29-primary,
.nikmed-step29-danger {
  border: 0;
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.nikmed-step29-presence-panel header button,
.nikmed-step29-secondary {
  border: 1px solid rgba(125, 211, 252, .62);
  background: rgba(240, 249, 255, .85);
  color: #0369a1;
}
.nikmed-step29-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 16px 34px rgba(14, 165, 233, .25);
}
.nikmed-step29-danger {
  border: 1px solid rgba(248, 113, 113, .34);
  color: #b91c1c;
  background: rgba(254, 226, 226, .92);
}
.nikmed-step29-presence-panel header button:hover,
.nikmed-step29-secondary:hover,
.nikmed-step29-primary:hover,
.nikmed-step29-danger:hover { transform: translateY(-1px); }
.nikmed-step29-secondary:disabled,
.nikmed-step29-primary:disabled,
.nikmed-step29-danger:disabled { opacity: .6; cursor: wait; transform: none; }
.nikmed-step29-presence-summary,
.nikmed-step29-settings-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 12px;
}
.nikmed-step29-settings-stats { padding: 0 0 14px; }
.nikmed-step29-presence-summary span,
.nikmed-step29-settings-stats span {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 16px;
  background: rgba(248, 250, 252, .78);
  padding: 9px 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.nikmed-step29-presence-summary b,
.nikmed-step29-settings-stats b {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
}
.nikmed-step29-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding: 0 12px 14px;
}
.nikmed-step29-user-list.is-settings {
  max-height: 520px;
  padding: 0;
}
.nikmed-step29-user-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  padding: 10px;
}
.nikmed-step29-user-row.is-compact {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  border-radius: 18px;
  padding: 9px;
}
.nikmed-step29-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}
.nikmed-step29-user-row.is-compact .nikmed-step29-avatar {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  font-size: 12px;
}
.nikmed-step29-avatar.is-large {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  font-size: 19px;
}
.nikmed-step29-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.nikmed-step29-avatar i {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #94a3b8;
}
.nikmed-step29-user-row[data-status="online"] .nikmed-step29-avatar i,
.status-online { color: #047857 !important; }
.nikmed-step29-user-row[data-status="online"] .nikmed-step29-avatar i { background: #22c55e; }
.nikmed-step29-user-row[data-status="busy"] .nikmed-step29-avatar i,
.status-busy { color: #b45309 !important; }
.nikmed-step29-user-row[data-status="busy"] .nikmed-step29-avatar i { background: #f59e0b; }
.nikmed-step29-user-row[data-status="offline"] .nikmed-step29-avatar i,
.status-offline { color: #64748b !important; }
.nikmed-step29-user-main,
.nikmed-step29-user-status { min-width: 0; }
.nikmed-step29-user-name {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nikmed-step29-user-name em {
  border-radius: 999px;
  background: rgba(224, 242, 254, .88);
  padding: 2px 6px;
  color: #0369a1;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.nikmed-step29-user-meta {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nikmed-step29-user-status {
  text-align: right;
  white-space: nowrap;
}
.nikmed-step29-user-status b {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}
.nikmed-step29-user-status span {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}
.nikmed-step29-presence-panel footer {
  border-top: 1px solid rgba(226, 232, 240, .8);
  padding: 12px 16px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}
.nikmed-step29-settings {
  position: fixed;
  inset: 0;
  z-index: 1320;
  display: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.nikmed-step29-settings.is-visible { display: block; }
.nikmed-step29-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(12px);
}
.nikmed-step29-settings-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(640px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, .55);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(248, 250, 252, .97), rgba(225, 244, 255, .94));
  box-shadow: 0 44px 120px rgba(15, 23, 42, .36);
  color: #0f172a;
  display: flex;
  flex-direction: column;
}
.nikmed-step29-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(203, 213, 225, .76);
  background: rgba(255, 255, 255, .58);
}
.nikmed-step29-settings-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.nikmed-step29-settings-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}
.nikmed-step29-settings-head button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .4);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  color: #475569;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.nikmed-step29-accordion {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px;
}
.nikmed-step29-accordion details {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, .78);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}
.nikmed-step29-accordion details + details { margin-top: 12px; }
.nikmed-step29-accordion summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
}
.nikmed-step29-accordion summary::-webkit-details-marker { display: none; }
.nikmed-step29-accordion summary::after {
  content: '+';
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125, 211, 252, .62);
  border-radius: 14px;
  background: rgba(240, 249, 255, .8);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}
.nikmed-step29-accordion details[open] summary::after { content: '−'; }
.nikmed-step29-accordion summary span {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 15px;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.nikmed-step29-accordion summary strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}
.nikmed-step29-accordion summary em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}
.nikmed-step29-accordion-body {
  border-top: 1px solid rgba(226, 232, 240, .86);
  padding: 16px 18px 18px;
}
.nikmed-step29-profile-card,
.nikmed-step29-security-card,
.nikmed-step29-info-grid > div,
.nikmed-step29-help-list > div {
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
}
.nikmed-step29-profile-card { padding: 16px; }
.nikmed-step29-profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nikmed-step29-profile-main h3 {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
}
.nikmed-step29-profile-main p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}
.nikmed-step29-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.nikmed-step29-profile-grid div {
  min-width: 0;
  border-radius: 17px;
  background: rgba(248, 250, 252, .76);
  padding: 11px 12px;
}
.nikmed-step29-profile-grid span,
.nikmed-step29-info-grid span,
.nikmed-step29-help-list span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.nikmed-step29-profile-grid b,
.nikmed-step29-info-grid b,
.nikmed-step29-help-list b {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.nikmed-step29-security-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
}
.nikmed-step29-security-card h3,
.nikmed-step29-security-card p,
.nikmed-step29-security-card small { margin: 0; }
.nikmed-step29-security-card p:not(.nikmed-step29-label) {
  margin-top: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}
.nikmed-step29-security-card small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.nikmed-step29-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}
.nikmed-step29-badge.is-on {
  border: 1px solid rgba(16, 185, 129, .3);
  background: rgba(209, 250, 229, .86);
  color: #047857;
}
.nikmed-step29-badge.is-off,
.nikmed-step29-badge.is-loading {
  border: 1px solid rgba(14, 165, 233, .24);
  background: rgba(224, 242, 254, .88);
  color: #0369a1;
}
.nikmed-step29-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}
.nikmed-step29-message {
  display: none;
  margin-top: 12px;
  border-radius: 18px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
}
.nikmed-step29-message.is-ok {
  display: block;
  color: #047857;
  background: rgba(209, 250, 229, .78);
}
.nikmed-step29-message.is-error {
  display: block;
  color: #be123c;
  background: rgba(255, 228, 230, .9);
}
.nikmed-step29-steps {
  margin: 14px 0 0;
  padding-left: 21px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}
.nikmed-step29-inline-head {
  margin-bottom: 14px;
}
.nikmed-step29-inline-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.nikmed-step29-info-grid,
.nikmed-step29-help-list {
  display: grid;
  gap: 10px;
}
.nikmed-step29-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nikmed-step29-info-grid > div,
.nikmed-step29-help-list > div {
  padding: 14px;
}
.nikmed-step29-empty {
  border: 1px dashed rgba(148, 163, 184, .6);
  border-radius: 18px;
  padding: 16px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}
@media (max-width: 720px) {
  .nikmed-step29-presence-root {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
  .nikmed-step29-presence-pill {
    width: 100%;
    justify-content: center;
  }
  .nikmed-step29-presence-panel {
    max-height: calc(100vh - 92px);
    overflow: auto;
  }
  .nikmed-step29-settings-panel {
    inset: 8px;
    width: auto;
    border-radius: 28px;
  }
  .nikmed-step29-settings-head {
    padding: 20px 18px 14px;
  }
  .nikmed-step29-settings-head h2 { font-size: 24px; }
  .nikmed-step29-accordion { padding: 12px; }
  .nikmed-step29-accordion summary {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding: 15px;
  }
  .nikmed-step29-profile-grid,
  .nikmed-step29-info-grid,
  .nikmed-step29-security-card {
    grid-template-columns: 1fr;
  }
  .nikmed-step29-actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nikmed-step29-user-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .nikmed-step29-user-status {
    grid-column: 2;
    text-align: left;
  }
}
html.nikmed-step29-scroll-lock,
body.nikmed-step29-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.nikmed-step29-settings-panel,
.nikmed-step29-accordion,
.nikmed-step29-user-list,
.nikmed-step29-presence-panel {
  overscroll-behavior: contain;
}
.nikmed-step29-profile-edit {
  margin-top: 14px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  padding: 16px;
}
.nikmed-step29-inline-head.is-profile-edit {
  align-items: center;
  margin-bottom: 14px;
}
.nikmed-step29-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.nikmed-step29-form-grid label,
.nikmed-step29-readonly-grid > div {
  min-width: 0;
}
.nikmed-step29-form-grid label.is-wide {
  grid-column: 1 / -1;
}
.nikmed-step29-form-grid label span,
.nikmed-step29-readonly-grid span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.nikmed-step29-form-grid input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 16px;
  background: #fff;
  padding: 0 14px;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nikmed-step29-form-grid input:focus {
  border-color: rgba(14, 165, 233, .75);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .22);
}
.nikmed-step29-readonly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.nikmed-step29-readonly-grid > div {
  border-radius: 17px;
  background: rgba(248, 250, 252, .82);
  padding: 11px 12px;
}
.nikmed-step29-readonly-grid b {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .nikmed-step29-form-grid,
  .nikmed-step29-readonly-grid {
    grid-template-columns: 1fr;
  }
  .nikmed-step29-inline-head.is-profile-edit {
    align-items: flex-start;
    flex-direction: column;
  }
}
.nikmed-step29-section-block {
  margin-top: 16px;
  border-radius: 20px;
  background: rgba(248, 250, 252, .82);
  border: 1px solid rgba(226, 232, 240, .8);
  padding: 14px;
}
.nikmed-step29-section-title {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}
.nikmed-step29-form-grid textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nikmed-step29-form-grid textarea:focus {
  border-color: rgba(14, 165, 233, .75);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .22);
}
.nikmed-step29-form-grid small,
.nikmed-step29-upload-box small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}
.nikmed-step29-upload-box {
  border: 1px dashed rgba(56, 189, 248, .5);
  border-radius: 16px;
  background: rgba(240, 249, 255, .75);
  padding: 12px 14px;
}
.nikmed-step29-upload-box input[type="file"] {
  width: 100%;
  font-size: 14px;
  color: #0f172a;
}
.nikmed-step29-upload-field {
  grid-column: 1 / -1;
}
