:root {
  --wh-bg: #f5f7fa;
  --wh-surface: #ffffff;
  --wh-rail: #13201f;
  --wh-rail-active: #1f6f64;
  --wh-admin: #12315f;
  --wh-ink: #17212b;
  --wh-muted: #667085;
  --wh-line: #d7dee8;
  --wh-soft: #eef6f4;
  --wh-green: #0f766e;
  --wh-blue: #2563eb;
  --wh-violet: #7c3aed;
  --wh-coral: #c2410c;
  --wh-viewport-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --wh-viewport-height: 100dvh;
  }
}

.workhub-body,
.workhub-admin-body,
.workhub-auth-body {
  min-height: var(--wh-viewport-height);
  background: var(--wh-bg);
  color: var(--wh-ink);
}

.workhub-app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  height: var(--wh-viewport-height);
  min-height: var(--wh-viewport-height);
  overflow: hidden;
}

.workhub-rail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 14px 10px;
  background: var(--wh-rail);
  color: #dce8e5;
}

.workhub-rail-brand,
.workhub-logo-mark,
.workhub-admin-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--wh-green);
  font-size: 20px;
  font-weight: 850;
}

.workhub-rail-brand {
  width: 56px;
  margin: 0 auto;
}

.workhub-rail-nav,
.workhub-rail-bottom {
  display: grid;
  align-content: start;
  gap: 8px;
}

.workhub-rail-item {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 8px;
  color: #dce8e5;
  font-size: 11px;
  font-weight: 750;
}

.workhub-rail-item svg,
.workhub-icon-button svg,
.workhub-send-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-rail-item:hover,
.workhub-rail-item.active {
  background: var(--wh-rail-active);
  color: #ffffff;
}

.workhub-rail-item.disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.workhub-list-pane {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--wh-line);
  background: #fbfcfe;
}

.workhub-list-pane.messages {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f8fbff;
  overflow: hidden;
}

.workhub-list-pane.directory {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f7f9fc;
  overflow: hidden;
}

.workhub-list-header {
  display: grid;
  gap: 2px;
  min-height: 72px;
  padding: 18px;
  border-bottom: 1px solid var(--wh-line);
}

.workhub-list-header.messages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 16px 18px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.workhub-list-header.directory {
  align-content: start;
  gap: 10px;
  min-height: 104px;
  padding: 18px 18px 14px;
  background: #ffffff;
}

.workhub-list-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workhub-list-header-main div {
  min-width: 0;
}

.workhub-list-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #22c55e, #1faa7b);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
}

.workhub-list-header-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-list-header-icon.neutral {
  background: #edf2ff;
  color: #315ae2;
  box-shadow: none;
}

.workhub-list-header strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-list-header span {
  color: var(--wh-muted);
  font-size: 12px;
}

.workhub-directory-mode-tabs {
  display: flex;
  gap: 8px;
}

.workhub-directory-mode-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #5b6b87;
  font-size: 12px;
  font-weight: 800;
}

.workhub-directory-mode-tabs span.active {
  background: #dfe8ff;
  color: #315ae2;
}

.workhub-list-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #57bd67;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(87, 189, 103, 0.22);
}

.workhub-list-cta:hover {
  background: #46ac57;
  color: #ffffff;
}

.workhub-picker-dialog {
  width: min(1080px, calc(100% - 48px));
}

.workhub-picker-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}

.workhub-picker-panel {
  gap: 18px;
  padding: 22px;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.workhub-picker-header h2 {
  margin: 0;
  color: #182537;
  font-size: 22px;
  font-weight: 900;
}

.workhub-picker-form {
  display: grid;
  gap: 16px;
}

.workhub-picker-search-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #c7d4f6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(49, 90, 226, 0.08);
}

.workhub-picker-search-shell:focus-within {
  border-color: #315ae2;
  box-shadow: 0 0 0 4px rgba(49, 90, 226, 0.12);
}

.workhub-picker-search-shell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #315ae2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-picker-search-shell input {
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #182537;
  font-size: 16px;
  font-weight: 700;
}

.workhub-picker-search-shell input::placeholder {
  color: #7e8aa2;
  font-weight: 600;
}

.workhub-picker-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid #e2e8f0;
}

.workhub-picker-tab-bar button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d7dee8;
  border-bottom-color: transparent;
  border-radius: 14px 14px 0 0;
  background: #f8fafc;
  color: #516176;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.workhub-picker-tab-bar button.active {
  background: #ffffff;
  color: #315ae2;
  box-shadow: 0 -1px 0 #ffffff inset;
}

.workhub-picker-tab-panel {
  min-height: 480px;
}

.workhub-picker-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.workhub-picker-person,
.workhub-picker-room,
.workhub-picker-member-row {
  display: grid;
  align-items: center;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  color: #182537;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.workhub-picker-person:hover,
.workhub-picker-room:hover,
.workhub-picker-member-row:hover {
  border-color: #c7d4f6;
  box-shadow: 0 16px 30px rgba(49, 90, 226, 0.1);
}

.workhub-picker-person.selected,
.workhub-picker-room.selected,
.workhub-picker-member-row.selected {
  border-color: #315ae2;
  background: #f7faff;
  box-shadow: 0 18px 34px rgba(49, 90, 226, 0.14);
}

.workhub-picker-person {
  grid-template-columns: 22px 42px minmax(0, 1fr) 12px;
  gap: 14px;
  min-height: 72px;
  padding: 0 18px;
}

.workhub-picker-room {
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 76px;
  padding: 0 18px;
}

.workhub-picker-room em {
  color: #748196;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.workhub-picker-check {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #c9d4e4;
  border-radius: 6px;
  background: #ffffff;
}

.workhub-picker-person.selected .workhub-picker-check,
.workhub-picker-room.selected .workhub-picker-check,
.workhub-picker-member-row.selected .workhub-picker-check {
  border-color: #315ae2;
  background: #315ae2;
}

.workhub-picker-person.selected .workhub-picker-check::after,
.workhub-picker-room.selected .workhub-picker-check::after,
.workhub-picker-member-row.selected .workhub-picker-check::after {
  content: "";
  position: absolute;
  inset: 4px 6px 5px 6px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.workhub-picker-person-copy,
.workhub-picker-member-head,
.workhub-picker-member-meta,
.workhub-picker-member-contact,
.workhub-picker-tree-copy,
.workhub-picker-org-summary,
.workhub-picker-footer-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workhub-picker-person-copy strong,
.workhub-picker-member-head strong,
.workhub-picker-member-meta span,
.workhub-picker-member-contact span,
.workhub-picker-tree-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-picker-person-copy small,
.workhub-picker-member-head small,
.workhub-picker-member-meta span,
.workhub-picker-member-contact span,
.workhub-picker-member-contact small,
.workhub-picker-tree-copy small,
.workhub-picker-footer-copy span {
  color: #748196;
  font-size: 12px;
}

.workhub-picker-org-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  min-height: 480px;
}

.workhub-picker-org-tree,
.workhub-picker-org-members {
  min-height: 0;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #f8fbff;
}

.workhub-picker-org-tree {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 14px;
}

.workhub-picker-tree-root {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 0 12px;
  border: 1px solid #d9e2f2;
  border-radius: 18px;
  background: #ffffff;
  color: #182537;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.workhub-picker-tree-root.active,
.workhub-picker-tree-item.active {
  border-color: #c8d7ff;
  background: #edf4ff;
  color: #315ae2;
}

.workhub-picker-tree-list {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 0;
  margin-top: 12px;
  overflow-y: auto;
}

.workhub-picker-tree-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 calc(12px + var(--tree-depth) * 18px);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #27364a;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.workhub-picker-tree-item:hover {
  background: rgba(226, 232, 240, 0.72);
}

.workhub-picker-tree-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7f8ba2;
  font-size: 11px;
}

.workhub-picker-tree-caret.leaf {
  font-size: 12px;
}

.workhub-picker-org-members {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
  overflow: hidden;
}

.workhub-picker-org-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfdff;
}

.workhub-picker-member-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}

.workhub-picker-member-row {
  grid-template-columns: 22px 42px minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 14px;
  min-height: 84px;
  padding: 0 18px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.workhub-picker-member-row:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.workhub-picker-member-row + .workhub-picker-member-row {
  border-top: 0;
}

.workhub-picker-member-row:hover {
  box-shadow: none;
  background: #f8fbff;
}

.workhub-picker-member-row.selected {
  box-shadow: none;
  background: #f4f8ff;
}

.workhub-picker-member-contact {
  justify-items: start;
}

.workhub-picker-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.workhub-picker-footer-copy strong {
  color: #182537;
  font-size: 15px;
}

.workhub-picker-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workhub-picker-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: #315ae2;
  font-size: 13px;
  font-weight: 800;
}

.workhub-picker-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workhub-picker-hidden-inputs {
  display: none;
}

.workhub-picker-bot-state {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed #d7dee8;
  border-radius: 22px;
  background: #fafbff;
}

.workhub-picker-bot-state .workhub-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.workhub-picker-bot-state strong {
  color: #182537;
  font-size: 18px;
}

.workhub-picker-bot-state span {
  color: #748196;
  font-size: 14px;
}

.workhub-list-section {
  display: grid;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid var(--wh-line);
}

.workhub-list-section.inbox {
  align-content: start;
  min-height: 0;
  padding-top: 14px;
}

.workhub-list-section.quick-start {
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.workhub-directory-tree-shell {
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 14px 12px 18px;
  border-bottom: 0;
  overflow-y: auto;
}

.workhub-directory-root-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  color: #182537;
}

.workhub-directory-root-link:hover {
  border-color: #cbd5e1;
  color: #182537;
}

.workhub-directory-root-link.active {
  border-color: #cbdcfb;
  background: #eef4ff;
  box-shadow: 0 16px 32px rgba(49, 90, 226, 0.12);
}

.workhub-directory-root-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #edf2ff;
  color: #315ae2;
}

.workhub-directory-root-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-directory-root-link div,
.workhub-directory-cell-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workhub-directory-root-link strong,
.workhub-directory-cell-stack strong,
.workhub-directory-tree-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-directory-root-link small,
.workhub-directory-cell-stack small,
.workhub-directory-cell-stack span,
.workhub-directory-tree-link small {
  color: #748196;
  font-size: 12px;
}

.workhub-directory-tree {
  display: grid;
  gap: 4px;
  align-content: start;
}

.workhub-directory-tree-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 calc(14px + var(--tree-depth) * 18px);
  border-radius: 12px;
  color: #27364a;
}

.workhub-directory-tree-link:hover {
  background: rgba(226, 232, 240, 0.7);
  color: #182537;
}

.workhub-directory-tree-link.active {
  background: #dfe8ff;
  color: #315ae2;
}

.workhub-directory-tree-link.active small {
  color: #315ae2;
}

.workhub-directory-tree-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 11px;
}

.workhub-directory-tree-caret.leaf {
  font-size: 14px;
  line-height: 1;
}

.workhub-list-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.workhub-list-section-head span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.workhub-list-section h2 {
  margin: 0;
  color: #7a8695;
  font-size: 12px;
  font-weight: 800;
}

.workhub-room-list,
.workhub-person-list,
.workhub-feed,
.workhub-task-board,
.workhub-event-list,
.workhub-directory {
  display: grid;
  gap: 10px;
}

.workhub-list-section.inbox .workhub-room-list {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.workhub-room,
.workhub-list-item,
.workhub-bot-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px;
  border-radius: 8px;
  color: var(--wh-ink);
  touch-action: manipulation;
}

.workhub-room {
  position: relative;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 18px;
  min-height: 72px;
}

.workhub-list-item {
  grid-template-columns: minmax(0, 1fr);
}

.workhub-room:hover,
.workhub-room.active,
.workhub-list-item:hover {
  background: var(--wh-soft);
}

.workhub-room.active {
  background: #e8efff;
  box-shadow: inset 0 0 0 1px #d7e3ff;
}

.workhub-room div,
.workhub-bot-row div,
.workhub-list-item {
  min-width: 0;
}

.workhub-room-copy {
  display: grid;
  gap: 4px;
  align-content: center;
}

.workhub-room-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.workhub-room-title-row strong {
  min-width: 0;
  font-size: 16px;
}

.workhub-room-kind {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #5b6fe5;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.workhub-room strong,
.workhub-room small,
.workhub-list-item strong,
.workhub-list-item small,
.workhub-bot-row strong,
.workhub-bot-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-room small,
.workhub-list-item small,
.workhub-bot-row small {
  color: var(--wh-muted);
  font-size: 12px;
}

.workhub-room em {
  display: block;
  overflow: hidden;
  color: #475569;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-room small {
  font-size: 12px;
  font-weight: 700;
}

.workhub-room-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
  align-content: start;
  padding-top: 2px;
}

.workhub-room-meta span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.workhub-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #dff3ef;
  color: var(--wh-green);
  font-weight: 850;
}

.workhub-avatar.soft {
  background: #eff4ff;
  color: #5970df;
}

.workhub-avatar.ghost {
  background: transparent;
  color: transparent;
  box-shadow: none;
}

.workhub-avatar.bot {
  background: #ede9fe;
  color: var(--wh-violet);
}

.workhub-person-button {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wh-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workhub-person-button:hover {
  background: var(--wh-soft);
}

.workhub-person-button strong,
.workhub-person-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-person-button small {
  color: var(--wh-muted);
  font-size: 12px;
}

.workhub-quick-contact-list {
  display: grid;
  gap: 4px;
}

.workhub-quick-contact {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--wh-ink);
  font: inherit;
  text-align: left;
}

.workhub-quick-contact .workhub-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.workhub-quick-contact:hover {
  background: #f2f7ff;
}

.workhub-quick-contact strong,
.workhub-quick-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-quick-contact strong {
  font-size: 13px;
}

.workhub-quick-contact small {
  color: var(--wh-muted);
  font-size: 11px;
}

.workhub-quick-contact.bot {
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  padding: 0 4px;
}

.workhub-status-dot {
  display: inline-flex;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--wh-green);
}

.status-忙碌 {
  background: #dc2626;
}

.status-暫時離開 {
  background: #d97706;
}

.status-下班,
.status-不在中 {
  background: #98a2b3;
}

.workhub-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
}

.workhub-topbar {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(220px, 280px) minmax(320px, 1fr) auto;
  gap: 10px 20px;
  min-height: 74px;
  padding: 12px 22px 10px 20px;
  border-bottom: 1px solid var(--wh-line);
  background: var(--wh-surface);
}

.workhub-top-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workhub-top-brand {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.1);
}

.workhub-top-brand span {
  color: var(--wh-green);
  font-size: 22px;
  font-weight: 850;
}

.workhub-top-title-copy {
  display: grid;
  min-width: 0;
}

.workhub-top-title strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-top-title span {
  overflow: hidden;
  color: var(--wh-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-top-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  min-width: 0;
  padding: 0 14px 0 46px;
  border: 1px solid #e5ebf4;
  border-radius: 999px;
  background: #f5f7fb;
}

.workhub-top-search span {
  position: absolute;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid #788396;
  border-radius: 999px;
}

.workhub-top-search span::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #788396;
  transform: rotate(45deg);
}

.workhub-top-search input {
  min-height: auto;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}

.workhub-top-search input::placeholder {
  color: #8b95a8;
}

.workhub-top-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7edf8;
  color: #506077;
  font-size: 12px;
  font-weight: 780;
}

.workhub-service-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.workhub-service-strip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #8a94a6;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.workhub-service-strip-link svg,
.workhub-app-launcher-glyph svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-service-strip-link:hover,
.workhub-service-strip-link.active {
  border-color: #d8e2f6;
  background: #f3f6fc;
  color: #1f2937;
}

.workhub-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.workhub-top-action-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workhub-top-action-cluster.primary {
  flex: 0 0 auto;
}

.workhub-top-action-cluster.secondary {
  justify-content: flex-end;
}

.workhub-top-action-divider {
  width: 1px;
  height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  flex: 0 0 1px;
}

.workhub-icon-button,
.workhub-send-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--wh-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--wh-muted);
  cursor: pointer;
  touch-action: manipulation;
}

.workhub-mobile-chat-back {
  display: none;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
  font-family: inherit;
  font-weight: 800;
}

.workhub-mobile-chat-back span {
  transform: translateY(-1px);
}

.workhub-icon-button:hover,
.workhub-send-button:hover {
  color: var(--wh-green);
  border-color: var(--wh-green);
}

.workhub-icon-button.active {
  border-color: #cfe0ff;
  background: #eff4ff;
  color: #315ae2;
  box-shadow: 0 0 0 1px rgba(49, 90, 226, 0.08);
}

.workhub-orgchart-button {
  display: inline-flex;
}

.workhub-icon-button svg.workhub-orgchart-glyph {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
  transform: scale(1.06);
  transform-origin: center;
}

.workhub-icon-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wh-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.workhub-app-launcher {
  position: relative;
}

.workhub-app-launcher summary,
.workhub-help-menu summary,
.workhub-orgchart-drawer summary,
.workhub-admin-launcher summary,
.workhub-admin-help summary {
  list-style: none;
}

.workhub-app-launcher summary::-webkit-details-marker,
.workhub-help-menu summary::-webkit-details-marker,
.workhub-orgchart-drawer summary::-webkit-details-marker,
.workhub-admin-launcher summary::-webkit-details-marker,
.workhub-admin-help summary::-webkit-details-marker {
  display: none;
}

.workhub-app-launcher-button svg {
  fill: currentColor;
  stroke: none;
}

.workhub-app-launcher[open] > summary.workhub-app-launcher-button,
.workhub-help-menu[open] > summary.workhub-help-button,
.workhub-admin-launcher[open] > summary.workhub-admin-grid-link,
.workhub-admin-help[open] > summary.workhub-admin-round-link,
.workhub-account-menu[open] > summary.workhub-account-trigger,
.workhub-admin-account-menu[open] > summary.workhub-admin-avatar-link {
  border-color: #cfe0ff;
  background: #eff4ff;
  color: #315ae2;
  box-shadow: 0 0 0 1px rgba(49, 90, 226, 0.08);
}

.workhub-app-launcher-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(392px, calc(100vw - 24px));
  padding: 22px 22px 18px;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  color: #1f2937;
  z-index: 26;
}

.workhub-app-launcher-panel.admin {
  top: calc(100% + 16px);
}

.workhub-help-menu {
  position: relative;
}

.workhub-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--wh-line);
  border-radius: 999px;
  background: #ffffff;
  color: #5b6677;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.workhub-help-button:hover {
  color: var(--wh-green);
  border-color: var(--wh-green);
}

.workhub-help-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(292px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  color: #1f2937;
  z-index: 26;
}

.workhub-orgchart-drawer[open] > summary.workhub-icon-button {
  border-color: #cfe0ff;
  background: #eff4ff;
  color: #315ae2;
  box-shadow: 0 0 0 1px rgba(49, 90, 226, 0.08);
}

.workhub-orgchart-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.18);
  opacity: 0;
  pointer-events: none;
}

.workhub-orgchart-panel {
  position: fixed;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1040px, calc(100vw - 18px));
  height: 100vh;
  border-left: 1px solid #e4e9f2;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -24px 0 44px rgba(15, 23, 42, 0.14);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 24;
}

.workhub-orgchart-drawer[open] .workhub-orgchart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.workhub-orgchart-drawer[open] .workhub-orgchart-panel {
  transform: translateX(0);
}

.workhub-orgchart-panel-header,
.workhub-orgchart-panel-footer {
  padding: 18px 18px 16px;
  border-bottom: 1px solid #edf2f7;
}

.workhub-orgchart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workhub-orgchart-panel-header div {
  display: grid;
  gap: 4px;
}

.workhub-orgchart-panel-header strong {
  font-size: 20px;
  font-weight: 850;
}

.workhub-orgchart-panel-header span {
  color: #64748b;
  font-size: 13px;
}

.workhub-orgchart-panel-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.workhub-orgchart-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 0;
  height: 100%;
}

.workhub-orgchart-directory-nav {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 18px 14px 18px 18px;
  overflow-y: auto;
  border-right: 1px solid #edf2f7;
  background: #f7f9fc;
}

.workhub-directory-root-link.compact {
  padding: 11px 12px;
  border-radius: 14px;
  box-shadow: none;
}

.workhub-directory-tree.compact {
  gap: 3px;
}

.workhub-orgchart-directory-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 18px 18px 20px 12px;
}

.workhub-orgchart-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workhub-orgchart-directory-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.workhub-orgchart-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  min-width: 0;
  width: min(280px, 100%);
  padding: 0 12px 0 40px;
  border: 1px solid #e5ebf4;
  border-radius: 999px;
  background: #f8fafc;
}

.workhub-orgchart-search span {
  position: absolute;
  left: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid #788396;
  border-radius: 999px;
}

.workhub-orgchart-search span::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  border-radius: 999px;
  background: #788396;
  transform: rotate(45deg);
}

.workhub-orgchart-search input {
  width: 100%;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.workhub-orgchart-search input::placeholder {
  color: #8b95a8;
}

.workhub-orgchart-search .workhub-top-search-clear {
  min-width: 38px;
  min-height: 28px;
  padding: 0 8px;
}

.workhub-directory-check.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.workhub-orgchart-table-shell {
  min-height: 0;
  border-radius: 16px;
  box-shadow: none;
}

.workhub-orgchart-table {
  min-width: 620px;
}

.workhub-orgchart-panel-footer {
  border-top: 1px solid #edf2f7;
  border-bottom: 0;
}

.workhub-orgchart-panel-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef4ff;
  color: #315ae2;
  font-size: 13px;
  font-weight: 800;
}

.workhub-app-launcher-head {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.workhub-app-launcher-head strong {
  font-size: 16px;
  font-weight: 800;
}

.workhub-app-launcher-head span {
  color: #7b8597;
  font-size: 13px;
}

.workhub-app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workhub-app-launcher-grid.admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workhub-app-launcher-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #1f2937;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.workhub-app-launcher-tile:hover {
  border-color: #dce6f4;
  background: #f5f7fb;
  transform: translateY(-1px);
}

.workhub-app-launcher-tile.active {
  border-color: #cfe0ff;
  background: #eff4ff;
}

.workhub-app-launcher-tile strong {
  font-size: 15px;
  font-weight: 780;
}

.workhub-app-launcher-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #e5e9f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.workhub-app-launcher-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
}

.workhub-app-launcher-links > span {
  color: #7b8597;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.workhub-app-launcher-links > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workhub-app-launcher-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #425066;
  font-size: 13px;
  font-weight: 700;
}

.workhub-account-menu {
  position: relative;
}

.workhub-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #b7dbe6 0%, #97c8d7 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.workhub-account-trigger span {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
}

.workhub-account-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  gap: 14px;
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  color: #1f2937;
  z-index: 26;
}

.workhub-account-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.workhub-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(180deg, #b7dbe6 0%, #97c8d7 100%);
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
}

.workhub-account-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workhub-account-copy strong,
.workhub-account-copy span,
.workhub-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-account-copy strong {
  font-size: 17px;
  font-weight: 850;
}

.workhub-account-copy span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.workhub-account-copy small {
  color: #7b8597;
  font-size: 12px;
  font-weight: 700;
}

.workhub-account-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #315ae2;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.workhub-account-status-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #ebeff5;
}

.workhub-account-section-head {
  display: grid;
  gap: 4px;
}

.workhub-account-section-head strong {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.workhub-account-section-head span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.workhub-account-status-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
}

.workhub-account-status-form select,
.workhub-account-status-form input {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #dbe5f0;
  background: #ffffff;
  font-size: 13px;
}

.workhub-account-status-form .button {
  justify-self: end;
}

.workhub-account-links,
.workhub-admin-account-links {
  display: grid;
  gap: 6px;
}

.workhub-account-link,
.workhub-admin-account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  color: #233044;
  transition: background 0.18s ease, color 0.18s ease;
}

.workhub-account-link:hover,
.workhub-admin-account-link:hover {
  background: #f5f7fb;
  color: #102755;
}

.workhub-account-link svg,
.workhub-admin-account-link svg,
.workhub-account-logout svg,
.workhub-admin-account-logout svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-account-link span,
.workhub-admin-account-link span,
.workhub-account-logout span,
.workhub-admin-account-logout span {
  font-size: 14px;
  font-weight: 780;
}

.workhub-account-logout,
.workhub-admin-account-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-top: 1px solid #edf1f6;
  color: #ef4444;
}

.workhub-account-logout:hover,
.workhub-admin-account-logout:hover {
  color: #dc2626;
}

.service-messages {
  color: #22c55e;
}

.service-announcements,
.service-surveys {
  color: #a855f7;
}

.service-calendar {
  color: #6366f1;
}

.service-tasks {
  color: #7c3aed;
}

.service-drive {
  color: #14b8a6;
}

.service-directory {
  color: #06b6d4;
}

.service-admin,
.service-legacy {
  color: #64748b;
}

.workhub-chat {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.42), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 26%, #f8fafc 100%);
}

.workhub-conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 14px 22px 12px;
  border-bottom: 1px solid rgba(215, 222, 232, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.workhub-conversation-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workhub-conversation-meta > .workhub-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.workhub-conversation-meta div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workhub-conversation-meta strong,
.workhub-conversation-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-conversation-meta strong {
  font-size: 20px;
}

.workhub-conversation-meta span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.workhub-conversation-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workhub-conversation-actions .workhub-icon-button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.workhub-icon-button.subtle {
  background: transparent;
  color: #475569;
  box-shadow: none;
}

.workhub-icon-button.subtle:hover {
  background: #edf2ff;
  color: #2c4fdb;
}

.workhub-message-feed {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 26px 26px;
}

.workhub-day-divider {
  display: grid;
  place-items: center;
  margin: 10px 0 14px;
}

.workhub-day-divider span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2f8;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.workhub-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.workhub-message.mine {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.workhub-message.compact {
  margin-top: -2px;
}

.workhub-message-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workhub-message.theirs .workhub-message-stack {
  justify-items: start;
}

.workhub-message.mine .workhub-message-stack {
  justify-items: end;
}

.workhub-message header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}

.workhub-message header strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.workhub-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.workhub-message.mine .workhub-bubble-row {
  flex-direction: row-reverse;
}

.workhub-message-bubble {
  max-width: min(58ch, 58vw);
  min-width: 0;
  padding: 11px 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(148, 163, 184, 0.12);
}

.workhub-message.theirs .workhub-message-bubble {
  border-top-left-radius: 8px;
}

.workhub-message.mine .workhub-message-bubble {
  border-top-right-radius: 8px;
  background: linear-gradient(180deg, #dff2ff 0%, #cdeaff 100%);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.12);
}

.workhub-message-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.workhub-message-meta {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.workhub-compose {
  padding: 12px 22px 18px;
  border-top: 1px solid rgba(215, 222, 232, 0.9);
  background: rgba(248, 250, 252, 0.92);
}

.workhub-compose-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid rgba(215, 222, 232, 0.88);
  border-radius: 24px;
  background: #f3f6fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.workhub-compose-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.workhub-compose-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  touch-action: manipulation;
}

.workhub-compose-tool:hover,
.workhub-compose-tool.active {
  background: #ffffff;
  color: var(--wh-green);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.workhub-compose-tool svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.workhub-compose textarea {
  min-height: 54px;
  max-height: 180px;
  padding: 10px 0 2px;
  border: 0;
  background: transparent;
  line-height: 1.55;
  resize: none;
}

.workhub-send-button {
  width: 48px;
  height: 48px;
  background: var(--wh-green);
  color: #ffffff;
  border-color: var(--wh-green);
  gap: 6px;
}

.workhub-send-button:hover {
  background: #0b5f58;
  color: #ffffff;
}

.workhub-send-label {
  display: none;
  font-size: 13px;
  font-weight: 800;
  color: inherit;
  line-height: 1;
}

.workhub-compose-popover {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 6px;
}

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

.workhub-compose-popover button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.workhub-compose-popover button:hover {
  border-color: rgba(15, 118, 110, 0.3);
  color: var(--wh-green);
}

.workhub-compose-popover.emoji button {
  min-width: 36px;
  padding: 0 9px;
  font-size: 18px;
}

.workhub-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.workhub-announcement,
.workhub-task,
.workhub-event,
.workhub-department,
.workhub-side-form {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--wh-line);
  border-radius: 8px;
  background: #ffffff;
}

.workhub-announcement header,
.workhub-task header,
.workhub-task footer,
.workhub-department header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.workhub-announcement strong,
.workhub-task strong,
.workhub-event strong,
.workhub-department strong {
  display: block;
  font-size: 17px;
}

.workhub-announcement span,
.workhub-task span,
.workhub-event span,
.workhub-department span,
.workhub-announcement time {
  color: var(--wh-muted);
  font-size: 13px;
}

.workhub-announcement em,
.workhub-task em {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--wh-coral);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.workhub-announcement p,
.workhub-task p,
.workhub-event p {
  margin: 12px 0;
  white-space: pre-wrap;
}

.workhub-task footer {
  align-items: center;
}

.workhub-task footer form {
  display: grid;
  grid-template-columns: 140px auto;
  gap: 8px;
}

.workhub-side-form {
  position: sticky;
  top: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.workhub-side-form h2 {
  margin: 0;
  font-size: 18px;
}

.workhub-event {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
}

.workhub-event time {
  color: var(--wh-blue);
  font-weight: 800;
}

.workhub-directory-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
  padding: 24px 28px 28px;
  overflow: hidden;
}

.workhub-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workhub-directory-toolbar-copy {
  display: grid;
  gap: 4px;
}

.workhub-directory-toolbar-copy strong {
  font-size: 24px;
  font-weight: 850;
}

.workhub-directory-toolbar-copy span {
  color: #748196;
  font-size: 13px;
  font-weight: 700;
}

.workhub-directory-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workhub-directory-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #ffffff;
  color: #344256;
  font-size: 13px;
  font-weight: 700;
}

.workhub-directory-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.workhub-directory-table-shell {
  min-height: 0;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.workhub-directory-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.workhub-directory-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #5b6677;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.workhub-directory-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.workhub-directory-table tbody tr:last-child td {
  border-bottom: 0;
}

.workhub-directory-member-form {
  margin: 0;
}

.workhub-directory-member-trigger {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.workhub-directory-member-trigger:hover strong {
  color: #315ae2;
}

.workhub-directory-member-trigger .workhub-avatar {
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.workhub-directory-cell-stack.contact span,
.workhub-directory-cell-stack.contact small {
  display: block;
  line-height: 1.55;
}

.workhub-empty-state.directory {
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 360px;
  padding: 28px;
  text-align: center;
}

.workhub-empty-state.directory strong {
  color: #1f2937;
  font-size: 20px;
}

.workhub-empty-state.directory span {
  max-width: 420px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.workhub-placeholder,
.workhub-empty-state,
.workhub-empty-list {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--wh-muted);
}

.workhub-empty-state.messages,
.workhub-empty-list.messages {
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  text-align: center;
}

.workhub-empty-state.messages strong,
.workhub-empty-list.messages strong {
  color: #1f2937;
  font-size: 18px;
}

.workhub-empty-state.messages span,
.workhub-empty-list.messages span {
  max-width: 360px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.workhub-empty-list.messages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #e8efff;
  color: #315ae2;
  font-size: 13px;
  font-weight: 800;
}

.workhub-device-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.workhub-device-panel {
  display: grid;
  gap: 18px;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--wh-line);
  border-radius: 8px;
  background: #ffffff;
}

.workhub-device-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workhub-device-brand div {
  display: grid;
}

.workhub-device-brand strong {
  font-size: 20px;
}

.workhub-device-brand span:not(.workhub-logo-mark),
.workhub-device-link {
  color: var(--wh-muted);
}

.workhub-device-form {
  display: grid;
  gap: 14px;
}

.workhub-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 0 24px;
  background: #102755;
  color: #ffffff;
}

.workhub-admin-top-left {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.workhub-admin-menu-button {
  display: inline-grid;
  gap: 4px;
  width: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.workhub-admin-menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.workhub-admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.workhub-admin-brand span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #46d370 0%, #6ac7fb 50%, #4d52f8 100%);
  color: #ffffff;
}

.workhub-admin-brand strong {
  font-size: 21px;
  font-weight: 800;
}

.workhub-admin-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 54px;
  padding: 0 20px 0 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.workhub-admin-search span {
  position: absolute;
  left: 22px;
  width: 18px;
  height: 18px;
  border: 2px solid #4b5567;
  border-radius: 999px;
}

.workhub-admin-search span::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #4b5567;
  transform: rotate(45deg);
}

.workhub-admin-search input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5567;
  font-size: 17px;
  font-weight: 650;
}

.workhub-admin-search input::placeholder {
  color: #7c8698;
}

.workhub-admin-account {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.workhub-admin-account > strong {
  max-width: 260px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-help-menu,
.workhub-admin-help,
.workhub-admin-launcher {
  position: relative;
}

.workhub-help-panel,
.workhub-admin-help-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: min(292px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  color: #1f2937;
  z-index: 26;
}

.workhub-admin-help-head {
  display: grid;
  gap: 4px;
}

.workhub-admin-help-head strong {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.workhub-admin-help-head span {
  color: #7b8597;
  font-size: 12px;
  font-weight: 700;
}

.workhub-help-panel p,
.workhub-admin-help-panel p {
  margin: 14px 0 0;
  color: #526074;
  font-size: 13px;
  line-height: 1.6;
}

.workhub-admin-help-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.workhub-admin-help-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f3f6fb;
  color: #243043;
  font-size: 13px;
  font-weight: 780;
}

.workhub-admin-round-link,
.workhub-admin-avatar-link,
.workhub-admin-grid-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
}

.workhub-admin-round-link {
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.workhub-admin-avatar-link {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: #7f8797;
  cursor: pointer;
}

.workhub-admin-grid-link {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(3, 4px);
  gap: 4px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}

.workhub-admin-grid-link i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
}

.workhub-admin-help[open] > summary.workhub-admin-round-link {
  border-color: #7fa8ff;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.workhub-admin-launcher[open] > summary.workhub-admin-grid-link {
  border-color: #5f8ef6;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(95, 142, 246, 0.42);
}

.workhub-admin-account-menu {
  position: relative;
}

.workhub-admin-account-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  display: grid;
  gap: 14px;
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  color: #1f2937;
  z-index: 26;
}

.workhub-admin-account-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.workhub-admin-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(180deg, #b7dbe6 0%, #97c8d7 100%);
  color: #ffffff;
  font-size: 31px;
  font-weight: 800;
}

.workhub-admin-account-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workhub-admin-account-copy strong,
.workhub-admin-account-copy span,
.workhub-admin-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-admin-account-copy strong {
  color: #111827;
  font-size: 17px;
  font-weight: 850;
}

.workhub-admin-account-copy span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.workhub-admin-account-copy small {
  color: #7b8597;
  font-size: 12px;
  font-weight: 700;
}

.workhub-admin-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
  background: #ffffff;
}

.workhub-admin-sidebar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  border-right: 1px solid #e5e9f0;
  background: #ffffff;
}

.workhub-admin-nav-scroll {
  overflow-y: auto;
  padding: 28px 18px 20px;
}

.workhub-admin-nav-section {
  display: grid;
  gap: 12px;
}

.workhub-admin-nav-section.separated {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #edf1f6;
}

.workhub-admin-nav-section h2 {
  margin: 0 12px;
  color: #8b95a8;
  font-size: 15px;
  font-weight: 750;
}

.workhub-admin-nav-section details {
  display: grid;
  gap: 6px;
}

.workhub-admin-nav-group {
  margin: 8px 12px 2px;
  color: #8b95a8;
  font-size: 12px;
  font-weight: 800;
}

.workhub-admin-nav-divider {
  height: 1px;
  margin: 8px 12px;
  background: #edf1f6;
}

.workhub-admin-nav-divider.inset {
  margin-left: 48px;
  margin-right: 18px;
}

.workhub-admin-nav-section summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 12px;
  color: #2f3747;
  cursor: pointer;
  font-weight: 800;
}

.workhub-admin-nav-section summary::-webkit-details-marker {
  display: none;
}

.workhub-admin-nav-section summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid #a1aabc;
  border-bottom: 2px solid #a1aabc;
  transform: rotate(45deg);
}

.workhub-admin-nav-section details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.workhub-nav-glyph {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid #474f60;
  border-radius: 5px;
}

.workhub-nav-glyph.building::before,
.workhub-nav-glyph.building::after,
.workhub-nav-glyph.people::before,
.workhub-nav-glyph.people::after,
.workhub-nav-glyph.lock::before,
.workhub-nav-glyph.grid::before,
.workhub-nav-glyph.chart::before,
.workhub-nav-glyph.wallet::before,
.workhub-nav-glyph.link::before {
  content: "";
  position: absolute;
}

.workhub-nav-glyph.building::before {
  inset: 4px 6px 4px 6px;
  border-top: 2px solid #474f60;
  border-bottom: 2px solid #474f60;
}

.workhub-nav-glyph.people {
  border: 0;
}

.workhub-nav-glyph.people::before,
.workhub-nav-glyph.people::after {
  width: 8px;
  height: 8px;
  top: 4px;
  border: 2px solid #474f60;
  border-radius: 999px;
}

.workhub-nav-glyph.people::before {
  left: 2px;
}

.workhub-nav-glyph.people::after {
  right: 2px;
}

.workhub-nav-glyph.lock::before {
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 9px;
  border: 2px solid #474f60;
  border-radius: 3px;
}

.workhub-nav-glyph.grid::before {
  inset: 4px;
  background:
    linear-gradient(#474f60, #474f60) left top / 6px 6px no-repeat,
    linear-gradient(#474f60, #474f60) center top / 6px 6px no-repeat,
    linear-gradient(#474f60, #474f60) right top / 6px 6px no-repeat,
    linear-gradient(#474f60, #474f60) left bottom / 6px 6px no-repeat,
    linear-gradient(#474f60, #474f60) center bottom / 6px 6px no-repeat,
    linear-gradient(#474f60, #474f60) right bottom / 6px 6px no-repeat;
}

.workhub-nav-glyph.chart::before {
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 12px;
  background:
    linear-gradient(#474f60, #474f60) left bottom / 4px 6px no-repeat,
    linear-gradient(#474f60, #474f60) center bottom / 4px 10px no-repeat,
    linear-gradient(#474f60, #474f60) right bottom / 4px 8px no-repeat;
}

.workhub-nav-glyph.wallet::before {
  left: 3px;
  right: 3px;
  top: 6px;
  bottom: 5px;
  border: 2px solid #474f60;
  border-radius: 4px;
}

.workhub-nav-glyph.link {
  border: 0;
}

.workhub-nav-glyph.link::before {
  inset: 5px;
  border: 2px solid #474f60;
  border-radius: 999px;
}

.workhub-admin-nav-section a,
.workhub-admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-left: 48px;
  padding: 0 18px;
  border-radius: 8px;
  color: #2f3747;
  font-size: 15px;
  font-weight: 750;
}

.workhub-admin-nav-item > span {
  min-width: 0;
}

.workhub-admin-nav-item.disabled {
  color: #7f8797;
  cursor: default;
}

.workhub-admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #7f8797;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.workhub-admin-nav-badge.pending {
  background: #eef4ff;
  color: #5b7fd6;
}

.workhub-admin-nav-badge.off {
  background: #f3f4f6;
  color: #9aa4b6;
}

.workhub-admin-nav-badge.coming-soon {
  background: #f8f0ff;
  color: #8b5cf6;
}

.workhub-admin-nav-section a:hover,
.workhub-admin-nav-section a.active,
.workhub-admin-nav-item.active {
  background: #eef4ff;
  color: #3e7ff5;
}

.workhub-admin-nav-section a:hover .workhub-admin-nav-badge,
.workhub-admin-nav-section a.active .workhub-admin-nav-badge,
.workhub-admin-nav-item.active .workhub-admin-nav-badge {
  background: rgba(62, 127, 245, 0.12);
  color: #3e7ff5;
}

.workhub-admin-sidebar-footer {
  display: grid;
  gap: 6px;
  padding: 18px 30px 26px;
  border-top: 1px solid #edf1f6;
  color: #9aa4b6;
  font-size: 13px;
}

.workhub-admin-main {
  min-width: 0;
  padding: 28px 42px 48px;
  background: #ffffff;
}

.workhub-admin-pagehead {
  margin-bottom: 22px;
}

.workhub-admin-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #98a2b3;
  font-size: 15px;
  font-weight: 700;
}

.workhub-admin-breadcrumb span {
  width: 7px;
  height: 7px;
  border-right: 2px solid #c1c8d4;
  border-bottom: 2px solid #c1c8d4;
  transform: rotate(-45deg);
}

.workhub-admin-breadcrumb strong {
  color: #5b6473;
}

.workhub-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.workhub-admin-heading h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 850;
}

.workhub-admin-heading p {
  margin: 8px 0 0;
  color: #7f8797;
  font-size: 15px;
}

.workhub-admin-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workhub-admin-main .workspace {
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid #e6ebf2;
  border-radius: 0;
  background: #ffffff;
}

.workhub-security-section {
  padding: 0 !important;
  overflow: hidden;
}

.workhub-security-section h2 {
  margin: 0;
  padding: 24px 24px 16px;
  font-size: 18px;
  font-weight: 850;
  border-bottom: 1px solid #e6ebf2;
}

.workhub-security-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 42px;
  margin-bottom: 28px;
}

.workhub-security-tabs a {
  position: relative;
  padding-bottom: 14px;
  color: #2f3747;
  font-size: 18px;
  font-weight: 850;
}

.workhub-security-tabs a.active {
  color: #3e7ff5;
}

.workhub-security-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #3e7ff5;
}

.workhub-security-row {
  border-bottom: 1px solid #edf1f6;
}

.workhub-security-row summary {
  list-style: none;
  position: relative;
  display: block;
  padding: 28px 64px 28px 24px;
  cursor: pointer;
}

.workhub-security-row summary::-webkit-details-marker {
  display: none;
}

.workhub-security-row summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 28px;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid #a1aabc;
  border-bottom: 2px solid #a1aabc;
  transform: rotate(45deg);
}

.workhub-security-row[open] summary::after {
  margin-top: -2px;
  transform: rotate(225deg);
}

.workhub-security-row.static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px;
}

.workhub-security-row-copy {
  display: grid;
  gap: 10px;
}

.workhub-security-row-copy span {
  color: #8b95a8;
  font-size: 14px;
  font-weight: 750;
}

.workhub-security-row-copy strong {
  color: #2f3747;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.45;
}

.workhub-security-row-edit {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.workhub-security-row-edit.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workhub-security-row-edit label {
  display: grid;
  gap: 8px;
}

.workhub-security-row-edit label > span {
  color: #7f8797;
  font-size: 14px;
  font-weight: 750;
}

.workhub-security-row-edit input,
.workhub-security-row-edit select,
.workhub-security-row-edit textarea {
  min-height: 46px;
  border: 1px solid #d8dfe9;
  border-radius: 6px;
  background: #ffffff;
}

.workhub-security-row-edit textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.workhub-security-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workhub-security-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f4f6fa;
  color: #2f3747;
  font-size: 14px;
  font-weight: 800;
}

.workhub-security-summary-line {
  padding: 24px 24px 18px;
  color: #6f7888;
  font-size: 15px;
  font-weight: 750;
}

.workhub-security-summary-line strong {
  color: #3e7ff5;
  font-size: 17px;
}

.workhub-security-empty-shell {
  padding: 0 !important;
}

.workhub-security-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 360px;
  padding: 32px 24px 48px;
  color: #7f8797;
  text-align: center;
}

.workhub-security-empty-state.compact {
  min-height: 240px;
}

.workhub-security-empty-state i {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
}

.workhub-security-empty-state i::before {
  content: "i";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
}

.workhub-security-empty-state strong {
  color: #2f3747;
  font-size: 18px;
  font-weight: 850;
}

.workhub-security-empty-state p {
  max-width: 520px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.workhub-admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.workhub-admin-metrics article {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid #e6ebf2;
  border-radius: 0;
  background: #fbfcfe;
}

.workhub-admin-metrics span {
  color: #7f8797;
  font-size: 13px;
  font-weight: 750;
}

.workhub-admin-metrics strong {
  overflow-wrap: anywhere;
  font-size: 31px;
  line-height: 1.1;
}

.workhub-dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 34px;
}

.workhub-dashboard-hero-copy h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 850;
  letter-spacing: 0;
}

.workhub-dashboard-hero-copy p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #7f8797;
  font-size: 18px;
  line-height: 1.6;
}

.workhub-dashboard-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7f8797;
  font-size: 17px;
  font-weight: 750;
}

.workhub-dashboard-help::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #a1aabc;
  border-bottom: 2px solid #a1aabc;
  transform: rotate(-45deg);
}

.workhub-dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 46px;
}

.workhub-dashboard-shortcut {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 186px;
  padding: 28px 30px;
  border: 1px solid #f0f3f8;
  border-radius: 18px;
  background: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.workhub-dashboard-shortcut:hover {
  transform: translateY(-2px);
  border-color: #dbe6fb;
  box-shadow: 0 12px 24px rgba(16, 39, 85, 0.06);
}

.workhub-dashboard-shortcut strong {
  font-size: 21px;
  font-weight: 850;
}

.workhub-dashboard-shortcut span {
  color: #7f8797;
  font-size: 16px;
  line-height: 1.65;
}

.workhub-dashboard-band {
  margin: 0 -42px -48px;
  padding: 64px 42px 52px;
  background: linear-gradient(180deg, #f7f9fc 0%, #f8fbff 100%);
}

.workhub-dashboard-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.workhub-dashboard-panel {
  min-width: 0;
  min-height: 360px;
  padding: 28px 30px;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 39, 85, 0.04);
}

.workhub-dashboard-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.workhub-dashboard-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}

.workhub-dashboard-panel header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7f8797;
  font-size: 15px;
  font-weight: 750;
}

.workhub-dashboard-panel header a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #b2bbca;
  border-bottom: 2px solid #b2bbca;
  transform: rotate(-45deg);
}

.workhub-dashboard-big-number {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}

.workhub-dashboard-big-number strong {
  font-size: 66px;
  line-height: 1;
  font-weight: 850;
}

.workhub-dashboard-big-number span {
  color: #5b6473;
  font-size: 28px;
  font-weight: 750;
}

.workhub-dashboard-inline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workhub-dashboard-inline-stats div {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fbfcfe;
}

.workhub-dashboard-inline-stats span {
  color: #7f8797;
  font-size: 14px;
  font-weight: 750;
}

.workhub-dashboard-inline-stats strong {
  font-size: 28px;
  line-height: 1.2;
}

.workhub-dashboard-service-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.workhub-dashboard-service-summary strong {
  font-size: 52px;
  line-height: 1;
  font-weight: 850;
}

.workhub-dashboard-service-summary span {
  color: #7f8797;
  font-size: 18px;
}

.workhub-dashboard-service-list {
  display: grid;
  gap: 10px;
}

.workhub-dashboard-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fbfcfe;
}

.workhub-dashboard-service-row span {
  font-size: 15px;
  font-weight: 750;
}

.workhub-dashboard-service-row em {
  color: #7f8797;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.workhub-dashboard-service-row em.on {
  color: #3e7ff5;
}

.workhub-dashboard-capacity {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.workhub-dashboard-donut {
  display: grid;
  place-items: center;
  width: 206px;
  height: 206px;
  border-radius: 999px;
  background: conic-gradient(#3f4759 0 18%, #eef2f7 18% 100%);
}

.workhub-dashboard-donut div {
  display: grid;
  place-items: center;
  width: 158px;
  height: 158px;
  border-radius: 999px;
  background: #ffffff;
}

.workhub-dashboard-donut strong {
  font-size: 44px;
  line-height: 1;
  font-weight: 850;
}

.workhub-dashboard-donut span {
  color: #7f8797;
  font-size: 16px;
  font-weight: 750;
}

.workhub-dashboard-capacity-copy {
  display: grid;
  gap: 8px;
}

.workhub-dashboard-capacity-copy strong {
  color: #4db96f;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 850;
}

.workhub-dashboard-capacity-copy span {
  color: #5b6473;
  font-size: 18px;
  font-weight: 750;
}

.workhub-dashboard-capacity-copy small {
  color: #8b95a8;
  font-size: 14px;
  line-height: 1.6;
}

.workhub-admin-home-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 26px;
}

.workhub-admin-home-copy h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 850;
}

.workhub-admin-home-copy p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #7f8797;
  font-size: 17px;
  line-height: 1.6;
}

.workhub-admin-home-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workhub-admin-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.workhub-admin-home-metrics article {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 22px 24px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #fbfcfe;
}

.workhub-admin-home-metrics span {
  color: #7f8797;
  font-size: 14px;
  font-weight: 750;
}

.workhub-admin-home-metrics strong {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 850;
}

.workhub-admin-home-metrics small {
  color: #8b95a8;
  font-size: 14px;
  line-height: 1.6;
}

.workhub-admin-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.workhub-admin-home-panel {
  min-width: 0;
  min-height: 320px;
  padding: 26px 28px;
  border: 1px solid #e6ebf2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 39, 85, 0.04);
}

.workhub-admin-home-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.workhub-admin-home-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}

.workhub-admin-home-panel header a {
  color: #7f8797;
  font-size: 14px;
  font-weight: 750;
}

.workhub-admin-home-links,
.workhub-admin-home-status {
  display: grid;
  gap: 12px;
}

.workhub-admin-home-links a,
.workhub-admin-home-status div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fbfcfe;
  color: #2f3747;
  font-size: 15px;
  font-weight: 750;
}

.workhub-admin-home-status span {
  color: #7f8797;
  font-size: 14px;
}

.workhub-admin-home-status strong {
  font-size: 17px;
}

.workhub-settings-landing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.workhub-settings-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 180px;
  padding: 28px 30px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.workhub-settings-card:hover {
  transform: translateY(-2px);
  border-color: #dce6f7;
  box-shadow: 0 12px 24px rgba(16, 39, 85, 0.06);
}

.workhub-settings-card strong {
  font-size: 22px;
  font-weight: 850;
}

.workhub-settings-card span {
  color: #7f8797;
  font-size: 15px;
  line-height: 1.65;
}

.workhub-dashboard-panels-tight {
  margin-top: 10px;
}

.workhub-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.workhub-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2f3747;
  font-size: 15px;
  font-weight: 750;
}

.workhub-radio-option input {
  width: 18px;
  min-height: 18px;
}

.workhub-branding-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 42px;
  margin-bottom: 34px;
}

.workhub-branding-tabs a {
  position: relative;
  padding-bottom: 14px;
  color: #2f3747;
  font-size: 18px;
  font-weight: 800;
}

.workhub-branding-tabs a.active {
  color: #3e7ff5;
}

.workhub-branding-tabs a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #3e7ff5;
}

.workhub-branding-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.92fr);
  min-height: 640px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.workhub-branding-preview {
  display: grid;
  place-items: center;
  padding: 34px 30px;
  background: #fbfcfe;
}

.workhub-branding-config {
  display: grid;
  align-content: start;
  gap: 0;
  border-left: 1px solid #edf1f6;
  background: #ffffff;
}

.workhub-branding-section {
  display: grid;
  gap: 18px;
  padding: 28px 40px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-branding-section h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 850;
}

.workhub-branding-section h2::after {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #d8dfe9;
  border-radius: 999px;
  color: #a1aabc;
  font-size: 12px;
  font-weight: 800;
}

.workhub-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workhub-admin-body .button.link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #3e7ff5;
  font-weight: 800;
}

.workhub-empty-slot {
  display: grid;
  place-items: center;
  min-height: 98px;
  border-top: 1px solid #dfe5ee;
  border-bottom: 1px solid #edf1f6;
  color: #5b6473;
  font-size: 15px;
  font-weight: 750;
}

.workhub-branding-note {
  margin: 18px 0 0;
  color: #8b95a8;
  font-size: 14px;
  line-height: 1.65;
}

.workhub-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workhub-color-swatches button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border: 1px solid #d7dee8;
  padding: 0;
  background: var(--swatch);
  cursor: pointer;
}

.workhub-color-swatches button.selected {
  box-shadow: inset 0 0 0 2px #ffffff, 0 0 0 2px #3e7ff5;
}

.workhub-color-input-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.workhub-color-input-row input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8dfe9;
  border-radius: 6px;
  background: #ffffff;
}

.workhub-color-input-row input[readonly] {
  min-height: 44px;
  border-color: #d8dfe9;
  border-radius: 6px;
  background: #ffffff;
}

.workhub-color-input-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workhub-color-input-pair label {
  display: grid;
  gap: 8px;
}

.workhub-color-input-pair span {
  color: #7f8797;
  font-size: 14px;
  font-weight: 750;
}

.workhub-color-input-pair input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8dfe9;
  border-radius: 6px;
  background: #ffffff;
}

.workhub-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workhub-upload-grid label,
.workhub-form-row {
  display: grid;
  gap: 10px;
}

.workhub-file-upload {
  position: relative;
}

.workhub-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.workhub-upload-grid span,
.workhub-form-row > span {
  color: #5b6473;
  font-size: 15px;
  font-weight: 750;
}

.workhub-checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7f8797;
  font-size: 15px;
  font-weight: 750;
}

.workhub-checkbox-line input {
  width: 18px;
  min-height: 18px;
}

.workhub-form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.workhub-sortable-service-list {
  display: grid;
  gap: 10px;
}

.workhub-sortable-service-list.app {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workhub-sortable-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #ffffff;
  color: #2f3747;
  font-size: 14px;
  font-weight: 800;
  cursor: grab;
}

.workhub-sortable-service-item.dragging {
  opacity: 0.56;
}

.workhub-sortable-service-item i {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(#a8b1c0, #a8b1c0) center 3px / 10px 2px no-repeat,
    linear-gradient(#a8b1c0, #a8b1c0) center 7px / 10px 2px no-repeat,
    linear-gradient(#a8b1c0, #a8b1c0) center 11px / 10px 2px no-repeat;
}

.workhub-quick-links-editor {
  display: grid;
  gap: 12px;
}

.workhub-quick-link-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 12px;
}

.workhub-quick-link-preview,
.workhub-web-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workhub-quick-link-preview span,
.workhub-web-preview-links span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef3fb;
  color: #4b5a73;
  font-size: 13px;
  font-weight: 750;
}

.workhub-quick-link-preview.stacked {
  display: grid;
  gap: 10px;
}

.workhub-quick-link-preview.stacked span {
  min-height: 42px;
  border-radius: 10px;
}

.workhub-quick-link-preview small,
.workhub-web-preview-links small {
  color: #9aa4b6;
  font-size: 13px;
  line-height: 1.6;
}

.workhub-branding-preview-stage {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: 100%;
}

.workhub-branding-preview-head {
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.workhub-branding-preview-head button {
  width: 14px;
  height: 14px;
  border: 0;
  border-right: 2px solid #b7c0cf;
  border-bottom: 2px solid #b7c0cf;
  background: transparent;
}

.workhub-branding-preview-head button:first-child {
  transform: rotate(135deg);
}

.workhub-branding-preview-head button:last-child {
  transform: rotate(-45deg);
}

.workhub-branding-preview-head strong {
  font-size: 18px;
  font-weight: 850;
}

.workhub-branding-preview-dots {
  display: inline-flex;
  gap: 8px;
}

.workhub-branding-preview-dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d5dae3;
}

.workhub-branding-preview-dots i.active {
  background: #5b8cff;
}

.workhub-theme-preview-window {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.88fr);
  gap: 24px;
  align-items: start;
  width: min(640px, 100%);
}

.workhub-theme-preview-phone,
.workhub-theme-preview-panel {
  min-height: 520px;
  border: 1px solid #dfe5ee;
  background: #ffffff;
}

.workhub-theme-preview-top {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-theme-preview-top span,
.workhub-theme-preview-top em,
.workhub-theme-preview-footer span,
.workhub-mobile-home footer i,
.workhub-web-preview-actions i,
.workhub-desktop-app-preview i {
  display: block;
}

.workhub-theme-preview-top span {
  width: 16px;
  height: 2px;
  background: #8b95a8;
  box-shadow: 0 5px 0 #8b95a8, 0 -5px 0 #8b95a8;
}

.workhub-theme-preview-top small {
  color: #2f3747;
  font-size: 14px;
  font-weight: 800;
}

.workhub-theme-preview-top em {
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.workhub-theme-preview-list,
.skeleton-lines,
.workhub-desktop-app-content section,
.workhub-desktop-app-content main {
  display: grid;
  gap: 12px;
  padding: 16px 14px;
}

.workhub-theme-preview-list i,
.workhub-theme-preview-card.lines i,
.skeleton-lines i,
.workhub-web-preview-body aside i,
.workhub-web-preview-body main i,
.workhub-desktop-app-content section i,
.workhub-desktop-app-content main i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: #eff3f8;
}

.workhub-theme-preview-footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid #edf1f6;
}

.workhub-theme-preview-footer span {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 6px;
  background: #ccd4e1;
}

.workhub-theme-preview-footer span.active {
  background: #5b8cff;
}

.workhub-theme-preview-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.workhub-theme-preview-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #edf1f6;
  background: #fbfcfe;
}

.workhub-theme-preview-card .avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #eff3f8;
}

.workhub-theme-preview-card div {
  display: grid;
  gap: 10px;
}

.workhub-theme-preview-card div i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: #eff3f8;
}

.workhub-mobile-mode-switch {
  display: inline-flex;
  gap: 12px;
}

.workhub-mobile-mode-switch button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f3747;
  font-size: 15px;
  font-weight: 800;
}

.workhub-mobile-mode-switch button.active {
  background: #eaf1ff;
  color: #3e7ff5;
}

.workhub-mobile-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 300px));
  gap: 24px;
  align-items: end;
}

.workhub-mobile-splash,
.workhub-mobile-home {
  min-height: 538px;
  border: 1px solid #dfe5ee;
  background: #ffffff;
}

.workhub-mobile-splash {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.workhub-company-mark.splash i {
  width: 80px;
  height: 80px;
  font-size: 36px;
}

.workhub-branding-upload-image {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

.workhub-branding-upload-image.compact {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.workhub-mobile-home {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.workhub-mobile-home.dark {
  background: #222936;
}

.workhub-mobile-home.dark header,
.workhub-mobile-home.dark footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.workhub-mobile-home.dark header span,
.workhub-mobile-home.dark .service-row {
  color: #f6f8fb;
}

.workhub-mobile-home header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-mobile-home header span {
  font-size: 14px;
  font-weight: 800;
}

.workhub-mobile-home header div {
  display: inline-flex;
  gap: 10px;
}

.workhub-mobile-home header i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #dbe3ef;
}

.workhub-mobile-home .profile {
  width: 48px;
  height: 48px;
  margin: 18px 14px 0;
  border-radius: 999px;
  background: #eff3f8;
}

.workhub-mobile-home .service-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 14px 0;
  color: #2f3747;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.workhub-mobile-home .service-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workhub-mobile-home .workhub-quick-link-preview {
  padding: 14px;
}

.workhub-mobile-home footer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px;
  border-top: 1px solid #edf1f6;
}

.workhub-mobile-home footer i {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 6px;
  background: #cdd6e3;
}

.workhub-web-preview {
  width: min(1180px, 100%);
  border: 1px solid #dfe5ee;
  background: #ffffff;
}

.workhub-web-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-company-mark.compact i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
}

.workhub-company-mark.compact strong {
  font-size: 16px;
}

.workhub-web-preview-actions {
  display: inline-flex;
  gap: 10px;
}

.workhub-web-preview-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  min-height: 320px;
}

.workhub-web-preview-body aside,
.workhub-web-preview-body main,
.workhub-web-preview-body section {
  padding: 24px;
}

.workhub-web-preview-body aside {
  border-right: 1px solid #edf1f6;
  background: linear-gradient(180deg, rgba(250, 252, 255, 1) 0%, rgba(247, 250, 253, 1) 100%);
}

.workhub-web-preview-body main {
  border-right: 1px solid #edf1f6;
}

.workhub-web-preview-body section strong {
  font-size: 18px;
  font-weight: 800;
}

.workhub-web-preview-links {
  margin-top: 14px;
}

.workhub-desktop-app-preview {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  width: min(540px, 100%);
  min-height: 540px;
  border: 1px solid #dfe5ee;
  background: #ffffff;
}

.workhub-desktop-app-preview aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px 12px;
  border-right: 1px solid #edf1f6;
}

.workhub-desktop-app-preview aside i {
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border-radius: 6px;
  background: #ced7e4;
}

.workhub-desktop-app-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.workhub-desktop-app-main header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-desktop-app-main header span {
  width: 120px;
  height: 16px;
  border-radius: 999px;
  background: #eff3f8;
}

.workhub-desktop-app-main header div {
  display: inline-flex;
  gap: 10px;
}

.workhub-desktop-app-main header i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #dbe3ef;
}

.workhub-desktop-app-content {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.workhub-desktop-app-content section {
  border-right: 1px solid #edf1f6;
}

.workhub-desktop-app-content [data-preview-services] span {
  display: block;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f7fb;
  color: #3a4559;
  font-size: 13px;
  font-weight: 750;
}

.workhub-domain-panel {
  display: grid;
  gap: 18px;
}

.workhub-domain-table {
  display: grid;
  border-top: 1px solid #dde4ed;
}

.workhub-domain-head,
.workhub-domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 180px 240px;
  align-items: center;
  min-height: 68px;
  gap: 16px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-domain-head span {
  color: #7f8797;
  font-size: 15px;
  font-weight: 750;
}

.workhub-domain-row strong,
.workhub-domain-row span {
  font-size: 16px;
  font-weight: 750;
}

.workhub-admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workhub-admin-form.dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workhub-admin-form.compact,
.workhub-admin-form.references {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workhub-admin-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.workhub-settings-panel {
  display: grid;
  gap: 34px;
}

.workhub-settings-section {
  border-top: 1px solid #dde4ed;
}

.workhub-settings-section-head {
  padding: 18px 0 0;
}

.workhub-settings-section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 850;
}

.workhub-settings-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #edf1f6;
}

.workhub-settings-row > span {
  padding: 0 12px;
  color: #5b6473;
  font-size: 15px;
  font-weight: 750;
}

.workhub-settings-control {
  display: grid;
  gap: 6px;
  padding: 12px 0;
}

.workhub-settings-control strong {
  font-size: 17px;
  font-weight: 800;
}

.workhub-settings-control small {
  color: #8892a5;
  font-size: 13px;
}

.workhub-settings-control input,
.workhub-settings-control select {
  width: min(570px, 100%);
  min-height: 46px;
  border-color: #d8dfe9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.workhub-settings-row.readonly .workhub-settings-control {
  padding-top: 18px;
  padding-bottom: 18px;
}

.workhub-company-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.workhub-company-mark i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #46d370 0%, #6ac7fb 50%, #4d52f8 100%);
  color: #ffffff;
  font-style: normal;
  font-size: 21px;
  font-weight: 850;
}

.workhub-company-mark strong {
  font-size: 18px;
}

.workhub-row-editor {
  position: relative;
}

.workhub-row-editor summary {
  color: #3e7ff5;
  cursor: pointer;
  font-weight: 800;
}

.workhub-inline-form {
  position: absolute;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 10px;
  width: min(640px, calc(100vw - 56px));
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d8dfe9;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(23, 33, 43, 0.18);
  text-align: left;
}

.workhub-service-settings {
  display: grid;
  gap: 12px;
}

.workhub-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  background: #ffffff;
  color: var(--wh-ink);
  font-size: 15px;
}

.workhub-setting-row input {
  width: 18px;
  min-height: 18px;
}

.workhub-admin-body .button.primary {
  background: #9cc0ff;
  color: #ffffff;
}

.workhub-admin-body .button.primary[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.workhub-admin-body .button.primary:hover {
  background: #80adff;
}

.workhub-admin-body .button.secondary {
  border-color: #d8dfe9;
  color: #5b6473;
}

@media (max-width: 1120px) {
  .workhub-app {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .workhub-content-grid,
  .workhub-admin-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-side-form {
    position: static;
  }

  .workhub-admin-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .workhub-admin-account > strong {
    display: none;
  }

  .workhub-admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workhub-admin-home-metrics,
  .workhub-settings-landing,
  .workhub-admin-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workhub-branding-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-branding-config {
    border-left: 0;
    border-top: 1px solid #edf1f6;
  }

  .workhub-sortable-service-list.app {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-web-preview-body {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .workhub-web-preview-body section {
    grid-column: 1 / -1;
    border-top: 1px solid #edf1f6;
  }

  .workhub-dashboard-hero-copy h1 {
    font-size: 44px;
  }

  .workhub-dashboard-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workhub-dashboard-band {
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .workhub-dashboard-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-admin-form,
  .workhub-admin-form.dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workhub-security-row-edit.two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-security-tabs {
    gap: 24px;
  }

  .workhub-settings-row {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 1320px) {
  .workhub-service-strip {
    display: none;
  }
}

@media (max-width: 1100px) {
  .workhub-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-top-search {
    width: 100%;
  }

  .workhub-top-actions {
    justify-content: flex-start;
  }

  .workhub-top-action-cluster.secondary {
    justify-content: flex-start;
  }

  .workhub-orgchart-panel {
    width: calc(100vw - 10px);
  }

  .workhub-orgchart-workspace {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .workhub-orgchart-directory-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .workhub-orgchart-search {
    width: 100%;
  }

  .workhub-picker-dialog {
    width: min(980px, calc(100% - 32px));
  }

  .workhub-picker-org-layout {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .workhub-picker-member-row {
    grid-template-columns: 22px 42px minmax(0, 1fr);
  }

  .workhub-picker-member-contact {
    display: none;
  }
}

@media (max-width: 820px) {
  .workhub-app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .workhub-app.workhub-messages-chat-active,
  .workhub-app.workhub-messages-list-mode {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .workhub-app.workhub-messages-chat-active .workhub-list-pane,
  .workhub-app.workhub-messages-list-mode .workhub-main {
    display: none;
  }

  .workhub-app.workhub-messages-list-mode .workhub-list-pane {
    grid-column: 1 / -1;
    grid-row: 1;
    border-right: 0;
  }

  .workhub-app.workhub-messages-chat-active .workhub-main {
    grid-column: 1 / -1;
    grid-row: 1;
    border-top: 0;
  }

  .workhub-list-pane {
    grid-column: 1;
    grid-row: 1;
  }

  .workhub-main {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--wh-line);
  }

  .workhub-topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .workhub-top-search {
    width: 100%;
  }

  .workhub-top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .workhub-top-action-divider {
    display: none;
  }

  .workhub-orgchart-button {
    display: none;
  }

  .workhub-list-header.messages,
  .workhub-conversation-header {
    flex-wrap: wrap;
  }

  .workhub-conversation-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .workhub-list-pane.directory {
    min-height: 260px;
  }

  .workhub-directory-workspace {
    padding: 18px 16px 22px;
  }

  .workhub-directory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .workhub-directory-check {
    width: 100%;
    justify-content: space-between;
  }

  .workhub-conversation-meta strong {
    font-size: 20px;
  }

  .workhub-compose-shell {
    grid-template-columns: minmax(0, 1fr) minmax(52px, 1fr);
    gap: 10px;
    align-items: flex-end;
  }

  .workhub-compose-tools {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }

  .workhub-send-button {
    display: inline-flex;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-content: center;
    justify-self: end;
    align-self: end;
    width: auto;
    min-width: 58px;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.28);
  }

  .workhub-send-button:hover {
    border-color: transparent;
  }

  .workhub-send-label {
    display: inline;
  }

  .workhub-compose textarea {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    min-height: 46px;
  }

  .workhub-conversation-header,
  .workhub-message-feed,
  .workhub-compose {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workhub-message-feed {
    padding-top: 12px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .workhub-compose {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-top: 10px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .workhub-mobile-chat-back {
    display: inline-flex;
  }

  .workhub-app.workhub-messages-chat-active .workhub-conversation-actions {
    justify-content: flex-end;
    align-items: center;
  }

  .workhub-app.workhub-messages-chat-active .workhub-mobile-chat-back {
    margin-right: auto;
  }

  .workhub-app-launcher-panel,
  .workhub-app-launcher-panel.admin,
  .workhub-help-panel,
  .workhub-account-panel,
  .workhub-admin-account-panel {
    right: auto;
    left: 0;
  }

  .workhub-admin-help-panel {
    right: auto;
    left: 0;
  }

  .workhub-admin-topbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px;
  }

  .workhub-admin-search {
    order: 3;
    height: 48px;
  }

  .workhub-admin-account {
    justify-content: flex-start;
  }

  .workhub-admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--wh-line);
  }

  .workhub-admin-nav-scroll {
    padding: 16px 14px;
  }

  .workhub-admin-nav-section a,
  .workhub-admin-nav-item {
    margin-left: 38px;
  }

  .workhub-admin-metrics,
  .workhub-admin-form,
  .workhub-admin-form.dense,
  .workhub-admin-form.compact,
  .workhub-admin-form.references {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-admin-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .workhub-admin-home-hero {
    flex-direction: column;
  }

  .workhub-admin-home-copy h1 {
    font-size: 36px;
  }

  .workhub-admin-home-copy p {
    font-size: 16px;
  }

  .workhub-admin-home-actions {
    flex-wrap: wrap;
  }

  .workhub-admin-home-metrics,
  .workhub-settings-landing,
  .workhub-admin-home-grid,
  .workhub-theme-preview-window,
  .workhub-mobile-preview-grid,
  .workhub-desktop-app-content,
  .workhub-color-input-pair,
  .workhub-upload-grid,
  .workhub-quick-link-row,
  .workhub-domain-head,
  .workhub-domain-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-domain-head {
    display: none;
  }

  .workhub-domain-row {
    align-items: start;
    padding: 18px 0;
  }

  .workhub-branding-tabs {
    gap: 22px;
  }

  .workhub-dashboard-hero {
    flex-direction: column;
    padding-bottom: 26px;
  }

  .workhub-dashboard-hero-copy h1 {
    font-size: 36px;
  }

  .workhub-dashboard-hero-copy p {
    font-size: 16px;
  }

  .workhub-dashboard-shortcuts {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  .workhub-dashboard-shortcut {
    min-height: 148px;
    padding: 22px;
  }

  .workhub-dashboard-band {
    margin-left: -14px;
    margin-right: -14px;
    margin-bottom: -14px;
    padding: 32px 14px 24px;
  }

  .workhub-dashboard-panel {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }

  .workhub-dashboard-big-number strong {
    font-size: 54px;
  }

  .workhub-dashboard-inline-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-dashboard-service-summary strong {
    font-size: 44px;
  }

  .workhub-dashboard-donut {
    width: 180px;
    height: 180px;
  }

  .workhub-dashboard-donut div {
    width: 138px;
    height: 138px;
  }

  .workhub-dashboard-capacity-copy strong {
    font-size: 34px;
  }

  .workhub-settings-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 0;
  }

  .workhub-settings-row > span {
    padding: 0;
  }

  .workhub-settings-control {
    padding: 4px 0 0;
  }

  .workhub-settings-control input,
  .workhub-settings-control select {
    width: 100%;
  }

  .workhub-inline-form {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .workhub-branding-preview,
  .workhub-branding-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .workhub-branding-shell {
    min-height: 0;
  }

  .workhub-security-tabs {
    gap: 22px;
  }

  .workhub-picker-dialog {
    width: calc(100% - 18px);
  }

  .workhub-picker-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .workhub-picker-org-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-picker-org-tree {
    max-height: 220px;
  }

  .workhub-picker-org-toolbar,
  .workhub-picker-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .workhub-picker-footer-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .workhub-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-rail-item span {
    display: none;
  }

  .workhub-rail-item {
    min-height: 46px;
  }

  .workhub-app-launcher-panel,
  .workhub-app-launcher-panel.admin,
  .workhub-help-panel,
  .workhub-account-panel,
  .workhub-admin-account-panel {
    width: min(320px, calc(100vw - 24px));
    padding: 18px;
  }

  .workhub-admin-help-panel {
    width: min(300px, calc(100vw - 24px));
  }

  .workhub-app-launcher-grid,
  .workhub-app-launcher-grid.admin {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-account-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .workhub-account-card em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .workhub-account-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-message {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .workhub-message.mine {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-list-header.messages {
    align-items: stretch;
  }

  .workhub-list-header.directory {
    min-height: auto;
  }

  .workhub-orgchart-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-orgchart-directory-nav {
    border-right: 0;
    border-bottom: 1px solid #edf2f7;
  }

  .workhub-orgchart-directory-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workhub-list-cta {
    width: 100%;
  }

  .workhub-room {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .workhub-room-meta {
    display: none;
  }

  .workhub-icon-button,
  .workhub-send-button,
  .workhub-top-search {
    min-height: 44px;
  }

  .workhub-top-search input,
  .workhub-compose textarea,
  .workhub-top-search-clear,
  .workhub-admin-search input {
    font-size: 16px;
  }

  .workhub-conversation-header,
  .workhub-message-feed,
  .workhub-compose {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workhub-conversation-meta strong {
    font-size: 18px;
  }

  .workhub-conversation-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .workhub-message-bubble {
    max-width: min(100%, 76vw);
  }

  .workhub-directory-table thead th,
  .workhub-directory-table tbody td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .workhub-directory-member-trigger {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .workhub-directory-member-trigger .workhub-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .workhub-event {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-admin-topbar {
    gap: 12px;
  }

  .workhub-admin-main {
    padding: 14px;
  }

  .workhub-admin-heading h1 {
    font-size: 28px;
  }

  .workhub-dashboard-hero-copy h1 {
    font-size: 31px;
  }

  .workhub-admin-breadcrumb {
    flex-wrap: wrap;
    gap: 8px;
  }

  .workhub-branding-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .workhub-security-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .workhub-admin-nav-item {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .workhub-admin-nav-badge {
    min-height: 22px;
  }

  .workhub-branding-tabs a {
    padding-bottom: 10px;
    font-size: 16px;
  }

  .workhub-admin-nav-section summary,
  .workhub-admin-nav-section a {
    min-height: 40px;
    font-size: 14px;
  }

  .workhub-picker-search-shell {
    min-height: 48px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .workhub-picker-tab-bar {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .workhub-picker-tab-bar button {
    flex: 0 0 auto;
  }

  .workhub-picker-person,
  .workhub-picker-room,
  .workhub-picker-member-row {
    grid-template-columns: 22px 40px minmax(0, 1fr);
    min-height: 72px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .workhub-picker-person .workhub-status-dot,
  .workhub-picker-room em {
    display: none;
  }

  .workhub-picker-footer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .workhub-picker-footer-actions .button {
    width: 100%;
  }
}

.workhub-mobile-message-actions,
.workhub-mobile-message-tabs,
.workhub-mobile-list-search,
.workhub-mobile-fab,
.workhub-mobile-tabbar {
  display: none;
}

@media (max-width: 820px) {
  .workhub-body {
    background: #ffffff;
  }

  .workhub-app {
    position: relative;
    height: var(--wh-viewport-height);
    min-height: var(--wh-viewport-height);
    background: #ffffff;
  }

  .workhub-app.workhub-messages-chat-active .workhub-topbar {
    display: none;
  }

  .workhub-app.workhub-messages-chat-active .workhub-main {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: var(--wh-viewport-height);
  }

  .workhub-app.workhub-messages-list-mode .workhub-list-pane.messages {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    height: var(--wh-viewport-height);
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: #ffffff;
  }

  .workhub-list-header.messages {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 86px;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 8px;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .workhub-list-header.messages .workhub-list-header-icon,
  .workhub-list-header.messages .workhub-list-header-main span:not(.workhub-list-header-icon),
  .workhub-list-header.messages .workhub-list-cta {
    display: none;
  }

  .workhub-list-header.messages .workhub-list-header-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .workhub-list-header.messages strong {
    color: #101828;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .workhub-mobile-message-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
  }

  .workhub-mobile-icon-button,
  .workhub-mobile-profile-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    cursor: pointer;
  }

  .workhub-mobile-icon-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
  }

  .workhub-mobile-profile-chip {
    background: #6478ff;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
  }

  .workhub-mobile-message-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 44px;
    padding: 0 24px;
    border-bottom: 1px solid #edf0f5;
    background: #ffffff;
    overflow-x: auto;
  }

  .workhub-mobile-message-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #667085;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
  }

  .workhub-mobile-message-tabs a.active {
    color: #1473df;
  }

  .workhub-mobile-message-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #1473df;
  }

  .workhub-mobile-list-search {
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 0 24px;
    border-bottom: 1px solid transparent;
    background: #ffffff;
    overflow: hidden;
  }

  .workhub-list-pane.messages.mobile-search-open .workhub-mobile-list-search,
  .workhub-mobile-list-search.active {
    display: flex;
    min-height: 56px;
    padding-top: 4px;
    padding-bottom: 8px;
    border-bottom-color: #edf0f5;
  }

  .workhub-mobile-list-search span {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid #7a8494;
    border-radius: 999px;
    flex: 0 0 16px;
  }

  .workhub-mobile-list-search span::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #7a8494;
    transform: rotate(45deg);
  }

  .workhub-mobile-list-search input {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #f2f4f7;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
  }

  .workhub-list-section.inbox {
    gap: 0;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    overflow: hidden;
    background: #ffffff;
  }

  .workhub-list-section.inbox .workhub-list-section-head {
    display: none;
  }

  .workhub-list-section.quick-start {
    display: none;
  }

  .workhub-list-section.inbox .workhub-room-list {
    display: grid;
    gap: 0;
    min-height: 0;
    padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .workhub-room {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 114px;
    padding: 16px 24px;
    border-radius: 0;
    background: #ffffff;
  }

  .workhub-room:hover,
  .workhub-room.active {
    background: #ffffff;
    box-shadow: none;
  }

  .workhub-room .workhub-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #6478ff;
    color: #ffffff;
    font-size: 28px;
    font-weight: 850;
  }

  .workhub-room .workhub-avatar.soft {
    background: #e5e7eb;
    color: #ffffff;
  }

  .workhub-room-title-row {
    gap: 7px;
  }

  .workhub-room-title-row strong {
    color: #101828;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
  }

  .workhub-room-kind {
    min-height: 20px;
    padding: 0 6px;
    background: #111827;
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
  }

  .workhub-room small {
    display: none;
  }

  .workhub-room em {
    margin-top: 2px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .workhub-room-meta {
    display: grid;
    justify-items: end;
    gap: 12px;
    align-self: start;
    padding-top: 5px;
  }

  .workhub-room-meta span {
    color: #667085;
    font-size: 16px;
    font-weight: 750;
  }

  .workhub-mobile-fab {
    position: fixed;
    right: 22px;
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    z-index: 16;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 0;
    border-radius: 999px;
    background: #16c45b;
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(22, 196, 91, 0.32);
    cursor: pointer;
  }

  .workhub-mobile-fab svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .workhub-app.workhub-messages-chat-active .workhub-mobile-fab {
    display: none;
  }

  .workhub-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(70px + env(safe-area-inset-bottom, 0px));
    padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #edf0f5;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
  }

  .workhub-app.workhub-messages-chat-active .workhub-mobile-tabbar {
    display: none;
  }

  .workhub-mobile-tabbar-item {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    color: #7a8494;
    font-size: 12px;
    font-weight: 800;
  }

  .workhub-mobile-tabbar-item svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .workhub-mobile-tabbar-item.active {
    color: #10b85d;
  }

  .workhub-mobile-tabbar-item em {
    position: absolute;
    top: 0;
    right: calc(50% - 25px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
  }

  .workhub-chat {
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: var(--wh-viewport-height);
    background: #ffffff;
  }

  .workhub-conversation-header {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 6px;
    min-height: calc(70px + env(safe-area-inset-top, 0px));
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 10px;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
  }

  .workhub-mobile-chat-back {
    display: inline-flex;
    grid-column: 1;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border: 0;
    color: #111827;
    font-size: 36px;
    font-weight: 500;
  }

  .workhub-mobile-chat-back:hover {
    background: transparent;
    color: #111827;
  }

  .workhub-mobile-chat-back span {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    line-height: 1;
    transform: translateY(-2px);
  }

  .workhub-conversation-meta {
    grid-column: 2;
    justify-content: start;
    gap: 8px;
  }

  .workhub-conversation-meta > .workhub-avatar,
  .workhub-conversation-meta span {
    display: none;
  }

  .workhub-conversation-meta strong {
    color: #111827;
    font-size: 19px;
    font-weight: 900;
  }

  .workhub-conversation-actions {
    grid-column: 3;
    display: inline-flex;
    justify-content: flex-end;
    width: auto;
    gap: 8px;
  }

  .workhub-conversation-actions .workhub-icon-button {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #111827;
  }

  .workhub-conversation-actions [data-open-workhub-drawer],
  .workhub-conversation-actions button[title="顯示資訊"] {
    display: none;
  }

  .workhub-conversation-actions .workhub-icon-button svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.3;
  }

  .workhub-message-feed {
    gap: 8px;
    padding: 18px 18px 22px;
    background: #ffffff;
  }

  .workhub-day-divider {
    margin: 16px 0 18px;
  }

  .workhub-day-divider span {
    min-height: 30px;
    padding: 0 18px;
    background: #f2f4f7;
    color: #6b7280;
    font-size: 14px;
    font-weight: 850;
  }

  .workhub-message {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .workhub-message.mine {
    grid-template-columns: minmax(0, 1fr);
  }

  .workhub-message-stack {
    gap: 4px;
  }

  .workhub-message header strong {
    font-size: 12px;
  }

  .workhub-bubble-row {
    gap: 8px;
  }

  .workhub-message-bubble {
    max-width: min(78vw, 420px);
    padding: 10px 13px;
    border-radius: 18px;
    background: #f3f4f6;
    box-shadow: none;
  }

  .workhub-message.theirs .workhub-message-bubble {
    border-top-left-radius: 6px;
    background: #f3f4f6;
  }

  .workhub-message.mine .workhub-message-bubble {
    border-top-right-radius: 6px;
    background: #bfeeff;
    box-shadow: none;
  }

  .workhub-message-bubble p {
    color: #111827;
    font-size: 17px;
    line-height: 1.45;
  }

  .workhub-message-meta {
    min-height: 24px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
  }

  .workhub-compose {
    position: sticky;
    bottom: 0;
    z-index: 8;
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
  }

  .workhub-compose-shell {
    display: grid;
    grid-template-columns: 34px 34px minmax(0, 1fr) 34px auto;
    gap: 8px;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .workhub-compose-tools {
    display: contents;
  }

  .workhub-compose-tool {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
  }

  .workhub-compose-tool:nth-child(1) {
    grid-column: 1;
  }

  .workhub-compose-tool:nth-child(2) {
    display: none;
  }

  .workhub-compose-tool:nth-child(3) {
    grid-column: 2;
  }

  .workhub-compose-tool:nth-child(4) {
    grid-column: 4;
  }

  .workhub-compose-tool svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.2;
  }

  .workhub-compose textarea {
    grid-column: 3;
    grid-row: 1;
    min-height: 38px;
    max-height: 112px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
  }

  .workhub-compose textarea::placeholder {
    color: #8b95a8;
  }

  .workhub-send-button {
    grid-column: 5;
    grid-row: 1;
    min-width: 54px;
    height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: #16c45b;
    color: #ffffff;
    box-shadow: none;
  }

  .workhub-send-button svg {
    width: 18px;
    height: 18px;
  }

  .workhub-send-label {
    display: inline;
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-width: 420px) {
  .workhub-list-header.messages {
    padding-left: 20px;
    padding-right: 18px;
  }

  .workhub-mobile-message-actions {
    gap: 8px;
  }

  .workhub-room {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 104px;
    padding-left: 20px;
    padding-right: 18px;
  }

  .workhub-room .workhub-avatar {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .workhub-room-title-row strong {
    font-size: 18px;
  }

  .workhub-room em,
  .workhub-room-meta span {
    font-size: 15px;
  }

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

  .workhub-mobile-tabbar-item span {
    font-size: 11px;
  }

  .workhub-compose {
    padding-left: 8px;
    padding-right: 8px;
  }

  .workhub-compose-shell {
    grid-template-columns: 31px 31px minmax(0, 1fr) 31px auto;
    gap: 6px;
  }

  .workhub-compose-tool {
    width: 31px;
    height: 31px;
  }

  .workhub-send-button {
    min-width: 50px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
