button.cd-msg__name {
  appearance: none; background: none; border: 0; margin: -6px 0; padding: 6px 2px; font: inherit; font-weight: 800; font-size: 0.86rem;
  color: var(--c, #9fd0f4); cursor: pointer; text-align: left; border-radius: 6px; touch-action: manipulation;
}
button.cd-msg__name:hover { text-decoration: underline; }
button.cd-msg__name:focus-visible { outline: 2px solid var(--oro); outline-offset: 1px; }

.cd-foot { display: flex; align-items: center; gap: 8px; flex: none; }
.cd-foot .cd-hint { flex: 1 1 auto; min-width: 0; }
.cd-linkbtn {
  flex: none; margin: 0 12px 8px 0; padding: 4px 6px; border: 0; background: none; color: var(--oro-claro); font-size: 0.72rem; font-weight: 700;
  text-decoration: underline; cursor: pointer; border-radius: 6px;
}
.cd-linkbtn[hidden] { display: none; }

.cd-sheet { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; justify-content: flex-end; }
.cd-sheet[hidden] { display: none; }
.cd-sheet__scrim { position: absolute; inset: 0; background: rgba(4, 12, 22, 0.62); }
.cd-sheet__panel {
  position: relative; max-height: 86%; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 10px; border-top: 2px solid var(--madera-clara);
  border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #17406a, #0f2c4a); box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.45);
}
.cd-sheet__panel:focus { outline: none; }
.cd-sheet__head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 6px 14px; position: sticky; top: 0; background: inherit; z-index: 1; }
.cd-sheet__title { margin: 0; flex: 1 1 auto; min-width: 0; font: 700 1.05rem/1.2 var(--f-display); color: var(--oro); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-sheet__x { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--apagado); cursor: pointer; }
.cd-sheet__x:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cd-sheet__x svg { width: 16px; height: 16px; }
.cd-sheet__body { display: flex; flex-direction: column; gap: 6px; padding: 2px 12px 4px; }
.cd-sheet__item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); color: var(--claro); font-size: 0.95rem; font-weight: 600; text-align: left; cursor: pointer; touch-action: manipulation;
}
.cd-sheet__item:hover, .cd-sheet__item:focus-visible { background: rgba(255, 255, 255, 0.12); outline: none; border-color: var(--oro); }
.cd-sheet__item:disabled { opacity: 0.55; cursor: progress; }
.cd-sheet__item svg { width: 20px; height: 20px; flex: none; color: var(--oro-claro); }
.cd-sheet__item--danger { color: #ffb4ac; }
.cd-sheet__item--danger svg { color: #ffb4ac; }
.cd-sheet__note { margin: 4px 2px; color: var(--apagado); font-size: 0.88rem; line-height: 1.4; }
.cd-sheet__area {
  width: 100%; box-sizing: border-box; min-height: 92px; padding: 10px 12px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2);
  background: #06121f; color: var(--claro); font: inherit; font-size: 1rem; resize: none;
}
.cd-sheet__area:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.22); }
.cd-sheet__count { align-self: flex-end; font-size: 0.72rem; color: var(--apagado); font-variant-numeric: tabular-nums; }
.cd-sheet__row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.cd-sheet__primary, .cd-sheet__secondary {
  min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.cd-sheet__primary { border: 2px solid var(--oro-borde); background: var(--oro); color: #3b2300; box-shadow: 0 3px 0 var(--oro-borde); }
.cd-sheet__primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--oro-borde); }
.cd-sheet__primary:disabled { opacity: 0.5; cursor: not-allowed; }
.cd-sheet__secondary { border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--claro); }
.cd-sheet__secondary:hover { background: rgba(255, 255, 255, 0.1); }
.cd-sheet__secondary:disabled { opacity: 0.5; }

.cd-profile { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.cd-profile__img { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--oro); background: var(--cinta); object-fit: cover; }
.cd-profile__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.85rem; color: var(--claro); }
.cd-profile__name { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-profile__ally { color: #a9e08a; font-weight: 700; }

.cd-reasons { display: flex; flex-direction: column; gap: 6px; }
.cd-reason { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--claro); font-size: 0.93rem; cursor: pointer; }
.cd-reason:has(input:checked) { border-color: var(--oro); background: rgba(255, 194, 26, 0.12); }
.cd-reason input { width: 20px; height: 20px; accent-color: var(--oro); flex: none; }

.cd-muted-row { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 4px 0 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.cd-muted-row__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--claro); }
.cd-muted-row .cd-sheet__secondary { min-height: 38px; padding: 0 12px; font-size: 0.82rem; }

@media (prefers-reduced-motion: no-preference) {
  .cd-sheet:not([hidden]) .cd-sheet__panel { animation: cd-sheet-in 0.16s ease-out; }
  @keyframes cd-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

.cd [hidden] { display: none !important; }

.cd-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid var(--linea); flex: none; overflow-x: auto; scrollbar-width: none; }
.cd-tabs::-webkit-scrollbar { display: none; }
.cd-tab {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px 9px 0 0;
  background: transparent; color: var(--apagado); font-weight: 800; font-size: 0.85rem; white-space: nowrap; cursor: pointer; touch-action: manipulation;
}
.cd-tab:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.cd-tab:focus-visible { outline: 2px solid var(--oro); outline-offset: -2px; }
.cd-tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.1); color: var(--oro); box-shadow: inset 0 -3px 0 var(--oro); }
.cd-tab__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rojo); color: #fff; font-size: 0.68rem; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }

.cd-pm { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px; scrollbar-width: thin; scrollbar-color: #3a6188 transparent; }
.cd-pm__head { display: flex; align-items: center; gap: 8px; flex: none; }
.cd-pm__title { margin: 0; flex: 1 1 auto; min-width: 0; font: 700 1rem/1.2 var(--f-display); color: var(--oro); }
.cd-convs { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.cd-conv {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05); color: var(--claro); text-align: left; cursor: pointer; touch-action: manipulation;
}
.cd-conv:hover, .cd-conv:focus-visible { background: rgba(255, 255, 255, 0.11); outline: none; border-color: var(--oro); }
.cd-conv--unread { border-color: rgba(255, 194, 26, 0.6); background: rgba(255, 194, 26, 0.1); }
.cd-conv__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-conv__name { font-weight: 800; color: var(--c, #9fd0f4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-conv__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cd-conv__tags .cd-rel { padding: 1px 7px; font-size: 0.66rem; }
.cd-conv__preview { font-size: 0.82rem; color: var(--apagado); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-conv--unread .cd-conv__preview { color: var(--claro); font-weight: 600; }
.cd-conv__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cd-conv__time { font-size: 0.7rem; color: #7d93aa; font-variant-numeric: tabular-nums; }
.cd-conv__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rojo); color: #fff; font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center; }

.cd-pmbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 8px; border-bottom: 1px solid var(--linea); flex: none; }
.cd-pmbar__back { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--claro); cursor: pointer; }
.cd-pmbar__back:hover { background: rgba(255, 255, 255, 0.1); }
.cd-pmbar__back svg { width: 18px; height: 18px; transform: rotate(90deg); }
.cd-pmbar__name {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 6px; border: 0; background: transparent; color: var(--oro-claro); font: 800 1rem/1 var(--f-body); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-radius: 8px;
}
.cd-pmbar__name:hover { text-decoration: underline; }
.cd-pmbar__rel { flex: 1 1 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 4px 50px; }
.cd-pmbar__rel:empty { display: none; }
.cd-rel { flex: none; max-width: 100%; padding: 2px 9px; border: 1px solid transparent; border-radius: 99px; font-size: 0.72rem; font-weight: 800; line-height: 1.3; }
.cd-rel--ally { background: #23824a; color: #fff; }
.cd-rel--none { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #c9d8e6; }
.cd-rel--sent { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.45); color: #c9d8e6; }
.cd-rel--wants { background: #8fd0ff; color: #06233f; }
.cd-rel__btn {
  flex: none; min-height: 34px; padding: 0 14px; border: 2px solid var(--oro-borde); border-radius: 99px; background: var(--oro); color: #3b2300;
  font-size: 0.78rem; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.cd-rel__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cd-rel__btn[aria-busy="true"], .cd-sheet__item[aria-busy="true"] { opacity: 0.55; cursor: progress; }
@media (pointer: coarse) {
  .cd-rel__btn { min-height: 44px; }
}

.cd-bubble { align-self: flex-start; max-width: 88%; margin-top: 8px; padding: 7px 10px 4px; border-radius: 12px 12px 12px 3px; background: rgba(255, 255, 255, 0.09); }
.cd-bubble--me { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: rgba(255, 194, 26, 0.17); }
.cd-bubble--cont { margin-top: 2px; }
.cd-bubble__text { margin: 0; font-size: 0.93rem; line-height: 1.4; color: var(--claro); overflow-wrap: anywhere; white-space: pre-wrap; }
.cd-bubble__time { display: block; margin-top: 2px; text-align: right; font-size: 0.66rem; color: #8aa0b6; font-variant-numeric: tabular-nums; }
.cd-older { align-self: center; min-height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--claro); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.cd-older:disabled { opacity: 0.5; }


.cd-langbar { display: flex; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--linea); background: rgba(0, 0, 0, 0.12); flex: none; }
.cd-chip {
  min-width: 48px; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--claro);
  font-weight: 800; font-size: 0.78rem; cursor: pointer; touch-action: manipulation;
}
.cd-chip:hover { background: rgba(255, 255, 255, 0.1); }
.cd-chip[aria-pressed="true"] { background: var(--oro); color: #3b2300; border-color: var(--oro-borde); }
.cd-chip:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

.cd-pmsearch {
  flex: none; width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2); background: #06121f;
  color: var(--claro); font: inherit; font-size: 1rem; appearance: none;
}
.cd-pmsearch:focus { border-color: var(--oro); outline: none; box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.22); }
.cd-pmsearch::-webkit-search-cancel-button { filter: invert(1); opacity: 0.7; }
.cd-sec { margin: 6px 2px 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #7d93aa; }
.cd-sec--note { text-transform: none; letter-spacing: 0; font-style: italic; font-weight: 600; }
.cd-conv--person { min-height: 52px; }
.cd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(88, 180, 58, 0.25); }

.cd-mention { color: var(--oro-claro); font-weight: 700; }
.cd-mention--me { padding: 0 3px; border-radius: 4px; background: rgba(255, 194, 26, 0.24); color: #fff3c4; }
.cd-msg--ally { border-left-color: #5fcf80; }
.cd-msg--wants { border-left-color: #8fd0ff; }
.cd-msg__who { flex-wrap: wrap; row-gap: 2px; }
.cd-msg__ally { flex: none; padding: 0 6px; border-radius: 4px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: #2f9e5a; color: #fff; }
.cd-msg__pending, .cd-msg__wants { flex: none; padding: 0 6px; border-radius: 4px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.cd-msg__pending { border: 1px dashed rgba(255, 255, 255, 0.45); color: #c9d8e6; background: rgba(255, 255, 255, 0.08); }
.cd-msg__wants { background: #8fd0ff; color: #06233f; }
.cd-msg__guild { flex: none; padding: 0 5px; border-radius: 4px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; background: rgba(143, 208, 255, 0.16); color: #bfe3ff; border: 1px solid rgba(143, 208, 255, 0.35); }
.cd-msg__vet { flex: none; padding: 0 6px; border-radius: 4px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(255, 194, 26, 0.16); color: var(--oro); border: 1px solid rgba(255, 194, 26, 0.4); }
.cd-msg__looking, .cd-conv__looking { flex: none; padding: 0 6px; border-radius: 4px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(47, 158, 90, 0.18); color: #8fe3b0; border: 1px solid rgba(47, 158, 90, 0.5); }
.cd-conv__looking { display: inline-block; align-self: flex-start; width: fit-content; }
.cd-look { display: block; width: 100%; margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: inherit; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.cd-look--on { background: rgba(47, 158, 90, 0.2); border-color: rgba(47, 158, 90, 0.6); color: #cdf5dc; }
.cd-look:disabled { opacity: 0.6; cursor: default; }
.cd-perks { flex: none; margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 194, 26, 0.35); background: rgba(255, 194, 26, 0.07); font-size: 0.8rem; }
.cd-perks__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cd-perks__title { color: var(--oro); }
.cd-perks__level { font-size: 0.72rem; opacity: 0.85; }
.cd-perks__line, .cd-perks__next { margin: 4px 0 0; }
.cd-perks__next { opacity: 0.8; font-size: 0.74rem; }
.cd-perks__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cd-perks__chip { min-width: 22px; padding: 1px 6px; border-radius: 999px; text-align: center; font-size: 0.68rem; font-weight: 800; border: 1px solid rgba(255, 255, 255, 0.25); opacity: 0.6; }
.cd-perks__chip--on { opacity: 1; background: rgba(255, 194, 26, 0.22); border-color: rgba(255, 194, 26, 0.7); color: var(--oro); }
.cd-perks__more { display: inline-block; margin-top: 6px; font-size: 0.74rem; font-weight: 700; color: var(--oro); text-decoration: underline; }
.cd-msg--mention { border-left-color: var(--oro); background: rgba(255, 194, 26, 0.1); }
.cd-link { color: #8fd0ff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cd-link:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: 3px; }
.cd-tab__n--mention { background: var(--oro); color: #3b2300; }
.cd-emoji-btn {
  flex: none; width: 44px; min-height: 42px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2); background: #0a2238; font-size: 1.25rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
}
.cd-emoji-btn[aria-expanded="true"] { border-color: var(--oro); }
.cd-img-btn {
  flex: none; width: 44px; min-height: 42px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.2); background: #0a2238; font-size: 1.15rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
}
.cd-img-btn[hidden] { display: none; }
.cd-img-btn:disabled { opacity: 0.5; cursor: progress; }
.cd-media { margin-top: 4px; }
.cd-media__a { display: inline-block; max-width: 100%; border-radius: 10px; overflow: hidden; line-height: 0; background: rgba(0, 0, 0, 0.25); }
.cd-media__img { display: block; max-width: 100%; max-height: 260px; min-height: 60px; min-width: 60px; object-fit: contain; border-radius: 10px; }
.cd-emoji { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 8px; border-top: 1px solid var(--linea); background: #0b2237; flex: none; }
.cd-emoji__b { min-height: 40px; border: 0; border-radius: 8px; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; touch-action: manipulation; }
.cd-emoji__b:hover { background: rgba(255, 255, 255, 0.12); }
.cd-suggest { display: flex; flex-direction: column; flex: none; padding: 4px 8px; border-top: 1px solid var(--linea); background: #0b2237; }
.cd-suggest__b { min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--claro); font-weight: 700; font-size: 0.9rem; text-align: left; cursor: pointer; }
.cd-suggest__b[aria-selected="true"] { background: rgba(255, 194, 26, 0.18); color: var(--oro-claro); }
.cd-linkhost { margin: 0; font: 800 1.05rem/1.3 var(--f-body); color: var(--oro-claro); overflow-wrap: anywhere; }
.cd-linkfull { margin: 0; font-size: 0.78rem; color: var(--apagado); overflow-wrap: anywhere; }
.cd-sheet__warn { margin: 4px 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--error); background: rgba(224, 86, 74, 0.18); color: #ffd7d2; font-size: 0.85rem; line-height: 1.4; }

.cd-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cd-react {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 9px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06); color: var(--claro); font-size: 0.82rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.cd-react:hover { background: rgba(255, 255, 255, 0.14); }
.cd-react--me { border-color: var(--oro); background: rgba(255, 194, 26, 0.16); color: var(--oro-claro); }
.cd-react__e { font-size: 1rem; line-height: 1; }
.cd-react__n { font-variant-numeric: tabular-nums; }
.cd-reacts--all .cd-react { min-height: 36px; padding: 0 10px; }
.cd-picker { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 6px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.12); }
.cd-picker__b { min-width: 40px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-size: 1.35rem; line-height: 1; cursor: pointer; touch-action: manipulation; }
.cd-picker__b:hover, .cd-picker__b:focus-visible { background: rgba(255, 255, 255, 0.16); outline: none; }
.cd-msg__text { cursor: pointer; }

.cd-ann-btn {
  position: relative; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--oro-claro); cursor: pointer;
}
.cd-ann-btn:hover, .cd-ann-btn--on { background: rgba(255, 255, 255, 0.12); }
.cd-ann-btn svg { width: 19px; height: 19px; }
.cd-ann-btn__n {
  position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--rojo); color: #fff; font-size: 0.64rem; font-weight: 800;
  line-height: 16px; text-align: center;
}
.cd-ann-btn__n[hidden] { display: none; }
.cd-ann { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 12px; scrollbar-width: thin; scrollbar-color: #3a6188 transparent; }
.cd-annc { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.cd-annc--pinned { border-color: rgba(255, 194, 26, 0.55); background: rgba(255, 194, 26, 0.08); }
.cd-annc__head { display: flex; align-items: baseline; gap: 8px; }
.cd-annc__pin { font-size: 0.9rem; }
.cd-annc__title { margin: 0; flex: 1 1 auto; min-width: 0; font: 700 1rem/1.25 var(--f-display); color: var(--oro); overflow-wrap: anywhere; }
.cd-annc__time { flex: none; font-size: 0.7rem; color: #8aa0b6; font-variant-numeric: tabular-nums; }
.cd-annc__body { margin-top: 6px; font-size: 0.93rem; line-height: 1.45; color: var(--claro); white-space: pre-wrap; overflow-wrap: anywhere; }
.cd-annc .cd-reacts { margin-top: 8px; }
.cd-form input { font-size: 1rem; }
@media (pointer: coarse) {
  .cd-x { width: 44px; height: 44px; margin: -7px -6px -7px 0; touch-action: manipulation; }
}

.cd-evt { position: relative; padding: 10px 12px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.cd-evt--raffle { border-color: rgba(255, 194, 26, 0.45); }
.cd-evt--gift { border-color: rgba(88, 180, 58, 0.5); }
.cd-evt--done { opacity: 0.94; }
.cd-evt--done .cd-evt__head { opacity: 0.9; }
.cd-evt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cd-evt__kind { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--oro); color: #3b2300; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.cd-evt--gift .cd-evt__kind { background: #7fcf5e; }
.cd-evt__title { margin: 0; flex: 1 1 120px; min-width: 0; font: 700 1rem/1.25 var(--f-display); color: var(--oro); overflow-wrap: anywhere; }
.cd-evt__time, .cd-evt__stat { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.28); color: var(--claro); font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-evt__stat { color: var(--apagado); }
.cd-evt__msg { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.4; color: var(--claro); overflow-wrap: anywhere; }
.cd-evt__label { margin-right: 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #8aa0b6; }
.cd-evt__prize { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 4px; margin-top: 8px; }
.cd-evt__chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cd-evt__chip { padding: 3px 10px; border-radius: 99px; background: rgba(255, 194, 26, 0.16); border: 1px solid rgba(255, 194, 26, 0.55); color: var(--oro-claro); font-size: 0.82rem; font-weight: 800; overflow-wrap: anywhere; }
.cd-evt__req { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; }
.cd-evt__lvl { padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--claro); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }
.cd-evt__req--locked .cd-evt__lvl { background: rgba(255, 215, 160, 0.16); border-color: rgba(255, 215, 160, 0.6); color: #ffd7a0; }
.cd-evt__lvltxt { font-size: 0.82rem; font-weight: 700; color: #ffd7a0; }
.cd-evt__rulebox { margin-top: 6px; }
.cd-evt__rules { display: inline; margin: 0; padding: 0; list-style: none; }
.cd-evt__rules li { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--apagado); font-size: 0.75rem; }
.cd-evt__meta { margin: 6px 0 0; font-size: 0.76rem; color: #8aa0b6; }
.cd-evt__prog { margin-top: 8px; }
.cd-evt__bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.cd-evt__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #58b43a, var(--oro)); transition: width 0.3s ease; }
.cd-evt__progtxt { margin: 3px 0 0; font-size: 0.74rem; color: var(--apagado); font-variant-numeric: tabular-nums; }
.cd-evt__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 10px 0 4px; }
.cd-evt-num {
  position: relative; min-height: 44px; padding: 0; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.08); color: var(--claro);
  font: 800 0.95rem/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation;
}
.cd-evt-num:hover { border-color: var(--oro); background: rgba(255, 194, 26, 0.14); }
.cd-evt-num:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.cd-evt-num[aria-pressed="true"] { background: var(--oro); border-color: var(--oro-borde); color: #3b2300; box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.32); }
.cd-evt-num--taken, .cd-evt-num--off {
  border-color: rgba(255, 255, 255, 0.1); color: #6f87a0; cursor: not-allowed; text-decoration: line-through;
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0 5px, rgba(0, 0, 0, 0.44) 5px 10px);
}
.cd-evt-num--taken:hover, .cd-evt-num--off:hover { border-color: rgba(255, 255, 255, 0.1); background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0 5px, rgba(0, 0, 0, 0.44) 5px 10px); }
.cd-evt-num--off { text-decoration: none; opacity: 0.6; }
.cd-evt-num--mine { border-color: #7fcf5e; background: rgba(88, 180, 58, 0.34); color: #e3f8d6; cursor: default; }
.cd-evt-num--mine:hover { border-color: #7fcf5e; background: rgba(88, 180, 58, 0.34); }
.cd-evt__note { margin: 4px 2px; min-height: 1.2em; font-size: 0.8rem; line-height: 1.35; color: var(--apagado); }
.cd-evt__note--warn { color: #ffd7a0; }
.cd-evt__mine { margin: 2px 2px 0; font-size: 0.82rem; font-weight: 700; color: #b9e8a4; }
.cd-evt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; padding: 4px 0 0; }
.cd-evt__actions--stick { position: sticky; bottom: -12px; z-index: 2; margin: 6px -12px -12px; padding: 8px 12px 12px; border-radius: 0 0 12px 12px; background: #17395a; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cd-evt__sel { flex: 1 1 auto; font-size: 0.86rem; font-weight: 800; color: var(--oro-claro); font-variant-numeric: tabular-nums; }
.cd-evt__btn {
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--claro);
  font-size: 0.9rem; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.cd-evt__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.cd-evt__btn:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.cd-evt__btn--primary { border: 2px solid var(--oro-borde); background: var(--oro); color: #3b2300; box-shadow: 0 3px 0 var(--oro-borde); }
.cd-evt__btn--primary:hover:not(:disabled) { background: var(--oro-claro); }
.cd-evt__btn--primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--oro-borde); }
.cd-evt__btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.cd-evt__why { flex: 1 1 100%; margin: 0; font-size: 0.8rem; line-height: 1.35; color: #ffd7a0; }
.cd-evt__claimres { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(88, 180, 58, 0.2); border: 1px solid rgba(127, 207, 94, 0.55); color: #e3f8d6; font-size: 0.86rem; font-weight: 700; }
.cd-evt__claimres[data-delivery="queued"] { background: rgba(255, 194, 26, 0.14); border-color: rgba(255, 194, 26, 0.5); color: var(--oro-claro); }
.cd-evt__more { margin-top: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); }
.cd-evt__more > summary { min-height: 44px; display: flex; align-items: center; padding: 0 10px; font-size: 0.86rem; font-weight: 800; color: var(--oro-claro); cursor: pointer; list-style-position: inside; }
.cd-evt__more > summary:focus-visible { outline: 2px solid var(--oro); outline-offset: -2px; }
.cd-evt__more[open] > summary { border-bottom: 1px solid var(--linea); }
.cd-evt__more > :not(summary) { margin-left: 10px; margin-right: 10px; }
.cd-evt__more > :last-child { margin-bottom: 10px; }
.cd-evt__more > .cd-evt__grid, .cd-evt__more > .cd-evt__people { margin-top: 8px; }
.cd-evt__people { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; font-size: 0.82rem; color: var(--claro); }
.cd-evt__people li { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow-wrap: anywhere; }
.cd-evt__people-me { background: rgba(88, 180, 58, 0.22) !important; }
.cd-evt__result { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 194, 26, 0.1); border: 1px solid rgba(255, 194, 26, 0.45); }
.cd-evt__restitle { margin: 0 0 4px; font: 700 0.9rem/1.2 var(--f-display); color: var(--oro); }
.cd-evt__winners { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cd-evt__winner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 0.92rem; font-weight: 700; color: var(--claro); overflow-wrap: anywhere; }
.cd-evt__wtxt::before { content: "🏆 "; }
.cd-evt__winner--me { color: #fff3c4; }
.cd-evt__you { padding: 1px 8px; border-radius: 99px; background: var(--oro); color: #3b2300; font-size: 0.72rem; }
.cd-evt__youwon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.cd-evt__youwon p { flex: 1 1 100%; margin: 0; font-size: 0.86rem; font-weight: 700; color: var(--oro-claro); }
.cd-evt__fail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0; }
.cd-evt__bignum { margin: 0; text-align: center; font: 800 2.6rem/1.1 var(--f-display); color: var(--oro); font-variant-numeric: tabular-nums; }

.cd-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147483000; pointer-events: none; }

.cd-list > .cd-evt-row {
  flex: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 6px 0; padding: 7px 10px; box-sizing: border-box; text-align: left;
  border-radius: 12px; border: 1px solid rgba(255, 194, 26, 0.6); background: linear-gradient(90deg, rgba(255, 194, 26, 0.2), rgba(255, 194, 26, 0.07));
  color: var(--claro); cursor: pointer; touch-action: manipulation; font: inherit;
}
.cd-list > .cd-evt-row--gift { border-color: rgba(127, 207, 94, 0.65); background: linear-gradient(90deg, rgba(88, 180, 58, 0.24), rgba(88, 180, 58, 0.08)); }
.cd-evt-row:hover { filter: brightness(1.12); }
.cd-evt-row:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.cd-evt-row__badge {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--oro); color: #3b2300;
  border: 2px solid var(--oro-borde); box-shadow: 0 2px 0 var(--oro-borde);
}
.cd-evt-row--gift .cd-evt-row__badge { background: #7fcf5e; border-color: #3f8a27; box-shadow: 0 2px 0 #3f8a27; }
.cd-evt-row__badge svg { width: 20px; height: 20px; }
.cd-evt-row__text { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.cd-evt-row__title { font-weight: 800; font-size: 0.92rem; line-height: 1.25; color: var(--oro-claro); overflow-wrap: anywhere; }
.cd-evt-row__kind { margin-right: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.32); color: var(--claro); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 1px; }
.cd-evt-row__status { font-size: 0.78rem; line-height: 1.3; color: var(--claro); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cd-evt-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 4px; margin-top: 1px; }
.cd-evt-row__meta[hidden] { display: none; }
.cd-evt-row__chip { padding: 1px 7px; border-radius: 99px; background: rgba(255, 194, 26, 0.16); border: 1px solid rgba(255, 194, 26, 0.5); color: var(--oro-claro); font-size: 0.7rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.cd-evt-row--gift .cd-evt-row__chip { background: rgba(88, 180, 58, 0.2); border-color: rgba(127, 207, 94, 0.6); color: #e3f8d6; }
.cd-evt-row__chip--more { background: rgba(0, 0, 0, 0.28); border-color: rgba(255, 255, 255, 0.2); color: var(--claro); }
.cd-evt-row__level { padding: 1px 7px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.3); color: var(--claro); font-size: 0.68rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.cd-evt-row--done { filter: saturate(0.5); opacity: 0.8; }
.cd-evt-row--locked { filter: saturate(0.55); opacity: 0.78; }
.cd-evt-row--locked .cd-evt-row__status { color: #ffd7a0; font-weight: 700; }
.cd-evt-row--locked .cd-evt-row__badge { background: #6f87a0; border-color: #4d6479; box-shadow: 0 2px 0 #4d6479; }
.cd-evt-row--done .cd-evt-row__badge { background: #6f87a0; border-color: #4d6479; box-shadow: 0 2px 0 #4d6479; }
.cd-evt-row--new { box-shadow: 0 0 0 3px rgba(255, 194, 26, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .cd-evt-row--new { animation: cd-evt-pulse 1.2s ease-out 3; }
  @keyframes cd-evt-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 26, 0.85); } 100% { box-shadow: 0 0 0 12px rgba(255, 194, 26, 0); } }
}

.cd-pins { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; max-height: 38vh; overflow-y: auto; overscroll-behavior: contain; background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid var(--linea); scrollbar-width: thin; }
.cd-pins[hidden] { display: none; }
.cd-pins__list { display: flex; flex-direction: column; gap: 4px; }
.cd-pins .cd-evt-row {
  flex: none; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 5px 8px; box-sizing: border-box; text-align: left;
  border-radius: 10px; border: 1px solid rgba(255, 194, 26, 0.6); background: linear-gradient(90deg, rgba(255, 194, 26, 0.2), rgba(255, 194, 26, 0.07));
  color: var(--claro); cursor: pointer; touch-action: manipulation; font: inherit;
}
.cd-pins .cd-evt-row[hidden] { display: none; }
.cd-pins .cd-evt-row--gift { border-color: rgba(127, 207, 94, 0.65); background: linear-gradient(90deg, rgba(88, 180, 58, 0.24), rgba(88, 180, 58, 0.08)); }
.cd-pins .cd-evt-row__badge { width: 30px; height: 30px; }
.cd-pins .cd-evt-row__badge svg { width: 16px; height: 16px; }
.cd-pins .cd-evt-row__title { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-pins .cd-evt-row__status { font-size: 0.74rem; }
.cd-pins__more {
  flex: none; align-self: center; min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--oro-claro);
  font-size: 0.76rem; font-weight: 800; text-decoration: underline; cursor: pointer; touch-action: manipulation;
}
.cd-pins__more[hidden] { display: none; }
.cd-pins__more:hover { background: rgba(255, 255, 255, 0.08); }
.cd-pins__more:focus-visible { outline: 2px solid var(--oro); outline-offset: 1px; }
.cd.cd--kb .cd-pins { display: none; }
@media (max-height: 520px) {
  .cd-pins { max-height: 30vh; }
}

.cd-verify { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0 10px 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 194, 26, 0.6); background: rgba(255, 194, 26, 0.12); }
.cd-verify[hidden] { display: none; }
.cd-verify__text { margin: 0; font-size: 0.82rem; line-height: 1.35; color: var(--oro-claro); font-weight: 700; }
.cd-verify__btn { min-height: 40px; padding: 0 12px; border: 2px solid var(--oro-borde); border-radius: 10px; background: var(--oro); color: #3b2300; font-size: 0.86rem; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.cd-verify__btn:disabled { opacity: 0.6; cursor: progress; }
.cd-verify__link { align-self: center; display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; font-size: 0.8rem; font-weight: 700; line-height: 1.3; text-align: center; color: var(--oro-claro); text-decoration: underline; touch-action: manipulation; }
.cd-sheet--evt .cd-sheet__body { padding: 2px 12px 6px; }
.cd-sheet--evt .cd-evt { padding: 0 0 6px; border: 0; background: transparent; }
.cd-sheet--evt .cd-evt__actions--stick { bottom: 0; margin: 6px -12px -6px; padding: 8px 12px 10px; border-radius: 0; background: #17395a; }
.cd-evt__left { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 194, 26, 0.14); border: 1px solid rgba(255, 194, 26, 0.55); color: var(--oro-claro); font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-evt--gift .cd-evt__left { background: rgba(88, 180, 58, 0.18); border-color: rgba(127, 207, 94, 0.6); color: #e3f8d6; }
.cd-evt__confirmbox { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 194, 26, 0.5); }
.cd-evt__confirmbox .cd-evt__bignum { font-size: 2.2rem; }
.cd-evt__confirmbox .cd-evt__actions { justify-content: flex-end; }
.cd-evt__gone { margin: 14px 4px; text-align: center; color: var(--apagado); font-size: 0.92rem; }
@media (min-width: 761px) {
  .cd-sheet--evt { justify-content: center; padding: 10px; }
  .cd-sheet--evt .cd-sheet__panel { max-height: 100%; border: 2px solid var(--madera-clara); border-radius: 14px; }
}
@media (pointer: coarse) {
  .cd-hint { display: none; }
}
@media (max-height: 520px) {
  .cd-head { padding: 4px 10px; }
  .cd-tab { min-height: 38px; }
  .cd-form { padding: 6px 10px; }
  .cd-hint { display: none; }
}
.cd.cd--kb { top: var(--cd-top, 0px); bottom: auto; height: var(--cd-h, auto); }
