/*
  Dreams Core header look (040). Curated. No Tailwind.
  Visual source: partials/topbar.html app-header.
*/

.dc-topbar {
  --dc-shadow-xl: 0 20px 40px -16px rgb(30 33 31 / 0.28);
}

.dc-topbar__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--dc-header-height, 4rem);
  padding: 0 1rem;
}

.dc-topbar .dc-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.dc-topbar__logo {
  display: none;
  flex-shrink: 0;
  text-decoration: none;
}

.dc-topbar__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--dc-primary-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.dc-search {
  display: none;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 240px;
  height: 2.5rem;
  padding: 0 0.85rem 0 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.dc-search:hover {
  box-shadow: var(--dc-shadow-sm);
}

.dc-search__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--dc-primary-500) 16%, transparent);
  color: var(--dc-primary-600);
  font-size: 13px;
}

.dc-search__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.dc-kbd {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.dc-pill {
  display: none;
  align-items: center;
  gap: 0.15rem;
  height: 2.5rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
}

.dc-pill__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}

.dc-pill__btn:hover,
.dc-pill__btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--surface-base) 65%, transparent);
}

.dc-pill__btn .dc-icon:last-child {
  font-size: 9px;
  opacity: 0.7;
}

.dc-topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dc-drop {
  position: relative;
}

.dc-drop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 80;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  box-shadow: var(--dc-shadow-xl, var(--dc-shadow-lg));
  color: var(--text-primary);
}

.dc-drop.is-open > .dc-drop__menu {
  display: block;
}

.dc-menu {
  width: 14rem;
  padding: 0.35rem;
}

.dc-menu a,
.dc-menu button,
.dc-menu--flat a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.dc-menu a:hover,
.dc-menu button:hover,
.dc-menu--flat a:hover {
  background: var(--surface-sunken);
  text-decoration: none;
}

.dc-menu a .dc-icon:first-child,
.dc-menu button > .dc-icon:first-child {
  color: var(--dc-primary-600);
  font-size: 15px;
}

.dc-menu .theme-option .dc-icon:last-child,
.dc-menu .lang-option .dc-icon:last-child {
  margin-left: auto;
  font-size: 12px;
  opacity: 0;
  color: var(--dc-primary-600);
}

.dc-menu .is-current .dc-icon:last-child {
  opacity: 1;
}

.dc-quick {
  display: none;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 0.75rem 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--dc-primary-600);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--dc-primary-600) 60%, transparent);
}

.dc-quick:hover {
  transform: translateY(-1px);
}

.dc-quick--narrow {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  background: var(--dc-primary-600);
  color: #fff;
  border: 0;
}

.dc-theme-chip,
.dc-round {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  position: relative;
}

.dc-theme-chip {
  background: color-mix(in srgb, var(--dc-warning-500) 16%, transparent);
  color: var(--dc-warning-600);
}

.dc-theme-chip:hover,
.dc-round:hover {
  transform: scale(1.05);
}

.dc-theme-chip__sun,
.dc-theme-chip__moon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
}

html:not([data-theme="dark"]) .dc-theme-chip__moon,
[data-theme="dark"] .dc-theme-chip__sun {
  display: none;
}

.dc-round.is-info { background: color-mix(in srgb, var(--dc-info-500) 14%, transparent); color: var(--dc-info-600); }
.dc-round.is-neutral { background: color-mix(in srgb, var(--text-tertiary) 14%, transparent); color: var(--text-secondary); }
.dc-round.is-accent { background: color-mix(in srgb, var(--dc-accent-500) 16%, transparent); color: var(--dc-accent-600); }
.dc-round.is-danger { background: color-mix(in srgb, var(--dc-danger-500) 14%, transparent); color: var(--dc-danger-600); }

.dc-cluster {
  display: none;
  align-items: center;
  gap: 0.25rem;
  height: 2.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--dc-shadow-sm);
}

.dc-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dc-accent-500);
  border: 1.5px solid var(--surface-raised);
}

.dc-icon-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  font-size: 15px;
}

.dc-icon-btn:hover { background: var(--surface-sunken); color: var(--text-primary); }

.dc-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0.15rem 0.55rem 0.15rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.dc-profile:hover { background: var(--surface-sunken); text-decoration: none; color: var(--text-primary); }

.dc-profile > .dc-icon { display: none; font-size: 10px; color: var(--text-tertiary); }

.dc-profile__id { display: none; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.dc-profile__name { font-size: 12px; font-weight: 650; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-profile__role { font-size: 10px; color: var(--text-tertiary); }

.dc-avatar {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--dc-primary-500), var(--dc-accent-500));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--surface-base);
}

.dc-avatar--sm { width: 2.25rem; height: 2.25rem; border-radius: 0.7rem; font-size: 11px; box-shadow: none; }
.dc-avatar--lg { width: 2.75rem; height: 2.75rem; font-size: 13px; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.25); }

.dc-presence {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--dc-success-500);
  border: 2px solid var(--dc-primary-800);
}

.dc-profile-menu { width: 18rem; padding: 0; overflow: hidden; }

.dc-profile-menu__hero {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  color: #fff;
  background: linear-gradient(155deg, var(--dc-primary-700), var(--dc-primary-950) 75%);
}

.dc-profile-menu__name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  font-size: 14px;
}

.dc-profile-menu__mail {
  display: block;
  margin-top: 0.15rem;
  font-size: 11.5px;
  color: rgb(255 255 255 / 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
}

.dc-profile-menu__phone {
  display: block;
  margin-top: 0.1rem;
  font-size: 11.5px;
  color: rgb(255 255 255 / 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
}

.dc-pro {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dc-pro .dc-icon { font-size: 9px; }

.dc-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.dc-stats div {
  text-align: center;
  padding: 0.35rem 0.2rem;
  border-radius: 0.55rem;
  background: rgb(255 255 255 / 0.08);
}

.dc-stats strong { display: block; font-size: 13px; line-height: 1; }
.dc-stats span { display: block; margin-top: 0.25rem; font-size: 9.5px; color: rgb(255 255 255 / 0.65); }

.dc-menu--flat { padding: 0.35rem; }
.dc-menu--flat a.is-danger { color: var(--dc-danger-600); }

.dc-profile-menu__rule {
  height: 1px;
  margin: 0 0.75rem;
  background: var(--border-subtle);
}

.dc-mini,
.dc-chip,
.dc-app {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dc-mini {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  font-size: 13.5px;
}

.dc-chip {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  font-size: 13px;
}

.dc-app {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 18px;
}

.dc-mini.is-primary, .dc-chip.is-primary { background: color-mix(in srgb, var(--dc-primary-500) 14%, transparent); color: var(--dc-primary-600); }
.dc-mini.is-accent, .dc-chip.is-accent { background: color-mix(in srgb, var(--dc-accent-500) 16%, transparent); color: var(--dc-accent-600); }
.dc-mini.is-info, .dc-chip.is-info { background: color-mix(in srgb, var(--dc-info-500) 14%, transparent); color: var(--dc-info-600); }
.dc-mini.is-success, .dc-chip.is-success { background: color-mix(in srgb, var(--dc-success-500) 14%, transparent); color: var(--dc-success-600); }
.dc-mini.is-warning, .dc-chip.is-warning { background: color-mix(in srgb, var(--dc-warning-500) 16%, transparent); color: var(--dc-warning-600); }
.dc-mini.is-neutral, .dc-chip.is-neutral { background: color-mix(in srgb, var(--text-tertiary) 14%, transparent); color: var(--text-secondary); }
.dc-mini.is-danger { background: color-mix(in srgb, var(--dc-danger-500) 12%, transparent); color: var(--dc-danger-600); }

.dc-app.is-primary { background: var(--dc-primary-600); }
.dc-app.is-success { background: var(--dc-success-600); }
.dc-app.is-info { background: var(--dc-info-600); }
.dc-app.is-accent { background: var(--dc-accent-600); }
.dc-app.is-danger { background: var(--dc-danger-600); }
.dc-app.is-neutral { background: var(--dc-neutral-600); color: #fff; }
.dc-app.is-warning { background: var(--dc-warning-600); }

.dc-mega {
  position: fixed;
  top: 72px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(94vw, 840px);
  padding: 0;
  overflow: hidden;
}

.dc-mega__head,
.dc-mega__recent,
.dc-mega__foot,
.dc-apps__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dc-mega__head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--surface-sunken), transparent);
}

.dc-mega__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--dc-primary-600);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--dc-primary-600) 55%, transparent);
}

.dc-mega__title, .dc-apps__title { margin: 0; font-weight: 800; font-size: 15px; }
.dc-mega__sub, .dc-apps__sub { margin: 0.1rem 0 0; font-size: 11.5px; color: var(--text-tertiary); }

.dc-mega__recent {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.dc-mega__kicker, .dc-mega__label, .dc-notes__when {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.dc-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.dc-chip-link:hover { background: var(--surface-sunken); text-decoration: none; }
.dc-chip-link .dc-icon { font-size: 11px; color: var(--dc-primary-600); }

.dc-mega__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.dc-mega__col {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dc-mega__col ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.dc-mega__col a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 -0.4rem;
  padding: 0.4rem;
  border-radius: 0.55rem;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.dc-mega__col a:hover { background: var(--surface-sunken); text-decoration: none; }
.dc-mega__col a span:nth-child(2) { flex: 1; }
.dc-mega__col a > .dc-icon { font-size: 11px; color: var(--text-tertiary); opacity: 0; }
.dc-mega__col a:hover > .dc-icon { opacity: 0.7; }

.dc-mega__promo-wrap { padding: 0.9rem; }
.dc-mega__promo {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 1rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(155deg, var(--dc-primary-700), var(--dc-primary-950));
}
.dc-mega__promo-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.7rem;
  border-radius: 0.7rem;
  background: rgb(255 255 255 / 0.16);
  font-size: 16px;
}
.dc-mega__promo-title { margin: 0; font-size: 13px; font-weight: 700; }
.dc-mega__promo-copy { margin: 0.4rem 0 0; font-size: 11.5px; color: rgb(255 255 255 / 0.75); }
.dc-mega__promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.45rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--dc-primary-800);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.dc-mega__promo-btn:hover { background: rgb(255 255 255 / 0.9); text-decoration: none; }

.dc-mega__foot {
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-sunken);
  font-size: 11px;
  color: var(--text-tertiary);
}
.dc-mega__foot p { margin: 0; }
.dc-mega__foot span { font-weight: 700; color: var(--text-primary); }
.dc-mega__foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--dc-primary-600);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.dc-apps { width: 340px; padding: 0; overflow: hidden; }
.dc-apps__head { justify-content: space-between; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-subtle); }
.dc-apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.9rem;
}
.dc-apps__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.2rem;
  border-radius: 0.55rem;
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 550;
  text-decoration: none;
  text-align: center;
}
.dc-apps__grid a:hover { background: var(--surface-sunken); text-decoration: none; }

.dc-notes { width: min(24rem, 92vw); padding: 0; overflow: hidden; }
.dc-notes__head {
  position: relative;
  padding: 1rem 1rem 0.85rem;
  color: #fff;
  background: linear-gradient(155deg, var(--dc-primary-700), var(--dc-primary-950) 75%);
}
.dc-notes__title { display: flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 14.5px; }
.dc-notes__count {
  display: inline-flex;
  min-width: 19px;
  height: 19px;
  padding: 0 0.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
  font-size: 10px;
}
.dc-notes__gear {
  position: absolute;
  top: 0.8rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(255 255 255 / 0.85);
  cursor: pointer;
}
.dc-notes__tabs { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.8rem; flex-wrap: wrap; }
.dc-notes__tabs button {
  border: 0;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.85);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.dc-notes__tabs .is-on { background: #fff; color: var(--dc-primary-800); }
.dc-notes__mark { margin-left: auto; background: transparent !important; }
.dc-notes__list { max-height: 24rem; overflow: auto; }
.dc-notes__list > a,
.chat-conv-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dc-notes__list > a:hover,
.chat-conv-item:hover { background: var(--surface-sunken); }
.dc-notes__list > a.is-unread { box-shadow: inset 3px 0 0 var(--dc-primary-500); }
.dc-notes__row { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 12.5px; }
.dc-notes__row em { font-style: normal; font-size: 10.5px; color: var(--text-tertiary); font-weight: 500; }
.dc-notes__body { display: block; margin-top: 0.15rem; font-size: 12px; color: var(--text-secondary); }
.dc-notes__when { margin: 0; padding: 0.7rem 1rem 0.2rem; }
.dc-tag {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 9.5px;
  font-weight: 700;
}
.dc-tag.is-success { background: color-mix(in srgb, var(--dc-success-500) 14%, transparent); color: var(--dc-success-600); }
.dc-tag.is-warning { background: color-mix(in srgb, var(--dc-warning-500) 16%, transparent); color: var(--dc-warning-600); }
.dc-tag.is-primary { background: color-mix(in srgb, var(--dc-primary-500) 14%, transparent); color: var(--dc-primary-600); }
.dc-tag.is-accent { background: color-mix(in srgb, var(--dc-accent-500) 16%, transparent); color: var(--dc-accent-600); }
.dc-notes__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--dc-primary-600);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dc-chat__backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(10 12 11 / 0.5);
}
.dc-chat__backdrop[hidden],
.dc-chat[hidden],
.dc-cmdk[hidden],
.dc-chat__thread[hidden] { display: none !important; }

.dc-chat {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 71;
  display: flex;
  flex-direction: column;
  width: min(100%, 24rem);
  height: 100%;
  background: var(--surface-raised);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--dc-shadow-xl, var(--dc-shadow-lg));
  color: var(--text-primary);
}
.dc-chat__list, .dc-chat__thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.dc-chat__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dc-chat__bar p, .dc-chat__who span:first-child { margin: 0; font-weight: 800; font-size: 15px; flex: 1; }
.dc-chat__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  background: var(--surface-sunken);
  color: var(--text-tertiary);
}
.dc-chat__search input, .dc-chat__compose input, .dc-cmdk__bar input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
}
.dc-chat__scroll { flex: 1; overflow: auto; }
.dc-chat__who { flex: 1; min-width: 0; }
.dc-chat__who span { display: block; }
.dc-chat__online { font-size: 10.5px; font-weight: 600; color: var(--dc-success-500); }
.dc-chat__bubbles { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.dc-chat__bubbles div { max-width: 75%; padding: 0.55rem 0.8rem; border-radius: 1rem; font-size: 13px; }
.dc-chat__bubbles .is-them { align-self: flex-start; background: var(--surface-sunken); border-bottom-left-radius: 0.25rem; }
.dc-chat__bubbles .is-me { align-self: flex-end; background: var(--dc-primary-600); color: #fff; border-bottom-right-radius: 0.25rem; }
.dc-chat__compose {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.dc-chat__compose button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--dc-primary-600);
  color: #fff;
  cursor: pointer;
}

.dc-cmdk {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 1rem 1rem;
  background: rgb(10 12 11 / 0.45);
}
.dc-cmdk__panel {
  width: min(100%, 36rem);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--dc-shadow-xl, var(--dc-shadow-lg));
  color: var(--text-primary);
}
.dc-cmdk__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
}
.dc-cmdk__bar input { font-size: 14px; }
.dc-cmdk__results { max-height: 24rem; overflow: auto; padding: 0.35rem; }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.6rem 0.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}
.cmdk-item:hover, .cmdk-item.is-active { background: var(--surface-sunken); }
.cmdk-item .dc-icon { color: var(--dc-primary-600); font-size: 15px; }
.cmdk-item[hidden] { display: none; }

@media (min-width: 640px) {
  .dc-quick--wide { display: inline-flex; }
  .dc-quick--narrow { display: none; }
  .dc-cluster { display: flex; }
}

@media (min-width: 768px) {
  .dc-search { display: flex; }
}

@media (min-width: 1024px) {
  .dc-topbar__row { padding: 0 1.5rem; gap: 0.85rem; }
  .dc-pill { display: flex; }
  .dc-search { max-width: 280px; }
  .dc-profile > .dc-icon,
  .dc-profile__id { display: flex; }
  .dc-mega__grid { grid-template-columns: 1fr 1fr 1fr 200px; }
  .dc-mega__col { border-bottom: 0; border-right: 1px solid var(--border-subtle); }
  .dc-mega__col:nth-child(3) { border-right: 1px solid var(--border-subtle); }
}

@media (max-width: 639px) {
  .app-header.dc-topbar .dc-theme-chip {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 44px;
  }
}

@media (max-width: 1023px) {
  .dc-topbar__logo { display: inline-flex; }
}
