:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body.workhub-mobile-body {
  margin: 0;
  min-height: 100%;
  background: #e9eef5;
}

body.workhub-mobile-body {
  overflow-x: hidden;
}

.workhub-mobile-body a {
  color: inherit;
  text-decoration: none;
}

.workhub-mobile-body button,
.workhub-mobile-body input,
.workhub-mobile-body textarea {
  font: inherit;
}

.whm-app {
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(18, 31, 52, 0.04);
}

.whm-page-header,
.whm-chat-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(74px + env(safe-area-inset-top));
  padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--wh-soft-line);
  backdrop-filter: blur(18px);
}

.whm-page-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.whm-page-header span,
.whm-chat-title span {
  display: block;
  color: var(--wh-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.whm-page-header h1,
.whm-chat-title strong {
  display: block;
  margin: 2px 0 0;
  overflow: hidden;
  color: #111827;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whm-icon-button,
.whm-profile-chip,
.whm-compose-button,
.whm-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
}

.whm-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.whm-icon-button:active,
.whm-compose-button:active,
.whm-send-button:active,
.whm-fab:active {
  transform: translateY(1px);
}

.whm-icon-button svg {
  width: 22px;
  height: 22px;
}

.whm-profile-chip,
.whm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #5477f0, #6b55d8);
  font-weight: 850;
}

.whm-profile-chip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
}

.whm-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
}

.whm-avatar.soft {
  background: linear-gradient(135deg, #23a47d, #2583c7);
}

.whm-avatar.bot {
  background: #06c755;
  color: #fff;
}

.whm-message-tabs {
  position: sticky;
  top: calc(74px + env(safe-area-inset-top));
  z-index: 19;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid var(--wh-soft-line);
}

.whm-message-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 800;
}

.whm-message-tabs a span {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 850;
}

.whm-message-tabs a.active {
  color: var(--wh-blue);
}

.whm-message-tabs a.active span {
  color: var(--wh-blue);
}

.whm-message-tabs a.active::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--wh-blue);
  content: "";
}

.whm-inline-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 12px 16px;
  padding: 0 12px;
  min-height: 44px;
  border: 1px solid var(--wh-line);
  border-radius: 14px;
  background: #f6f8fb;
  color: #6b7280;
}

.whm-inline-search[hidden] {
  display: none;
}

.whm-inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
}

.whm-inline-search a {
  color: var(--wh-blue);
  font-size: 13px;
  font-weight: 800;
}

.whm-list-screen,
.whm-section-screen {
  min-height: 100dvh;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.whm-room-list,
.whm-card-list {
  padding: 8px 0 22px;
}

.whm-room-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 10px 18px;
  border-bottom: 1px solid #f0f3f8;
}

.whm-room-item:active,
.whm-person-card:active,
.whm-card:active {
  background: #f7f9fc;
}

.whm-room-copy {
  min-width: 0;
}

.whm-room-copy strong,
.whm-person-card strong,
.whm-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-room-copy small,
.whm-person-card small,
.whm-card p,
.whm-empty-state span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.whm-room-copy small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.whm-room-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.whm-room-meta em,
.whm-card em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2d5fc4;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.whm-fab {
  position: fixed;
  right: max(18px, calc((100vw - 520px) / 2 + 18px));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: #0eb65d;
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 182, 93, 0.35);
  cursor: pointer;
}

.whm-fab svg {
  width: 30px;
  height: 30px;
}

.whm-tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 28;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 520px;
  min-height: calc(64px + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--wh-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.whm-tabbar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
}

.whm-tabbar-item svg {
  width: 23px;
  height: 23px;
}

.whm-tabbar-item.active {
  color: #08a867;
}

.whm-tabbar-item em {
  position: absolute;
  top: -1px;
  right: 20%;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53946;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 18px;
  text-align: center;
}

.whm-chat-screen {
  min-height: 100dvh;
  background: #f7f9fc;
}

.whm-chat-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px 38px 38px;
  gap: 8px;
}

.whm-chat-title {
  min-width: 0;
}

.whm-chat-title strong {
  margin: 0;
  font-size: 18px;
}

.whm-chat-more {
  position: relative;
}

.whm-chat-more summary {
  list-style: none;
}

.whm-chat-more summary::-webkit-details-marker {
  display: none;
}

.whm-chat-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  width: 180px;
  padding: 8px;
  border: 1px solid var(--wh-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.whm-chat-more-menu a,
.whm-chat-more-menu button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.whm-chat-more-menu a:active,
.whm-chat-more-menu button:active {
  background: #f4f7fb;
}

.whm-chat-messages {
  height: calc(100dvh - 74px - env(safe-area-inset-top));
  overflow-y: auto;
  padding: 16px 14px calc(104px + env(safe-area-inset-bottom));
}

.whm-day-divider {
  width: fit-content;
  max-width: calc(100% - 64px);
  margin: 16px auto;
  padding: 7px 16px;
  border-radius: 999px;
  background: #eceff4;
  color: #6b7280;
  font-size: 13px;
  font-weight: 850;
}

.whm-message {
  margin: 8px 0;
}

.whm-system-message {
  width: min(360px, calc(100% - 48px));
  margin: 18px auto;
  color: #687386;
  text-align: center;
}

.whm-system-message p {
  margin: 0;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.85;
  white-space: pre-wrap;
}

.whm-message header {
  margin: 0 0 3px 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.whm-message-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.whm-message.own .whm-message-row {
  justify-content: flex-end;
}

.whm-message.other .whm-message-row {
  justify-content: flex-start;
}

.whm-bubble {
  max-width: min(78%, 340px);
  padding: 11px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #edf1f7;
  box-shadow: 0 2px 7px rgba(20, 30, 52, 0.04);
}

.whm-message.own .whm-bubble {
  border-color: #b8e6f4;
  background: #bfeafb;
}

.whm-bubble p {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.whm-message time {
  flex: 0 0 auto;
  color: #5f6775;
  font-size: 12px;
  font-weight: 800;
}

.whm-chat-empty,
.whm-empty-state {
  margin: 28px 18px;
  padding: 28px 20px;
  border: 1px solid var(--wh-line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.whm-chat-empty strong,
.whm-empty-state strong {
  display: block;
  color: #111827;
  font-size: 17px;
  font-weight: 850;
}

.whm-compose {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 40px 40px minmax(0, 1fr) 46px;
  align-items: end;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--wh-line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
}

.whm-compose-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #111827;
}

.whm-compose-button svg {
  width: 26px;
  height: 26px;
}

.whm-compose-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: end;
  min-height: 42px;
  border-radius: 22px;
  background: #f0f2f6;
  padding: 5px 5px 5px 15px;
}

.whm-compose-field textarea {
  width: 100%;
  min-width: 0;
  max-height: 96px;
  min-height: 32px;
  padding: 6px 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.whm-compose-field textarea::placeholder {
  color: #8a92a1;
  font-weight: 750;
}

.whm-compose-button.inside {
  width: 36px;
  height: 36px;
  color: #4b5563;
}

.whm-send-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--wh-primary);
  color: #fff;
}

.whm-send-button svg {
  width: 22px;
  height: 22px;
}

.whm-compose-popover {
  position: absolute;
  left: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  width: min(270px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--wh-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.whm-compose-popover[hidden] {
  display: none;
}

.whm-compose-popover button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f6f8fb;
  color: #111827;
  font-weight: 850;
  cursor: pointer;
}

.whm-compose-popover.emoji {
  grid-template-columns: repeat(4, 1fr);
  width: 238px;
}

.whm-compose-popover.emoji button {
  justify-content: center;
  font-size: 22px;
}

.whm-card,
.whm-person-card,
.whm-org-summary {
  margin: 10px 16px;
  border: 1px solid var(--wh-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.whm-card {
  padding: 15px;
}

.whm-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.whm-card p {
  display: block;
  margin: 10px 0 0;
  color: #374151;
  white-space: pre-wrap;
}

.whm-card small,
.whm-person-card span {
  display: block;
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.whm-org-summary,
.whm-person-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.whm-org-summary {
  grid-template-columns: 46px minmax(0, 1fr);
  background: #f8fbff;
}

.whm-org-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e8f2ff;
  color: #2563d9;
}

.whm-org-summary strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
}

.whm-org-summary span {
  color: var(--wh-muted);
  font-size: 13px;
  font-weight: 750;
}

.whm-person-card > div {
  min-width: 0;
}

.whm-person-card form {
  margin: 0;
}

.whm-person-card button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #eef8f4;
  color: var(--wh-primary-dark);
  font-size: 13px;
  font-weight: 850;
}

.whm-picker-dialog {
  width: 100%;
  max-width: 520px;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.whm-picker-dialog::backdrop {
  background: rgba(17, 24, 39, 0.38);
}

.whm-picker-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: min(78dvh, 720px);
  padding: 0;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.2);
}

.whm-picker-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
}

.whm-picker-panel header span {
  color: var(--wh-muted);
  font-size: 12px;
  font-weight: 800;
}

.whm-picker-panel header strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 20px;
  font-weight: 850;
}

.whm-picker-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 18px 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: #f2f5f9;
  color: #6b7280;
}

.whm-picker-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 16px;
}

.whm-picker-list {
  overflow-y: auto;
  padding: 0 10px 12px;
}

.whm-picker-member,
.whm-picker-room {
  display: grid;
  grid-template-columns: 22px 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.whm-picker-room {
  grid-template-columns: 48px minmax(0, 1fr);
}

.whm-picker-member:active,
.whm-picker-room:active {
  background: #f6f8fb;
}

.whm-picker-member input {
  width: 20px;
  height: 20px;
  accent-color: var(--wh-primary);
}

.whm-picker-member .whm-avatar,
.whm-picker-room .whm-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.whm-picker-member strong,
.whm-picker-room strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-picker-member small,
.whm-picker-room small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--wh-muted);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-picker-divider {
  margin: 12px 8px 4px;
  color: var(--wh-muted);
  font-size: 12px;
  font-weight: 850;
}

.whm-picker-panel footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--wh-soft-line);
}

.whm-primary-button,
.whm-secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 850;
  cursor: pointer;
}

.whm-primary-button {
  border: 0;
  background: var(--wh-primary);
  color: #fff;
}

.whm-secondary-button {
  border: 1px solid var(--wh-line);
  background: #fff;
  color: #374151;
}

.whm-directory-screen {
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  background: #fff;
}

.whm-directory-header {
  position: sticky;
  top: 0;
  z-index: 28;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: calc(76px + env(safe-area-inset-top));
  padding: calc(18px + env(safe-area-inset-top)) 20px 13px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.whm-directory-header h1 {
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-directory-header .whm-profile-chip {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.whm-directory-tabs {
  position: sticky;
  top: calc(76px + env(safe-area-inset-top));
  z-index: 27;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 46px;
  padding: 0 24px;
  border-bottom: 1px solid #edf1f5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.whm-directory-tabs a,
.whm-directory-tabs button {
  position: relative;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 17px;
  font-weight: 900;
  line-height: 46px;
}

.whm-directory-tabs .active {
  color: #1677d2;
}

.whm-directory-tabs .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1677d2;
  content: "";
}

.whm-directory-content {
  background: #fff;
}

.whm-directory-content .whm-empty-state {
  margin-top: 28px;
}

.whm-directory-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid #edf1f5;
  color: #6b7280;
  font-size: 15px;
  font-weight: 850;
  overflow-x: auto;
  white-space: nowrap;
}

.whm-directory-breadcrumb a,
.whm-directory-breadcrumb span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
}

.whm-directory-breadcrumb a::after {
  margin-left: 8px;
  color: #a6adba;
  content: "›";
  font-size: 22px;
  font-weight: 500;
}

.whm-directory-breadcrumb span {
  color: #4b5563;
}

.whm-directory-count {
  padding: 22px 24px 8px;
  color: #374151;
  font-size: 15px;
  font-weight: 900;
}

.whm-directory-count strong {
  color: #1677d2;
  font-weight: 950;
}

.whm-directory-list {
  padding: 0 0 28px;
}

.whm-directory-person {
  margin: 0;
}

.whm-directory-person button {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 86px;
  padding: 8px 24px;
  border: 0;
  background: #fff;
  color: inherit;
  text-align: left;
}

.whm-directory-person button:active {
  background: #f6f8fb;
}

.whm-directory-person .whm-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f7dd6, #6757f1);
  font-size: 25px;
  font-weight: 900;
}

.whm-directory-person:nth-child(3n + 1) .whm-avatar {
  background: linear-gradient(135deg, #5b82cf, #5171d7);
}

.whm-directory-person:nth-child(3n + 2) .whm-avatar {
  background: linear-gradient(135deg, #6475ff, #6b55e8);
}

.whm-directory-person:nth-child(3n) .whm-avatar {
  background: linear-gradient(135deg, #20a997, #0f8f9f);
}

.whm-directory-person-copy {
  display: block;
  min-width: 0;
}

.whm-directory-person-copy strong,
.whm-directory-person-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-directory-person-copy strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.whm-directory-person-copy small {
  margin-top: 6px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.whm-directory-message-action {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 48px;
  min-height: 54px;
  color: #167d78;
}

.whm-directory-message-action svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.3;
}

.whm-directory-message-action small {
  margin-top: 3px;
  color: #167d78;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.whm-directory-fab {
  position: fixed;
  right: max(24px, calc((100vw - 520px) / 2 + 24px));
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: #06c755;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.whm-directory-fab svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.whm-directory-drawer-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.whm-directory-drawer-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.whm-directory-drawer {
  width: min(80vw, 420px);
  height: 100dvh;
  overflow-y: auto;
  background: #fff;
  box-shadow: 18px 0 34px rgba(15, 23, 42, 0.16);
}

.whm-directory-drawer > header {
  display: flex;
  align-items: flex-end;
  min-height: calc(88px + env(safe-area-inset-top));
  padding: calc(28px + env(safe-area-inset-top)) 24px 18px;
}

.whm-directory-drawer h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.whm-drawer-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 22px 22px;
  border-bottom: 1px solid #edf1f5;
}

.whm-drawer-shortcuts button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 86px;
  border: 0;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 850;
}

.whm-drawer-shortcuts svg {
  width: 30px;
  height: 30px;
  color: #111827;
}

.whm-drawer-section {
  padding: 0 0 24px;
  border-bottom: 1px solid #edf1f5;
}

.whm-drawer-section > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 24px;
}

.whm-drawer-section h3 {
  margin: 0;
  color: #374151;
  font-size: 19px;
  font-weight: 950;
}

.whm-drawer-section header a {
  min-width: 74px;
  padding: 8px 16px;
  border: 1px solid #d7dde7;
  border-radius: 7px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.whm-drawer-section header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 24px;
}

.whm-drawer-list {
  display: grid;
  gap: 4px;
}

.whm-drawer-list a,
.whm-drawer-list button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  border: 0;
  background: #fff;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  text-align: left;
}

.whm-drawer-list a:active,
.whm-drawer-list button:active {
  background: #f6f8fb;
}

.whm-drawer-list svg {
  width: 26px;
  height: 26px;
  color: #111827;
}

.whm-drawer-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-drawer-list .active {
  color: #1677d2;
}

.whm-drawer-list .active svg {
  color: #1677d2;
}

.whm-home-screen,
.whm-settings-screen {
  min-height: 100dvh;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  background: #fff;
}

.whm-settings-screen {
  padding-bottom: env(safe-area-inset-bottom);
  background: #f1f4f8;
}

.whm-home-header,
.whm-settings-header {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: calc(74px + env(safe-area-inset-top));
  padding: calc(18px + env(safe-area-inset-top)) 20px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.whm-home-company {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 850;
}

.whm-home-company strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-badge-button {
  position: relative;
}

.whm-badge-button em,
.whm-home-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.whm-badge-button em {
  top: 4px;
  right: 2px;
}

.whm-home-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px 18px;
}

.whm-home-profile h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.whm-home-profile p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 15px;
  font-weight: 800;
}

.whm-home-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5f7cff, #6754e8);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.whm-status-pill {
  padding: 0 24px 24px;
}

.whm-status-pill button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 17px;
  font-weight: 850;
  text-align: left;
}

.whm-status-pill svg {
  width: 22px;
  height: 22px;
}

.whm-home-section-tabs {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 8px 24px 20px;
}

.whm-home-section-tabs strong,
.whm-home-section-tabs a,
.whm-home-section-tabs span {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.whm-home-section-tabs strong {
  position: relative;
}

.whm-home-section-tabs strong::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #111827;
  content: "";
}

.whm-home-section-tabs a,
.whm-home-section-tabs span {
  color: #6b7280;
}

.whm-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 14px;
  padding: 22px 26px 42px;
}

.whm-home-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 74px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 850;
}

.whm-home-grid svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.whm-home-badge {
  top: 2px;
  right: 28px;
}

.whm-today-card {
  margin: 0 24px;
  min-height: 220px;
  padding: 24px 26px;
  border: 1px solid #e2e7ef;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.whm-today-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.whm-today-card h2 {
  margin: 0;
  color: #111827;
  font-size: 31px;
  font-weight: 950;
}

.whm-today-card header span {
  color: #6b7280;
  font-size: 16px;
  font-weight: 850;
}

.whm-today-card div {
  display: grid;
  min-height: 126px;
  place-items: center;
  color: #6b7280;
  text-align: center;
}

.whm-today-card strong {
  color: #111827;
  font-size: 18px;
}

.whm-today-card p {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.whm-settings-header {
  min-height: calc(88px + env(safe-area-inset-top));
  border-bottom: 1px solid #e5e9f0;
}

.whm-settings-header h1 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.whm-settings-list {
  padding: 0 0 32px;
}

.whm-settings-list h2 {
  margin: 0;
  padding: 16px 24px;
  background: #edf1f7;
  color: #5f6775;
  font-size: 14px;
  font-weight: 850;
}

.whm-settings-row,
.whm-toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 0 48px 0 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  text-align: left;
}

.whm-settings-row {
  cursor: pointer;
}

.whm-settings-row::after {
  position: absolute;
  right: 24px;
  color: #9ca3af;
  content: "›";
  font-size: 32px;
  font-weight: 300;
}

.whm-settings-row strong {
  flex: 1;
  overflow: hidden;
  color: #6b7280;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-settings-row.primary {
  min-height: 78px;
}

.whm-settings-note {
  margin: 0;
  padding: 12px 24px 18px;
  background: #edf1f7;
  color: #5f6775;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.whm-toggle-row {
  justify-content: space-between;
  padding-right: 24px;
}

.whm-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.whm-toggle-row i {
  position: relative;
  width: 64px;
  height: 36px;
  border-radius: 999px;
  background: #dfe4eb;
  transition: background 160ms ease;
}

.whm-toggle-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.whm-toggle-row input:checked + i {
  background: #1473e6;
}

.whm-toggle-row input:checked + i::after {
  transform: translateX(28px);
}

.whm-toggle-row.disabled {
  color: #374151;
}

.whm-logout-button {
  display: block;
  width: 100%;
  min-height: 78px;
  border: 0;
  background: #fff;
  color: #e11d48;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.whm-confirm-dialog {
  width: min(360px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
}

.whm-confirm-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.whm-confirm-panel {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.28);
}

.whm-confirm-panel header {
  padding: 24px 22px 18px;
}

.whm-confirm-panel strong,
.whm-confirm-panel span {
  display: block;
}

.whm-confirm-panel strong {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.whm-confirm-panel span {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 750;
}

.whm-confirm-panel footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e5e9f0;
}

.whm-confirm-panel button {
  min-height: 54px;
  border: 0;
  background: #fff;
  color: #374151;
  font-size: 16px;
  font-weight: 900;
}

.whm-confirm-panel button + button {
  border-left: 1px solid #e5e9f0;
}

.whm-confirm-panel button.danger {
  color: #e11d48;
}

.whm-admin-home-screen .whm-home-grid a {
  min-height: 92px;
}

.whm-admin-departments-screen,
.whm-admin-members-screen {
  min-height: 100dvh;
  background: #fff;
}

.whm-admin-mobile-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: calc(72px + env(safe-area-inset-top));
  padding: calc(16px + env(safe-area-inset-top)) 16px 10px;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
}

.whm-admin-mobile-header > div {
  min-width: 0;
  text-align: center;
}

.whm-admin-mobile-header strong,
.whm-admin-mobile-header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-mobile-header strong {
  color: #111827;
  font-size: 18px;
  font-weight: 950;
}

.whm-admin-mobile-header span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 750;
}

.whm-admin-bluebar {
  display: grid;
  grid-template-columns: 38px 36px minmax(0, 1fr) 42px 42px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 18px;
  background: #062650;
  color: #fff;
}

.whm-admin-bluebar svg {
  width: 28px;
  height: 28px;
}

.whm-admin-bluebar-icon,
.whm-admin-bluebar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
}

.whm-admin-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #16c784 0%, #1e88e5 68%, #4f46e5 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.whm-admin-bluebar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 25px;
  font-weight: 950;
}

.whm-admin-members-screen .whm-admin-bluebar {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 16px;
}

.whm-admin-members-screen .whm-admin-bluebar > svg {
  justify-self: center;
}

.whm-admin-help-button {
  font-size: 25px;
  font-weight: 900;
}

.whm-admin-dept-actions,
.whm-admin-member-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 0 22px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.whm-admin-dept-actions {
  grid-template-columns: minmax(0, 1fr) 44px auto auto;
}

.whm-admin-member-actions {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.whm-admin-dept-actions > div,
.whm-admin-member-actions > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.whm-admin-dept-actions h1,
.whm-admin-member-actions h1 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  font-weight: 950;
}

.whm-admin-dept-actions div span,
.whm-admin-member-actions div span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d7dde7;
  border-radius: 50%;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 900;
}

.whm-admin-dept-actions button,
.whm-admin-member-actions button {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd7e3;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.whm-admin-dept-actions button.ghost {
  width: 44px;
  padding: 0;
  border-color: transparent;
  color: #6b7280;
  font-size: 28px;
}

.whm-admin-dept-actions button.is-active {
  border-color: #1687e6;
  color: #1687e6;
}

.whm-admin-dept-actions button.primary,
.whm-admin-member-actions button.primary {
  border-color: #1687e6;
  background: #1687e6;
  color: #fff;
}

.whm-admin-member-actions button.ghost {
  width: 44px;
  padding: 0;
  border-color: transparent;
  color: #6b7280;
  font-size: 28px;
}

.whm-admin-dept-stats {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid #edf1f5;
  color: #4b5563;
  font-size: 15px;
  font-weight: 850;
}

.whm-admin-dept-stats strong {
  color: #1677d2;
}

.whm-admin-dept-stats svg {
  width: 24px;
  height: 24px;
  color: #6b7280;
}

.whm-admin-dept-sort-status {
  margin: 0;
  padding: 10px 22px;
  border-bottom: 1px solid #edf1f5;
  background: #f4f8fd;
  color: #34566e;
  font-size: 14px;
  font-weight: 850;
}

.whm-admin-dept-list {
  padding-bottom: env(safe-area-inset-bottom);
}

.whm-admin-dept-row {
  position: relative;
  display: grid;
  grid-template-columns: 0 36px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #111827;
}

.whm-admin-dept-list.is-sort-mode .whm-admin-dept-row {
  grid-template-columns: 40px 0 minmax(0, 1fr) auto;
}

.whm-admin-dept-row[hidden] {
  display: none;
}

.whm-admin-dept-row[data-admin-depth="0"] {
  background: #f4f5f7;
}

.whm-admin-dept-row.is-focused,
.whm-admin-dept-row.is-selected {
  background: #f3f5f8;
}

.whm-admin-dept-row.is-collapsed {
  background: #fafbfc;
}

.whm-admin-dept-row.is-dragging {
  z-index: 2;
  background: #eef7ff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.whm-admin-dept-sort-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 44px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #6b7280;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
}

.whm-admin-dept-list.is-sort-mode .whm-admin-dept-sort-handle {
  width: 36px;
  opacity: 1;
  pointer-events: auto;
}

.whm-admin-dept-row input {
  width: 20px;
  height: 20px;
  accent-color: #1687e6;
}

.whm-admin-dept-list.is-sort-mode .whm-admin-dept-row input {
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.whm-admin-dept-main {
  display: grid;
  grid-template-columns: 34px 34px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  padding-left: calc(var(--depth, 0) * 18px);
}

.whm-admin-dept-expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  touch-action: manipulation;
}

.whm-admin-dept-expander:disabled {
  visibility: hidden;
  pointer-events: none;
}

.whm-admin-dept-expander.is-collapsed {
  color: #1677d2;
}

.whm-admin-dept-row svg {
  width: 24px;
  height: 24px;
  color: #111827;
}

.whm-admin-dept-name {
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-dept-name strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-dept-row em {
  color: #6b7280;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.whm-admin-member-scope {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 34px 34px;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #4b5563;
}

.whm-admin-member-scope a,
.whm-admin-member-scope button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #6b7280;
}

.whm-admin-member-scope a svg {
  transform: rotate(180deg);
}

.whm-admin-member-scope svg {
  width: 23px;
  height: 23px;
}

.whm-admin-member-scope strong {
  overflow: hidden;
  color: #4b5563;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-member-scope em {
  color: #1677d2;
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
}

.whm-admin-member-list {
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.whm-admin-member-row {
  display: grid;
  grid-template-columns: 42px 76px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 96px;
  padding: 0 22px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #111827;
}

.whm-admin-member-row.is-selected {
  background: #f3f7fb;
}

.whm-admin-member-row input {
  width: 20px;
  height: 20px;
  accent-color: #1687e6;
}

.whm-admin-member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #d9dee5;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
}

.whm-admin-member-row:nth-child(3n + 1) .whm-admin-member-avatar {
  background: #5b7dcc;
}

.whm-admin-member-row:nth-child(3n + 2) .whm-admin-member-avatar {
  background: #2ea6a6;
}

.whm-admin-member-row:nth-child(3n) .whm-admin-member-avatar {
  background: #6d5df6;
}

.whm-admin-member-copy {
  min-width: 0;
}

.whm-admin-member-copy strong,
.whm-admin-member-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-member-copy strong {
  color: #111827;
  font-size: 19px;
  font-weight: 950;
}

.whm-admin-member-copy small {
  margin-top: 4px;
  color: #374151;
  font-size: 16px;
  font-weight: 850;
}

.whm-admin-member-row > svg {
  width: 24px;
  height: 24px;
  color: #9ca3af;
  transform: rotate(180deg);
}

.whm-admin-department-detail-screen {
  min-height: 100dvh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: #fff;
}

.whm-admin-detail-bluebar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0;
  background: #06254f;
  color: #fff;
}

.whm-admin-detail-bluebar .whm-icon-button {
  color: #fff;
}

.whm-admin-detail-bluebar strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.whm-admin-detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d4dae5;
  border-radius: 7px;
  color: #374151;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.whm-admin-detail-actions button,
.whm-admin-detail-member-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 28px;
  font-weight: 900;
}

.whm-admin-detail-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 28px 22px 22px;
  border-bottom: 1px solid #edf1f5;
}

.whm-admin-detail-avatar {
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #d7dbe2;
  color: #fff;
}

.whm-admin-detail-avatar svg {
  width: 48px;
  height: 48px;
}

.whm-admin-detail-hero h1 {
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-detail-hero strong,
.whm-admin-detail-hero p,
.whm-admin-detail-hero small {
  display: block;
  margin: 0;
  color: #374151;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.whm-admin-detail-hero p,
.whm-admin-detail-hero small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.whm-admin-detail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.whm-admin-detail-tabs strong,
.whm-admin-detail-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 16px;
  font-weight: 900;
}

.whm-admin-detail-tabs strong {
  color: #1677d2;
}

.whm-admin-detail-tabs strong::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #1687e6;
}

.whm-admin-detail-member-tools {
  display: grid;
  gap: 14px;
  padding: 18px 20px 14px;
  background: #fff;
}

.whm-admin-detail-member-tools > button {
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d4dae5;
  border-radius: 7px;
  background: #fff;
  color: #374151;
  font-size: 15px;
  font-weight: 900;
}

.whm-admin-detail-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: center;
  min-height: 52px;
  border: 1px solid #dfe4ec;
  border-radius: 7px;
  background: #fff;
}

.whm-admin-detail-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  outline: 0;
  padding: 0 14px;
}

.whm-admin-detail-search input::placeholder {
  color: #9ca3af;
}

.whm-admin-detail-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-left: 1px solid #edf1f5;
  background: transparent;
  color: #6b7280;
}

.whm-admin-detail-search svg {
  width: 25px;
  height: 25px;
}

.whm-admin-detail-member-list {
  margin: 0 20px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fff;
}

.whm-admin-detail-member-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 10px 14px;
  color: #111827;
}

.whm-admin-detail-member-row + .whm-admin-detail-member-row {
  border-top: 1px solid #edf1f5;
}

.whm-admin-detail-member-row > span:not(.whm-admin-member-avatar) {
  min-width: 0;
}

.whm-admin-detail-member-row strong,
.whm-admin-detail-member-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whm-admin-detail-member-row strong {
  font-size: 17px;
  font-weight: 950;
}

.whm-admin-detail-member-row small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.whm-admin-sheet-dialog {
  width: min(420px, 100vw);
  max-width: none;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: transparent;
}

.whm-admin-sheet-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.whm-admin-sheet {
  overflow-y: auto;
  max-height: min(86dvh, 720px);
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.25);
}

.whm-admin-sheet header,
.whm-admin-sheet footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f5;
}

.whm-admin-sheet footer {
  justify-content: flex-end;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #edf1f5;
  border-bottom: 0;
}

.whm-admin-sheet header strong {
  color: #111827;
  font-size: 20px;
  font-weight: 950;
}

.whm-admin-sheet header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
}

.whm-admin-sheet header svg {
  width: 22px;
  height: 22px;
}

.whm-admin-sheet label {
  display: grid;
  gap: 8px;
  padding: 16px 20px 0;
}

.whm-admin-sheet label span,
.whm-admin-sheet-note {
  color: #6b7280;
  font-size: 14px;
  font-weight: 850;
}

.whm-admin-sheet-note {
  margin: 0;
  padding: 16px 20px 0;
}

.whm-admin-move-preview {
  display: grid;
  gap: 8px;
  margin: 14px 20px 0;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #f7f9fc;
}

.whm-admin-move-preview span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 850;
}

.whm-admin-move-preview strong {
  min-width: 0;
  color: #111827;
  text-align: right;
}

.whm-admin-sheet input,
.whm-admin-sheet select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  padding: 0 12px;
}

.whm-admin-sheet footer button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #cfd7e3;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 15px;
  font-weight: 900;
}

.whm-admin-sheet footer button.primary {
  border-color: #1687e6;
  background: #1687e6;
  color: #fff;
}

.whm-admin-sheet footer button:disabled {
  opacity: 0.45;
}

@media (max-width: 360px) {
  .whm-page-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .whm-page-header h1 {
    font-size: 24px;
  }

  .whm-room-item {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .whm-avatar {
    width: 46px;
    height: 46px;
  }

  .whm-compose {
    grid-template-columns: 36px 36px minmax(0, 1fr) 42px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .whm-chat-header {
    grid-template-columns: 34px minmax(0, 1fr) 34px 34px 34px;
    gap: 5px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .whm-chat-title strong {
    font-size: 16px;
  }

  .whm-tabbar {
    padding-right: 4px;
    padding-left: 4px;
  }
}
