/* ============================================================
   Bubble — pages/inbox.css  (Módulo 1: Inbox)
   Layout de dos columnas internas (feed + detalle) dentro del
   área de contenido. Tarjetas sin bordes sólidos, sombras tenues.
   ============================================================ */

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-6);
  height: calc(100vh - var(--topbar-height) - var(--space-12));
  align-items: stretch;
}

/* El atributo hidden debe ganar a display:grid/flex */
.inbox-overview[hidden], .inbox-layout[hidden] { display: none !important; }

/* ═══ NIVEL 1: Resumen de bandejas por proyecto ═══ */
.inbox-overview { display: flex; flex-direction: column; gap: 44px; }
.overview-head { margin-bottom: 0; }
.overview-title { font-size: clamp(28px, 4vw, 44px); font-weight: var(--fw-semibold, 600); color: var(--text-primary); letter-spacing: 0; }
.overview-sub { font-size: var(--text-base); color: var(--text-tertiary); margin-top: 10px; }
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 460px));
  gap: var(--space-5);
  align-items: start;
}
.project-card {
  --folder-front-top: 72px;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3);
  min-height: 204px;
  padding: 96px var(--space-5) var(--space-5);
  background: transparent;
  border: 0;
  border-radius: 24px;
  box-shadow: none;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project-card::before,
.project-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.project-card::before {
  left: 0; right: 0; top: 44px; bottom: 0;
  z-index: 1;
  border-radius: 18px 22px var(--radius-xl) var(--radius-xl);
  background: linear-gradient(145deg, color-mix(in srgb, var(--proj) 80%, #fff), color-mix(in srgb, var(--proj) 58%, #111827));
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12), inset 0 1px 0 rgba(255,255,255,0.30);
}
.project-card::after {
  left: 0; right: 0; top: var(--folder-front-top); bottom: 0;
  z-index: 3;
  border-radius: 10px 10px var(--radius-xl) var(--radius-xl);
  background: linear-gradient(155deg, color-mix(in srgb, var(--proj) 92%, white 8%), color-mix(in srgb, var(--proj) 82%, black 16%));
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.18), inset 0 -10px 18px rgba(0,0,0,0.10);
  transition: box-shadow 320ms ease;
}
.project-card:hover { transform: translateY(-5px); }
.project-card:hover::after { box-shadow: 0 24px 42px rgba(17, 24, 39, 0.24), inset 0 -10px 18px rgba(0,0,0,0.10); }
.project-card:is(.active, .selected, .is-active, .is-selected, [aria-current="page"], [aria-current="true"]) {
  filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--proj) 22%, transparent));
}
.project-card:is(.active, .selected, .is-active, .is-selected, [aria-current="page"], [aria-current="true"])::after {
  box-shadow: 0 24px 44px rgba(17, 24, 39, 0.22), 0 0 0 1px rgba(255,255,255,0.24), inset 0 -10px 18px rgba(0,0,0,0.10);
}
.project-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); z-index: 4; }
.folder-tab {
  position: absolute; left: 0; top: 34px; width: 46%; height: 50px;
  z-index: 3;
  background: linear-gradient(155deg, color-mix(in srgb, var(--proj) 92%, white 8%), color-mix(in srgb, var(--proj) 82%, black 16%));
  border-radius: 18px 24px 0 0;
  box-shadow: none;
}
.folder-paper {
  position: absolute; top: 28px; width: 42%; height: 90px;
  z-index: 2;
  background:
    linear-gradient(rgba(17,24,39,0.08), rgba(17,24,39,0.08)) 18px 26px / 46% 1px no-repeat,
    linear-gradient(rgba(17,24,39,0.06), rgba(17,24,39,0.06)) 18px 38px / 64% 1px no-repeat,
    rgba(255,255,255,0.94);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 14px 24px rgba(17,24,39,0.16), 0 2px 5px rgba(17,24,39,0.08);
  overflow: hidden;
  transform-origin: 50% 100%;
  transition: transform 460ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
  will-change: transform;
}
.folder-paper::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--proj) 34%, rgba(255,255,255,0.18)) 72%, color-mix(in srgb, var(--proj) 52%, transparent));
}
.paper-one { right: 24%; transform: translate3d(0, 12px, 0) rotate(-4deg); }
.paper-two { right: 9%; transform: translate3d(0, 18px, 0) rotate(5deg); opacity: 0.88; }
.project-card:hover .paper-one { transform: translate3d(-8px, -12px, 0) rotate(-7deg); }
.project-card:hover .paper-two { transform: translate3d(8px, -8px, 0) rotate(8deg); }
/* Tile con monograma sobre el color del proyecto (sin emojis) */
.project-tile {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-lg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-md); font-weight: var(--fw-semibold, 600); line-height: 1;
  color: var(--proj); background: rgba(255,255,255,0.88);
  box-shadow: 0 8px 18px rgba(17,24,39,0.12);
}
.project-tile-icon svg { width: 20px; height: 20px; }
.project-name { z-index: 4; min-width: 0; font-size: var(--text-lg); font-weight: var(--fw-semibold, 600); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px rgba(17,24,39,0.16); }
.project-unread-badge {
  background: #fff; color: var(--proj); font-size: var(--text-xs); font-weight: var(--fw-semibold, 600);
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
}
/* Bolita roja en la esquina cuando hay mensajes nuevos */
.project-new-dot {
  position: absolute; top: 10px; right: 10px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--proj) 56%, transparent);
}
.project-stats { z-index: 4; display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-sm); color: rgba(255,255,255,0.88); }
.project-stats .pstat { display: inline-flex; align-items: center; gap: 5px; }
.project-stats .pstat svg { width: 15px; height: 15px; color: rgba(255,255,255,0.78); }
.project-stats .pstat strong { color: #fff; font-weight: var(--fw-semibold, 600); }
.project-foot { z-index: 4; display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-xs); color: rgba(255,255,255,0.76); padding-top: var(--space-2); border-top: 1px solid rgba(255,255,255,0.24); }
.more-card { border: 0; cursor: pointer; text-align: left; font: inherit; }
.project-card.compact { --folder-front-top: 58px; min-height: 168px; padding-top: 78px; }
.project-card.compact::before { top: 34px; }
.project-card.compact .folder-paper { top: 22px; height: 72px; }
.project-card.compact .folder-tab { top: 26px; height: 40px; }
.project-card.compact .project-name { font-size: var(--text-md); }
.overview-all, .recent-unread {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding-top: 4px;
}
.overview-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
}
.overview-section-head h3 {
  margin: 0; color: var(--text-primary); font-size: var(--text-lg); font-weight: var(--fw-semibold, 600);
}
.overview-section-head p { margin: 4px 0 0; color: var(--text-tertiary); font-size: var(--text-sm); }
.compact-search { width: min(360px, 100%); margin-bottom: 0; }
.compact-search input { height: 42px; font-size: var(--text-sm); box-shadow: none; }
.all-inbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}
.all-inbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}
.all-inbox-row:hover {
  border-color: color-mix(in srgb, var(--proj) 42%, var(--border));
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.all-inbox-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.all-inbox-name { color: var(--text-primary); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-inbox-meta { color: var(--text-tertiary); font-size: var(--text-xs); }
.all-inbox-stats {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}
.all-inbox-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--proj) 9%, transparent);
  color: color-mix(in srgb, var(--proj) 72%, var(--text-secondary));
}
.all-inbox-stats svg { width: 14px; height: 14px; }
.all-inbox-stats strong { color: var(--text-primary); font-weight: var(--fw-semibold, 600); }
.recent-unread-list {
  display: flex; flex-direction: column; gap: var(--space-2);
}
.recent-unread-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3);
  padding: var(--space-4); background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}
.recent-unread-row:hover { border-color: color-mix(in srgb, var(--proj) 42%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.recent-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--proj); box-shadow: 0 0 0 4px color-mix(in srgb, var(--proj) 16%, transparent); }
.recent-main { min-width: 0; }
.recent-title-line { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.recent-title { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); font-weight: var(--fw-medium); }
.recent-time { flex-shrink: 0; color: var(--text-tertiary); font-size: var(--text-xs); }
.recent-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-top: 5px; color: var(--text-tertiary); font-size: var(--text-sm); }
.recent-flag svg { width: 14px; height: 14px; color: var(--warning, #D97706); }
.project-badge {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 9px; border-radius: var(--radius-pill); color: var(--proj);
  background: color-mix(in srgb, var(--proj) 12%, transparent); font-size: var(--text-xs); font-weight: var(--fw-medium);
}
.recent-empty { padding: var(--space-10); border: 1px dashed var(--border); border-radius: var(--radius-xl); background: var(--bg-surface); }

/* Botón volver al nivel 1 */
.inbox-back {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  margin-bottom: var(--space-3); padding: 4px 8px 4px 4px; border-radius: var(--radius-md, 8px);
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-tertiary);
  text-decoration: none; transition: color 120ms ease, background 120ms ease;
}
.inbox-back:hover { color: var(--accent); background: var(--bg-overlay); }
.inbox-back svg { width: 16px; height: 16px; }

/* ─── Columna feed ─── */
.inbox-feed { display: flex; flex-direction: column; min-width: 0; }

/* Buscador */
.inbox-search {
  position: relative;
  margin-bottom: var(--space-3);
}
.inbox-search input {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  font-size: var(--text-md);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.inbox-search input::-webkit-search-cancel-button { display: none; }
.inbox-search input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }
.inbox-search .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary); width: 20px; height: 20px; pointer-events: none;
}
.inbox-search .search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 50%; cursor: pointer;
  color: var(--text-tertiary); transition: background 120ms ease, color 120ms ease;
}
.inbox-search .search-clear:hover { background: var(--bg-overlay); color: var(--text-secondary); }
.inbox-search .search-clear svg { width: 15px; height: 15px; }

/* Pestañas de filtro */
.inbox-tabs {
  display: flex; align-items: center; gap: var(--space-1, 4px);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.inbox-tabs-sep { flex: 1 1 auto; min-width: 8px; }
.inbox-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: none; background: transparent; cursor: pointer;
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-tertiary);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 120ms ease, border-color 120ms ease;
}
.inbox-tab:hover { color: var(--text-secondary); }
.inbox-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count {
  font-size: var(--text-xs); font-weight: var(--fw-medium);
  background: var(--bg-overlay); color: var(--text-tertiary);
  padding: 1px 7px; border-radius: var(--radius-pill); min-width: 18px; text-align: center;
}
.inbox-tab.active .tab-count { background: var(--accent-light); color: var(--accent-text); }

.inbox-feed-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
}
.inbox-feed-heading { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.inbox-select-all, .inbox-card-select {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; cursor: pointer;
}
.inbox-select-all { width: 28px; height: 28px; }
.inbox-select-all input, .inbox-card-select input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.inbox-feed-title { font-size: var(--text-base); font-weight: var(--fw-medium); color: var(--text-secondary); }
.inbox-feed-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-2); padding-right: 4px; }
.inbox-feed-list::-webkit-scrollbar { width: 0; }

/* ─── Tarjeta de feed ─── */
.inbox-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 100ms ease;
}
.inbox-card:hover { box-shadow: var(--shadow-md); }
.inbox-card.active { border-color: var(--accent); }
.inbox-card.bulk-selected { border-color: var(--accent); background: var(--accent-light); }
.inbox-card-select { width: 20px; min-height: 24px; }
.inbox-card.unread { background: var(--bg-surface); }
.inbox-card.unread .inbox-card-title { font-weight: var(--fw-medium); }
.inbox-card.processed { opacity: 0.6; }
.inbox-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.inbox-card.read .inbox-card-dot { background: transparent; }
.inbox-card-body { flex: 1; min-width: 0; }
.inbox-card-top { display: flex; align-items: flex-start; gap: var(--space-2); }
.inbox-card-title { flex: 1; min-width: 0; font-size: var(--text-base); color: var(--text-primary); line-height: var(--lh-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-card-flags { display: flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: var(--text-sm); line-height: 1; }
.inbox-card-flags svg { width: 15px; height: 15px; color: var(--text-tertiary); }
.inbox-card-meta { display: flex; align-items: center; gap: var(--space-2); margin-top: 4px; font-size: var(--text-sm); color: var(--text-tertiary); }
/* Animación de salida al procesar (filosofía inbox vacío) */
.inbox-card.leaving {
  opacity: 0; transform: translateX(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Barra contextual de acciones masivas. */
.inbox-bulk-bar {
  position: fixed; z-index: 1000; left: 50%; bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: var(--space-2); max-width: calc(100vw - var(--space-6));
  padding: var(--space-2) var(--space-3); color: #fff; background: var(--text-primary);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.inbox-bulk-bar.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.inbox-bulk-count { font-size: var(--text-sm); font-weight: var(--fw-medium); white-space: nowrap; }
.inbox-bulk-action, .inbox-bulk-close {
  min-height: 32px; border: 0; border-radius: var(--radius-pill); color: #fff;
  background: rgba(255,255,255,.12); font: inherit; font-size: var(--text-sm); cursor: pointer;
}
.inbox-bulk-action { padding: 6px 12px; white-space: nowrap; }
.inbox-bulk-action:hover, .inbox-bulk-close:hover { background: rgba(255,255,255,.22); }
.inbox-bulk-danger:hover { background: var(--error); }
.inbox-bulk-close { width: 32px; font-size: 21px; line-height: 1; }

/* ─── Panel de detalle ─── */
.inbox-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.inbox-detail-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); color: var(--text-tertiary); text-align: center;
}
.inbox-detail-empty svg { width: 56px; height: 56px; opacity: 0.4; }
.inbox-detail-head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-5); }
.inbox-detail-title { font-size: var(--text-lg); font-weight: var(--fw-medium); color: var(--text-primary); line-height: var(--lh-tight); }
.inbox-detail-sub { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: 2px; }
.inbox-detail-section { margin-bottom: var(--space-5); }
.inbox-detail-actions { margin-top: auto; display: flex; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border); }

/* Toolbar de procesamiento (fijar / importante) */
.inbox-detail-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill); cursor: pointer;
  font-size: var(--text-sm); font-weight: var(--fw-medium);
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-secondary);
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}
.chip-toggle:hover { border-color: var(--border-focus); }
.chip-toggle.on { background: var(--accent-light); border-color: var(--accent); color: var(--accent-text); }
.chip-toggle svg, .inbox-detail-actions .btn svg { width: 15px; height: 15px; }

.type-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: var(--fw-medium);
}
.type-mention      { background: var(--accent-light); color: var(--accent-text); }
.type-assignment   { background: var(--status-inprog-bg); color: var(--status-inprog-text); }
.type-comment      { background: var(--status-review-bg); color: var(--status-review-text); }
.type-status_change{ background: var(--bg-overlay); color: var(--text-secondary); }
.type-due_soon     { background: var(--status-warning-bg); color: var(--status-warning-text); }
.type-project_invite { background: var(--accent-light); color: var(--accent-text); }
.type-alert        { background: var(--error-bg); color: var(--error); }
.type-task_purge_warning { background: var(--warning-bg); color: var(--warning); }

@media (max-width: 900px) {
  .overview-section-head { align-items: stretch; flex-direction: column; }
  .compact-search { width: 100%; }
  .recent-unread-row { grid-template-columns: auto minmax(0, 1fr); align-items: flex-start; }
  .project-badge { grid-column: 2; justify-self: flex-start; max-width: 100%; }
  .inbox-layout { grid-template-columns: 1fr; height: auto; }
  .inbox-detail { min-height: 320px; }
}

@media (max-width: 560px) {
  .inbox-overview { gap: 36px; }
  .overview-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .project-card { --folder-front-top: 66px; min-height: 190px; padding-top: 88px; }
  .folder-paper { top: 24px; height: 82px; }
  .project-card:hover .paper-one { transform: translate3d(-5px, -8px, 0) rotate(-6deg); }
  .project-card:hover .paper-two { transform: translate3d(5px, -6px, 0) rotate(7deg); }
  .recent-title-line { align-items: flex-start; flex-direction: column; gap: 2px; }
  .recent-title { white-space: normal; }
  .inbox-select-all, .inbox-card-select { width: 44px; min-height: 44px; }
  .inbox-bulk-bar { gap: 4px; padding: 6px 8px; overflow-x: auto; }
  .inbox-bulk-action { padding: 6px 10px; }
}

@media (hover: none) {
  .paper-one { transform: translate3d(-4px, 0, 0) rotate(-5deg); }
  .paper-two { transform: translate3d(4px, 4px, 0) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card::after,
  .folder-paper,
  .recent-unread-row {
    transition: none;
  }
}

/* ─── Comunicados globales ─── */
.inbox-card:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .22);
  outline-offset: 2px;
}
.inbox-card.is-announcement { --announcement-card: var(--announcement-info); border-left: 4px solid var(--announcement-card); }
.inbox-card.is-announcement.is-alert { --announcement-card: var(--announcement-alert); }
.inbox-card.is-announcement.is-update { --announcement-card: var(--announcement-update); }
.inbox-card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--lh-base);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.type-announcement_alert { background: var(--announcement-alert-bg); color: var(--announcement-alert); }
.type-announcement_update { background: var(--announcement-update-bg); color: var(--announcement-update); }
.type-announcement_info { background: var(--announcement-info-bg); color: var(--announcement-info); }
.announcement-detail-summary {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
}
.announcement-detail-body {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: var(--lh-loose);
  white-space: pre-wrap;
}
.announcement-detail-action { margin-top: var(--space-4); }

@media (max-width: 560px) {
  .announcement-detail-action { width: 100%; min-height: 44px; justify-content: center; }
}
