/* Rich, dynamic thumbnails (reusable). */
.rich-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.rich-thumb__main {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rich-thumb__crumbs {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: calc(100% - 20px);
  overflow: hidden;
  pointer-events: auto;
}

.rich-thumb__crumb {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  border: 3px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.rich-thumb__crumb--image {
  object-fit: cover;
}

.rich-thumb__crumb--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  /* If not overridden inline, match the canvas card icon strip feel */
  background: linear-gradient(135deg, #8b3dff 0%, #6a1b9a 100%);
  color: #ffffff;
}

/* Canvas list + dashboard thumbnails */
.canvas-card-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  background: #e8e4dc;
  overflow: hidden;
  border: 1px solid rgba(28, 36, 51, 0.09);
}
.canvas-card-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}
.canvas-card-thumb.canvas-card-thumb--footer {
  aspect-ratio: auto;
  min-height: 0;
  border-radius: 0.35rem;
}
.canvas-card-name.text-muted {
  font-style: italic;
}

/* UI-wide hyperfocus prototype. */
.nav-hyperfocus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.nav-hyperfocus-btn .bi {
  color: currentColor;
}

.nav-hyperfocus-btn.is-active {
  background: rgba(148, 163, 184, 0.22);
  color: #212529;
}

body.ui-hyperfocus-has-selection .nav-hyperfocus-btn.is-active {
  position: relative;
  z-index: 2147483001;
  background: #fff;
  color: #212529;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.ui-hyperfocus-selection-hidden .nav-hyperfocus-btn {
  background: rgba(148, 163, 184, 0.22);
  color: #666;
}

body.cosmic-skin.ui-hyperfocus-has-selection > header .header-ui-pref-btn.nav-hyperfocus-btn.is-active {
  background: #fff;
  color: #212529;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.cosmic-skin.ui-hyperfocus-selection-hidden > header .header-ui-pref-btn.nav-hyperfocus-btn {
  background: rgba(148, 163, 184, 0.22);
  color: var(--du-text-muted);
}

body.ui-hyperfocus-picking,
body.ui-hyperfocus-picking * {
  cursor: crosshair !important;
}

.ui-hyperfocus-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.ui-hyperfocus-overlay.is-visible {
  opacity: 1;
}

.ui-hyperfocus-dim {
  position: fixed;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.ui-hyperfocus-overlay.is-selected .ui-hyperfocus-dim {
  opacity: 1;
}

.ui-hyperfocus-outline {
  position: fixed;
  left: 0;
  top: 0;
  border: 2px solid rgba(13, 110, 253, 0.95);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.88),
    0 12px 36px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.08s ease,
    width 0.08s ease,
    height 0.08s ease,
    border-color 0.12s ease;
}

.ui-hyperfocus-overlay.is-selected .ui-hyperfocus-outline {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 2px rgba(13, 110, 253, 0.95),
    0 16px 48px rgba(0, 0, 0, 0.35);
}

.ui-hyperfocus-remove {
  position: fixed;
  display: none;
  transform: translateX(-100%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}

.ui-hyperfocus-remove:hover,
.ui-hyperfocus-remove:focus-visible {
  color: #fff;
  text-decoration: none;
}

.ui-hyperfocus-overlay.is-selected .ui-hyperfocus-remove {
  display: inline-flex;
}

.ui-hyperfocus-hint {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.ui-hyperfocus-overlay.is-selected .ui-hyperfocus-hint {
  opacity: 0;
}

body.ui-comm-pocket-picking,
body.ui-comm-pocket-picking * {
  cursor: cell !important;
}

.header-ui-pref-btn.nav-comm-pocket-btn.is-active,
body.ui-comm-pocket-has-pockets .header-ui-pref-btn.nav-comm-pocket-btn {
  background: rgba(61, 110, 168, 0.12);
  color: #3d6ea8;
}

body.cosmic-skin.ui-comm-pocket-has-pockets > header .header-ui-pref-btn.nav-comm-pocket-btn,
body.cosmic-skin > header .header-ui-pref-btn.nav-comm-pocket-btn.is-active {
  background: rgba(174, 206, 240, 0.28);
  color: #fff;
}

#ui-comm-pocket-root {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  pointer-events: none;
}

.ui-comm-pocket-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.ui-comm-pocket-overlay.is-visible {
  opacity: 1;
}

.ui-comm-pocket-dim {
  position: fixed;
  background: rgba(28, 48, 72, 0.38);
}

.ui-comm-pocket-outline {
  position: fixed;
  left: 0;
  top: 0;
  border: 2px solid rgba(90, 142, 196, 0.95);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(244, 249, 255, 0.9),
    0 12px 36px rgba(32, 56, 88, 0.2);
  transition:
    transform 0.08s ease,
    width 0.08s ease,
    height 0.08s ease;
}

.ui-comm-pocket-hint {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(32, 52, 78, 0.94);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(32, 52, 78, 0.28);
  white-space: nowrap;
}

.ui-comm-pocket-pin {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-120vw, -120vh);
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f4f8fd;
  color: #3d6ea8;
  box-shadow:
    0 0 0 1px rgba(61, 110, 168, 0.16),
    0 10px 24px rgba(32, 56, 88, 0.18);
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
}

.ui-comm-pocket-pin i {
  font-size: 1.05rem;
  line-height: 1;
}

.ui-comm-pocket-pin.is-open,
.ui-comm-pocket-pin:hover,
.ui-comm-pocket-pin:focus-visible {
  background: #3d6ea8;
  color: #fff;
  outline: none;
}

.ui-comm-pocket-pin.is-resolved {
  background: #f4f1ee;
  color: #6d7a72;
  box-shadow: 0 0 0 1px rgba(28, 36, 51, 0.08);
}

.ui-comm-pocket-pin__dot {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #5a8ec4;
  box-shadow: 0 0 0 2px #f4f8fd;
  display: none;
}

.ui-comm-pocket-pin.is-unread .ui-comm-pocket-pin__dot {
  display: block;
}

.ui-comm-pocket-pin.is-awaiting {
  animation: ui-comm-pocket-pulse 1.8s ease-in-out infinite;
}

@keyframes ui-comm-pocket-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(61, 110, 168, 0.16), 0 10px 24px rgba(32, 56, 88, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(90, 142, 196, 0.18), 0 10px 24px rgba(32, 56, 88, 0.18); }
}

body.ui-comm-pocket-modal-open {
  overflow: hidden;
}

.ui-comm-pocket-dialog {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding:
    max(7dvh, env(safe-area-inset-top, 0px) + 1.25rem)
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.ui-comm-pocket-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ui-comm-pocket-dialog[hidden] {
  display: none !important;
}

.ui-comm-pocket-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 40, 47, 0.56);
  backdrop-filter: blur(10px);
}

.ui-comm-pocket-dialog__frame {
  position: relative;
  z-index: 1;
  width: min(46rem, 100%);
  max-height: 100%;
  display: flex;
}

.ui-comm-pocket-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-sizing: border-box;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 1.3rem 1.25rem 1.1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #1c2433;
  background:
    radial-gradient(90% 70% at 6% -10%, rgba(186, 214, 245, 0.44), transparent 58%),
    radial-gradient(70% 60% at 100% 8%, rgba(186, 230, 205, 0.16), transparent 52%),
    linear-gradient(165deg, #fbfcfe 0%, #f3f6fa 100%);
  box-shadow:
    0 32px 72px rgba(21, 40, 47, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.28s ease;
  pointer-events: auto;
}

.ui-comm-pocket-dialog.is-open .ui-comm-pocket-panel {
  transform: none;
}

.ui-comm-pocket-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ui-comm-pocket-panel__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ui-comm-pocket-panel__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3d6ea8;
  background: linear-gradient(160deg, rgba(252, 254, 255, 0.98), rgba(198, 220, 245, 0.78));
  border: 1px solid rgba(61, 110, 168, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.ui-comm-pocket-panel__icon i {
  font-size: 1.15rem;
  line-height: 1;
}

.ui-comm-pocket-panel__copy {
  min-width: 0;
}

.ui-comm-pocket-panel__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #1c2433;
}

.ui-comm-pocket-panel__close {
  appearance: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 36, 51, 0.06);
  color: #6a7380;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ui-comm-pocket-panel__close:hover,
.ui-comm-pocket-panel__close:focus-visible {
  background: rgba(61, 110, 168, 0.12);
  color: #3d6ea8;
  outline: none;
}

.ui-comm-pocket-subject {
  margin: 0;
  padding: 0.15rem 0.1rem 0.35rem;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #1c2433;
}

.ui-comm-pocket-subject-field {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.2rem 0.6rem;
  border: 0;
  border-bottom: 1px solid rgba(61, 110, 168, 0.16);
  border-radius: 0;
  background: transparent;
  color: #1c2433;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ui-comm-pocket-subject-field::placeholder {
  color: #6a7380;
  font-weight: 550;
}

.ui-comm-pocket-subject-field:focus {
  outline: none;
  border-bottom-color: rgba(61, 110, 168, 0.48);
  box-shadow: 0 1px 0 rgba(61, 110, 168, 0.35);
}

.ui-comm-pocket-avatar {
  box-sizing: border-box;
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  min-height: 2.45rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #d7e4ff, #e8f0ff);
}

.ui-comm-pocket-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ui-comm-pocket-avatar--initials {
  border: 1px solid rgba(26, 35, 48, 0.12);
  display: grid;
  place-items: center;
}

.ui-comm-pocket-avatar--initials span {
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ui-comm-pocket-panel__thread {
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(32dvh, 18rem);
  overflow: auto;
  padding: 0.1rem 0.05rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ui-comm-pocket-msg {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  max-width: none;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(61, 110, 168, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ui-comm-pocket-msg:first-child {
  padding-top: 0.2rem;
}

.ui-comm-pocket-msg:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.ui-comm-pocket-msg__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.1rem;
}

.ui-comm-pocket-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.ui-comm-pocket-msg__name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1c2433;
}

.ui-comm-pocket-msg__when {
  margin: 0;
  color: #6a7380;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.ui-comm-pocket-msg__text,
.ui-comm-pocket-msg__text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1c2433;
}

.ui-comm-pocket-msg__text > *:first-child {
  margin-top: 0;
}

.ui-comm-pocket-msg__text > *:last-child {
  margin-bottom: 0;
}

.ui-comm-pocket-msg__text p + p {
  margin-top: 0.45rem;
}

.ui-comm-pocket-msg__text a {
  color: #3d6ea8;
}

.ui-comm-pocket-msg__text ul,
.ui-comm-pocket-msg__text ol {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.ui-comm-pocket-panel__compose {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ui-comm-pocket-panel__thread + .ui-comm-pocket-panel__compose {
  margin-top: 0.45rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(61, 110, 168, 0.14);
}

.ui-comm-pocket-reply {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.ui-comm-pocket-reply__fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.ui-comm-pocket-field {
  position: relative;
  display: flex;
  align-items: center;
}

.ui-comm-pocket-field > .bi {
  position: absolute;
  left: 0.95rem;
  color: #6a7380;
  font-size: 1.05rem;
  pointer-events: none;
}

.ui-comm-pocket-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.92rem 1rem 0.92rem 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 110, 168, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: #1c2433;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ui-comm-pocket-search::placeholder {
  color: #6a7380;
  font-weight: 550;
}

.ui-comm-pocket-search:focus {
  outline: none;
  border-color: rgba(61, 110, 168, 0.42);
  box-shadow: 0 0 0 4px rgba(61, 110, 168, 0.16);
  background: #fff;
}

.ui-comm-pocket-hits {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: auto;
  min-height: 0;
  max-height: min(28dvh, 13.5rem);
  padding: 0.45rem 0.1rem 0.1rem;
}

.ui-comm-pocket-hits__empty {
  margin: 0.4rem 0.2rem 0.2rem;
  text-align: center;
  color: #6a7380;
  font-size: 0.94rem;
  font-weight: 600;
}

.ui-comm-pocket-hit {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.78rem;
  border-radius: 1rem;
  border: 1px solid rgba(28, 36, 51, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ui-comm-pocket-hit:hover,
.ui-comm-pocket-hit:focus-visible {
  background: #fff;
  border-color: rgba(61, 110, 168, 0.22);
  outline: none;
  transform: translateY(-1px);
}

.ui-comm-pocket-hit .ui-comm-pocket-avatar {
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  min-height: 2.15rem;
}

.ui-comm-pocket-hit .ui-comm-pocket-avatar--initials span {
  font-size: 0.72rem;
}

.ui-comm-pocket-hit__body {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.ui-comm-pocket-hit__title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-comm-pocket-hits:has(.ui-comm-pocket-complete) {
  max-height: min(46dvh, 22rem);
}

.ui-comm-pocket-hit-wrap {
  min-width: 0;
}

.ui-comm-pocket-hit-wrap.is-completing {
  border-radius: 1rem;
  border: 1px solid rgba(61, 110, 168, 0.22);
  background: #fff;
  padding-bottom: 0.72rem;
}

.ui-comm-pocket-hit-wrap.is-completing .ui-comm-pocket-hit {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ui-comm-pocket-hit-wrap.is-completing .ui-comm-pocket-hit:hover,
.ui-comm-pocket-hit-wrap.is-completing .ui-comm-pocket-hit:focus-visible {
  transform: none;
  border-color: transparent;
}

.ui-comm-pocket-hit__hint--warn {
  color: #9a5b1a;
}

.ui-comm-pocket-complete {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0 0.78rem 0;
}

.ui-comm-pocket-complete__input,
.ui-comm-pocket-complete__locale {
  flex: 1 1 8.5rem;
  min-width: 0;
  border: 1px solid rgba(28, 36, 51, 0.14);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  color: inherit;
  background: #fff;
}

.ui-comm-pocket-complete__locale {
  flex: 0 1 8.5rem;
}

.ui-comm-pocket-complete__input:focus,
.ui-comm-pocket-complete__locale:focus {
  outline: none;
  border-color: rgba(61, 110, 168, 0.42);
  box-shadow: 0 0 0 3px rgba(61, 110, 168, 0.16);
}

.ui-comm-pocket-complete__save {
  border: none;
  border-radius: 8px;
  background: #1c2433;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  cursor: pointer;
}

.ui-comm-pocket-complete__save:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ui-comm-pocket-complete__error {
  flex: 1 1 100%;
  margin: 0.1rem 0 0;
  color: #9a5b1a;
  font-size: 0.8rem;
  font-weight: 600;
}

.ui-comm-pocket-chip {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(61, 110, 168, 0.16);
  background: rgba(255, 255, 255, 0.86);
}

.ui-comm-pocket-chip__copy {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.ui-comm-pocket-chip__copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-comm-pocket-chip__copy em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6a7380;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-comm-pocket-chip__change {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(61, 110, 168, 0.1);
  color: #3d6ea8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ui-comm-pocket-chip__change:hover,
.ui-comm-pocket-chip__change:focus-visible {
  background: rgba(61, 110, 168, 0.18);
  outline: none;
}

.ui-comm-pocket-quill {
  overflow: hidden;
  border-radius: 1.05rem;
  border: 1px solid rgba(61, 110, 168, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ui-comm-pocket-quill .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid rgba(61, 110, 168, 0.12);
  padding: 0.45rem 0.65rem;
  background: rgba(244, 249, 255, 0.72);
}

.ui-comm-pocket-quill .ql-container.ql-snow {
  border: 0;
  font-family: inherit;
  font-size: 1.02rem;
}

.ui-comm-pocket-quill .ql-editor {
  min-height: 9.5rem;
  max-height: min(28dvh, 14rem);
  overflow: auto;
  color: #1c2433;
}

.ui-comm-pocket-quill .ql-editor.ql-blank::before {
  color: #6a7380;
  font-style: normal;
  font-weight: 550;
}

.ui-comm-pocket-quill .ql-snow .ql-stroke {
  stroke: #6a7380;
}

.ui-comm-pocket-quill .ql-snow .ql-fill {
  fill: #6a7380;
}

.ui-comm-pocket-quill .ql-snow button:hover .ql-stroke,
.ui-comm-pocket-quill .ql-snow button.ql-active .ql-stroke {
  stroke: #3d6ea8;
}

.ui-comm-pocket-quill .ql-snow button:hover .ql-fill,
.ui-comm-pocket-quill .ql-snow button.ql-active .ql-fill {
  fill: #3d6ea8;
}

.ui-comm-pocket-panel__send {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.ui-comm-pocket-send-error {
  margin: 0;
  width: 100%;
  color: #9b3a3a;
  font-size: 0.82rem;
  font-weight: 600;
}

.ui-comm-pocket-panel__send button,
.ui-comm-pocket-panel__actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: #3d6ea8;
  color: #fff;
  cursor: pointer;
}

.ui-comm-pocket-panel__send button:hover,
.ui-comm-pocket-panel__actions button:hover {
  background: #335d8f;
}

.ui-comm-pocket-panel__actions [data-pocket-resolve] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #1c2433;
  color: #fff;
}

.ui-comm-pocket-panel__actions [data-pocket-resolve] i {
  font-size: 1.05rem;
  line-height: 1;
}

.ui-comm-pocket-panel__actions [data-pocket-resolve]:hover,
.ui-comm-pocket-panel__actions [data-pocket-resolve]:focus-visible {
  background: #11151c;
}

.ui-comm-pocket-panel__send button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: #3d6ea8;
}

.ui-comm-pocket-panel__actions {
  display: flex;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.ui-comm-pocket-panel__actions button.is-quiet {
  background: transparent;
  color: #6a7380;
  margin-left: auto;
}

.ui-comm-pocket-panel__actions button.is-quiet:hover {
  background: rgba(28, 36, 51, 0.06);
  color: #1c2433;
}

/* Maps list view toggle (match relational canvas toggle feel). */
.maps-view-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(28, 36, 51, 0.18);
  background: #fff;
  overflow: hidden;
}

.maps-view-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: rgba(33, 37, 41, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.maps-view-btn + .maps-view-btn {
  border-left: 1px solid rgba(28, 36, 51, 0.18);
}

.maps-view-btn.is-active {
  background: #e2e8f0;
  color: rgba(33, 37, 41, 1);
}

.maps-list-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.maps-list-toolbar .maps-view-toggle {
  justify-self: start;
}

.maps-list-toolbar-filters-slot {
  justify-self: end;
}

.maps-list-toolbar-care-belt-filters {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.maps-list-toolbar-care-belt-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.maps-list-toolbar-care-belt-filters__reset {
  align-self: flex-end;
}

body:not(.maps-view--care-belt) .maps-list-toolbar-care-belt-filters {
  display: none !important;
}

body.maps-view--care-belt .maps-list-toolbar-filters {
  display: none !important;
}

body.maps-view--care-belt .maps-list-toolbar-care-belt-filters {
  display: flex !important;
}

.maps-list-toolbar--care-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.maps-list-toolbar--care-overview .maps-list-toolbar-care-belt-filters {
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.maps-list-toolbar--care-overview .maps-list-toolbar-care-belt-filters__row {
  justify-content: flex-start;
}

.maps-list-toolbar--care-overview .maps-list-toolbar-care-belt-filters__reset {
  align-self: flex-start;
}

.maps-list-toolbar--care-overview .maps-list-toolbar-end {
  flex: 0 0 auto;
  margin-left: auto;
}

.maps-list-toolbar-center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.maps-list-display-summary {
  text-align: center;
  white-space: nowrap;
}

.maps-list-sort {
  display: inline-block;
  max-width: 100%;
}

.maps-list-sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-emphasis-color);
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: 0 1px 2px rgba(2, 6, 23, 0.06);
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  appearance: none;
}

.maps-list-sort-toggle:hover,
.maps-list-sort-toggle:focus-visible,
.maps-list-sort-toggle.show {
  color: var(--bs-emphasis-color);
  background-color: var(--bs-tertiary-bg);
  border-color: var(--bs-border-color);
  text-decoration: none;
}

.maps-list-sort-toggle__content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.maps-list-sort-toggle.dropdown-toggle::after {
  margin-left: 0;
  flex-shrink: 0;
}

.maps-list-sort-menu {
  min-width: 100%;
}

.maps-list-sort-menu .dropdown-item {
  white-space: nowrap;
}

.maps-list-sort-menu .dropdown-item.active,
.maps-list-sort-menu .dropdown-item:active {
  font-weight: 600;
}

body.maps-list-sort-last-updated [data-maps-list] .sort-handle {
  visibility: hidden;
  pointer-events: none;
}

.maps-mechanisms-filter {
  cursor: default;
}

.maps-mechanisms-filter .maps-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.1rem;
}

.maps-mechanisms-filter .maps-filter-icon i {
  font-size: 1.1rem;
}

.maps-mechanisms-filter .form-check.form-switch {
  padding-left: 0;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.maps-mechanisms-filter .form-check-input {
  cursor: pointer;
  margin-left: 0;
}

.maps-list-item__stacked {
  display: none;
}

.maps-list.maps-list--stacked .maps-list-item__grid {
  display: none;
}

.maps-list.maps-list--stacked .maps-list-item__stacked {
  display: block;
}

/* Force full-width items in stacked mode (override Bootstrap col-*). */
.maps-list.maps-list--stacked > .maps-list-item {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Mirror is appended to body; scope it using a global view class. */
body.maps-view--stacked .sortable-item.is-drag-mirror {
  width: min(1100px, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
}

body.maps-view--stacked .sortable-item.is-drag-mirror .maps-list-item__grid {
  display: none !important;
}

body.maps-view--stacked .sortable-item.is-drag-mirror .maps-list-item__stacked {
  display: block !important;
}

.maps-list-item__stacked-thumb {
  width: 220px;
}

.maps-list-item__stacked-thumb .canvas-card-thumb {
  width: 220px;
  aspect-ratio: 16 / 10;
}

.maps-list-item__stacked-progress {
  width: 220px;
  display: flex;
  align-items: center;
}

.maps-stacked-progress-wrap > .d-flex {
  margin-top: 0 !important;
}

.maps-stacked-progress-wrap .flex-grow-1 {
  min-width: 140px;
}

.maps-stacked-progress-wrap .progress {
  min-width: 140px;
}

.maps-focus-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.maps-focus-crumb {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  border: 3px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.maps-focus-crumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maps-list-item__care-belt {
  display: none;
}

.maps-list-item__care-belt-host {
  padding: 0.25rem 0 0;
}

.maps-list.maps-list--care-belt .maps-list-item__grid {
  display: none;
}

.maps-list.maps-list--care-belt .maps-list-item__stacked {
  display: block;
}

.maps-list.maps-list--care-belt > .maps-list-item {
  flex: 0 0 100%;
  max-width: 100%;
}

body.maps-view--care-belt .maps-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.maps-view--care-belt .maps-list-item__care-belt {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.maps-view--care-belt .maps-list-item__stacked .sort-handle,
body.maps-view--care-belt .maps-list-item__stacked .maps-list-item__stacked-progress,
body.maps-view--care-belt .maps-list-item__stacked .maps-focus-row,
body.maps-view--care-belt .maps-list-item__stacked .flex-grow-1 > .mt-2:not(.maps-focus-row) {
  display: none !important;
}

body.maps-view--care-belt .maps-list-item__stacked-thumb {
  width: 110px;
}

body.maps-view--care-belt .maps-list-item__stacked-thumb .canvas-card-thumb {
  width: 110px;
}

body.maps-view--care-belt .maps-list-in-context {
  display: none !important;
}

.maps-care-belt-view-empty__panel {
  border: 5px dashed #e2e8f0;
}

body:not(.maps-view--care-belt) .maps-care-belt-view-empty {
  display: none !important;
}

body.maps-view--care-belt .maps-care-belt-view-empty:not([hidden]) {
  display: block;
}

.maps-view-btn__care-belt-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
}

.maps-view-btn__care-belt-icon svg {
  width: 100%;
  height: 100%;
}

.rc-global-care-belt-body.rc-care-chain-body {
  padding: 0;
  background: transparent;
  overflow: visible;
}

.rc-global-care-belt-body .rc-care-chain-list {
  margin: 0;
  padding: 0;
}

/* Caretakers avatar stack (inline, list context). */
.maps-caretakers-stack {
  gap: 0;
}

.maps-caretaker-avatar {
  position: relative;
  flex-shrink: 0;
  border-radius: 999px;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.maps-caretaker-avatar + .maps-caretaker-avatar {
  margin-right: -10px;
}

.maps-caretaker-avatar img {
  object-fit: cover;
  vertical-align: middle;
}

