/* Home dashboard: compact, clear, low-noise layout */

.dashboard-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.dashboard-strip__heading p {
  font-size: 0.9rem;
}

.dashboard-strip__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 980px;
}

.dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border: 1px solid var(--color-border-light, #e5e7eb);
  border-radius: 0.65rem;
  background: var(--eh-surface-subtle, #f8fafc);
  padding: 0.45rem 0.6rem;
  min-height: 62px;
}

.dashboard-metric__label {
  color: var(--color-text-muted, #6b7280);
  font-size: 0.76rem;
  line-height: 1.25;
}

.dashboard-metric__value {
  font-size: 1.15rem;
  line-height: 1.1;
  word-break: break-word;
}

.compact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.35rem;
}

#lastOrders .eh-table,
#projectCompletionsHome .eh-table {
  font-size: 0.88rem;
  margin-top: 0;
}

#lastOrders .eh-table th,
#lastOrders .eh-table td,
#projectCompletionsHome .eh-table th,
#projectCompletionsHome .eh-table td {
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
}

#lastOrders .eh-table td > div + div {
  margin-top: 0.1rem;
}

.hero-logo-small {
  width: auto;
  height: 18px;
}

#newsList,
#mentionsList {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.news-item,
.mention-item {
  border: 1px solid var(--color-border-light, #e5e7eb);
  border-radius: 0.6rem;
  background: var(--eh-surface-subtle, #f8fafc);
}

.news-item {
  padding: 0.65rem 0.75rem;
}

.news-item--preview,
.mention-item--preview {
  cursor: pointer;
}

.news-item--preview:hover,
.mention-item--preview:hover {
  border-color: color-mix(in srgb, var(--color-primary, #2563eb) 35%, var(--color-border-light, #e5e7eb));
}

.news-item h3 {
  font-size: 0.93rem;
  line-height: 1.25;
  margin: 0;
}

.news-item-body {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--color-text-muted, #6b7280);
  margin: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.news-meta-info {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.news-meta-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.news-meta .mark-read {
  font-size: 0.79rem;
  line-height: 1.1;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.news-meta .open-news-detail,
.mention-actions .open-mention-detail {
  font-size: 0.79rem;
  line-height: 1.1;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.mention-item {
  padding: 0.65rem 0.75rem;
}

.mention-meta,
.mention-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mention-actions-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.mention-body {
  white-space: pre-wrap;
  line-height: 1.35;
}

.mention-body--compact {
  white-space: normal;
  color: var(--color-text-muted, #6b7280);
  font-size: 0.85rem;
}

.mention-actions .btn {
  font-size: 0.78rem;
  line-height: 1.1;
  padding: 0.22rem 0.55rem;
}

.home-feed-detail-body {
  min-height: 120px;
}

.home-feed-detail-text {
  white-space: normal;
  line-height: 1.5;
}

.mention-system-hint {
  display: block;
  border: 1px dashed color-mix(in srgb, var(--color-border, #cbd5e1) 80%, transparent);
  background: color-mix(in srgb, var(--color-surface, #fff) 94%, transparent);
  border-radius: 0.55rem;
  padding: 0.3rem 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.77rem;
  line-height: 1.3;
  color: var(--color-text-muted, #6b7280);
}

.mention-system-hint::before {
  content: "System";
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.08rem 0.35rem;
  margin-right: 0.35rem;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 14%, transparent);
  color: var(--color-primary, #2563eb);
}

.mention-ref {
  appearance: none;
  border: 0;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 12%, transparent);
  color: var(--color-primary, #2563eb);
  border-radius: 999px;
  padding: 0.04rem 0.4rem;
  margin: 0 0.08rem;
  cursor: pointer;
  font: inherit;
}

.mention-ref:hover {
  background: color-mix(in srgb, var(--color-primary, #2563eb) 22%, transparent);
}

.compact-list-footer {
  margin-top: 0.05rem;
}

.list-toggle-btn {
  width: 100%;
  border-style: dashed;
}

/* Geburtstag: volle Breite direkt unter dem Header */
.birthday-hero {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#page-main.main-area--birthday-self {
  position: relative;
}

#page-main.main-area--birthday-self::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--color-primary, #2563eb) 22%, transparent) 0, transparent 42%),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, #ec4899 18%, transparent) 0, transparent 38%),
    radial-gradient(circle at 70% 85%, color-mix(in srgb, #fbbf24 14%, transparent) 0, transparent 36%);
}

#page-main.main-area--birthday-self > * {
  position: relative;
  z-index: 1;
}

.bday-badge-only {
  margin-bottom: 1rem;
}

.bday-badge-only__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 30%, var(--color-border-light, #e5e7eb));
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 7%, var(--color-surface, #fff));
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.bday-badge-only__emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.bday-badge-only__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.bday-badge-only__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.82;
}

.bday-card--hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 35%, var(--color-border-light, #e5e7eb));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary, #2563eb) 14%, var(--color-surface, #fff)) 0%,
    color-mix(in srgb, #fef3c7 55%, var(--color-surface, #fff)) 48%,
    color-mix(in srgb, #fce7f3 40%, var(--color-surface, #fff)) 100%
  );
  box-shadow:
    0 14px 40px color-mix(in srgb, var(--color-primary, #2563eb) 12%, transparent),
    0 1px 0 color-mix(in srgb, #fff 70%, transparent);
  padding: 0;
}

.bday-card--hero.bday-card--team {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-primary, #2563eb) 10%, var(--eh-surface-subtle, #f8fafc)),
    var(--color-surface, #fff)
  );
  box-shadow: 0 8px 26px color-mix(in srgb, var(--color-primary, #2563eb) 8%, transparent);
}

.bday-hero-shell {
  position: relative;
  padding: 1.35rem 1.35rem 1.15rem;
}

.bday-hero-shell--self {
  padding-bottom: 1.25rem;
}

.bday-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.bday-hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1;
}

.bday-hero-balloon {
  display: inline-block;
  animation: bday-float 3.2s ease-in-out infinite;
}

.bday-hero-balloon--r {
  animation-delay: -1.1s;
}

.bday-hero-cake {
  display: inline-block;
  font-size: 1.15em;
  animation: bday-wobble 2.8s ease-in-out infinite;
}

@keyframes bday-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bday-wobble {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

.bday-hero-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-primary, #2563eb) 55%, var(--color-text-muted, #6b7280));
}

.bday-hero-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.45rem, 3.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text, #0f172a);
}

.bday-hero-spark {
  display: inline-block;
  margin-left: 0.15rem;
  animation: bday-spark 1.8s ease-in-out infinite;
}

@keyframes bday-spark {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.15);
  }
}

.bday-hero-lead {
  margin: 0.65rem 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--color-text, #0f172a) 88%, var(--color-text-muted, #6b7280));
  max-width: 40rem;
}

.bday-hero-wishes {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text, #0f172a);
}

.bday-hero-wishes li + li {
  margin-top: 0.35rem;
}

.bday-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.bday-meta--hero {
  margin-top: 1.15rem;
}

.bday-meta-item {
  border: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 22%, var(--color-border-light, #e5e7eb));
  border-radius: 0.65rem;
  padding: 0.45rem 0.6rem;
  background: color-mix(in srgb, var(--color-surface, #fff) 92%, transparent);
  backdrop-filter: blur(6px);
}

.bday-meta-label {
  display: block;
  color: var(--color-text-muted, #6b7280);
  font-size: 0.74rem;
}

.bday-meta-value {
  font-size: 0.98rem;
  font-weight: 700;
}

.bday-others {
  font-size: 0.88rem;
  padding: 1rem 1.35rem 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 18%, var(--color-border-light, #e5e7eb));
  background: color-mix(in srgb, var(--color-surface, #fff) 72%, transparent);
}

.bday-others--solo {
  border-top: none;
  padding-top: 1.2rem;
  border-radius: 1rem;
}

.bday-others-hint {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted, #6b7280);
  font-size: 0.86rem;
}

.bday-team-banner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary, #2563eb);
}

.bday-team-banner__emoji {
  font-size: 1.35rem;
}

.bday-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.bday-chip {
  border: 1px solid color-mix(in srgb, var(--color-primary, #2563eb) 28%, var(--color-border-light, #cbd5e1));
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, var(--color-surface, #fff));
}

.bday-chip-age {
  font-weight: 600;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .bday-hero-balloon,
  .bday-hero-cake,
  .bday-hero-spark {
    animation: none !important;
  }
}

#supportSummary {
  margin-top: 0.25rem;
}

#supportSummary li {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .dashboard-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-strip__metrics {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #lastOrders .eh-table,
  #projectCompletionsHome .eh-table {
    font-size: 0.83rem;
  }

  #lastOrders .eh-table th,
  #lastOrders .eh-table td,
  #projectCompletionsHome .eh-table th,
  #projectCompletionsHome .eh-table td {
    padding: 0.36rem 0.45rem;
  }
}

@media (max-width: 560px) {
  .dashboard-strip {
    padding: 0.75rem;
  }

  .dashboard-strip__metrics {
    grid-template-columns: 1fr;
  }
}
