/* BizBarrel — Dashboard (Today / command center) */

.dashboard-root {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 15% -10%, rgba(59, 130, 246, 0.14), transparent 65%),
    radial-gradient(900px 320px at 90% 0%, rgba(14, 165, 233, 0.12), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.dashboard-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 35%),
    linear-gradient(transparent 0 97%, rgba(15, 23, 42, 0.05) 100%);
  opacity: 0.9;
}

.dashboard-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dashboard-bg-image {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dashboard-bg-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
  background: rgba(248, 250, 252, 0.42);
}

.dashboard-root--has-bg {
  background: transparent;
}

.dashboard-root--has-bg::before {
  opacity: 0.35;
}

.dashboard-root--has-bg .dashboard-bg-image,
.dashboard-root--has-bg .dashboard-bg-scrim {
  opacity: 1;
}

.dashboard-top {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 8px 16px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 16px rgba(15, 23, 42, 0.06);
}

.dashboard-top::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0));
}

.dashboard-heading {
  margin: 0 0 2px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.dashboard-tagline {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #64748b;
  max-width: 52rem;
}

.dashboard-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.dashboard-channel-field,
.calendar-channel-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dashboard-channel-label,
.calendar-channel-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.dashboard-channel-select,
.calendar-channel-select,
.team-channel-select {
  min-height: 34px;
  max-width: min(12rem, 42vw);
  padding: 6px 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-muted, var(--surface));
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}

.dashboard-channel-select:focus-visible,
.calendar-channel-select:focus-visible,
.team-channel-select:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
}

.dashboard-root--team-channel .dashboard-heading::after {
  content: " · Team";
  font-weight: 700;
  color: #2a4d8f;
  font-size: 0.72em;
}

.dashboard-date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1e293b;
}

.dashboard-date-long {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  min-width: 200px;
}

.dashboard-date-input {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dashboard-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.dashboard-error {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.88rem;
}

.dashboard-body {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overflow-anchor: none;
  padding: 18px 20px 34px;
}

.dashboard-root--has-bg .dashboard-top {
  background: color-mix(in srgb, var(--surface, #fff) 72%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dashboard-root--has-bg .dashboard-section {
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dashboard-body--refreshing .dashboard-sections-grid {
  opacity: 0.88;
  transition: opacity 0.18s ease;
}

.dashboard-date-loading-slot {
  width: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-date-load-indicator {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(100, 116, 139, 0.28);
  border-top-color: rgba(59, 130, 246, 0.88);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dashboard-date-loading-slot.is-active .dashboard-date-load-indicator {
  opacity: 1;
  animation: dashboard-date-spin 0.55s linear infinite;
}

@keyframes dashboard-date-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-body--refreshing .dashboard-sections-grid {
    opacity: 0.9;
    transition: none;
  }

  .dashboard-sections-grid {
    transition: none;
  }

  .dashboard-date-loading-slot.is-active .dashboard-date-load-indicator {
    animation: none;
    opacity: 1;
    border-top-color: rgba(59, 130, 246, 0.55);
  }
}

html[data-theme="dark"] .dashboard-date-load-indicator,
html[data-theme="soft"] .dashboard-date-load-indicator {
  border-color: rgba(148, 163, 184, 0.25);
  border-top-color: rgba(138, 180, 248, 0.9);
}

.dashboard-section-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.dashboard-section-footer__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-recent-chip {
  max-width: min(220px, 42vw);
}

.dashboard-recent-chip__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.dashboard-recent-chip.dashboard-open-chip--has-data::after {
  display: none;
}

.dashboard-open-chip {
  --dash-accent: #3b82f6;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%),
    linear-gradient(120deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0));
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 16px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.dashboard-open-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(37, 99, 235, 0.18);
}

.dashboard-open-chip:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

.dashboard-open-chip--has-data {
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(59, 130, 246, 0.15);
}

.dashboard-open-chip--has-data .dashboard-open-chip__n {
  font-weight: 800;
}

.dashboard-open-chip--has-data::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dash-accent, #3b82f6);
  opacity: 0.9;
}

.dashboard-open-chip__n {
  font-variant-numeric: tabular-nums;
}

.dashboard-open-chip__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.dashboard-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-summary-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%),
    linear-gradient(120deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0));
  text-decoration: none;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 16px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.dashboard-summary-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 22px rgba(37, 99, 235, 0.18);
}

.dashboard-summary-chip--has-data {
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(59, 130, 246, 0.15);
}

.dashboard-summary-chip--has-data .dashboard-summary-n {
  font-weight: 800;
}

.dashboard-summary-chip--has-data::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dash-accent, #3b82f6);
  opacity: 0.9;
}

.dashboard-summary-n {
  font-variant-numeric: tabular-nums;
}

.dashboard-summary-l {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

/* Section cards: responsive grid of boxed panels with artwork strip */
.dashboard-sections-grid {
  --dash-section-grid-height: 236px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  grid-auto-rows: var(--dash-section-grid-height);
  gap: 1.15rem;
  align-items: stretch;
  max-width: 1320px;
  margin: 0 auto;
  transition: opacity 0.22s ease;
}

.dashboard-section--timeline {
  --dash-card-accent: #4f46e5;
  --dash-card-accent2: #7c3aed;
}

.dashboard-open-chip--timeline {
  min-width: 10rem;
}

.dash-timeline-preview-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

/* Full-bleed row below grid: « carousel » item navigator */
.dashboard-expand-panel {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  margin-top: 1rem;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.dashboard-expand-panel.hidden {
  display: none !important;
}

.dashboard-expand-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dashboard-expand-block + .dashboard-expand-block .dashboard-expand-panel {
  margin-top: 0.55rem;
}

.dashboard-expand-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  max-width: 1320px;
  margin: 0 auto 10px;
}

.dashboard-expand-panel__title {
  flex: 1;
  min-width: 140px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
}

.dashboard-expand-carousel-wrap {
  max-width: min(1200px, 100%);
  margin: 0 auto;
}

.dashboard-expand-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 8px 0 4px;
}

.dashboard-expand-strip-host {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.dashboard-expand-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding: 4px 6px;
  padding: 6px 2px 10px;
  margin: 0 -2px;
  outline: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.dashboard-expand-scroller:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.35);
  border-radius: 12px;
}

.dashboard-expand-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: max-content;
  min-height: 0;
}

.dashboard-expand-nav {
  flex: 0 0 auto;
  align-self: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #1e40af;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(30, 64, 175, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.dashboard-expand-nav:hover:not(:disabled) {
  transform: scale(1.06);
  border-color: rgba(59, 130, 246, 0.55);
  color: #2563eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 20px rgba(37, 99, 235, 0.2);
}

.dashboard-expand-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  color: #94a3b8;
}

.dashboard-expand-counter {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 4px;
}

.dashboard-expand-tile {
  flex: 0 0 auto;
  width: clamp(108px, 16vw, 140px);
  aspect-ratio: 1 / 1;
  padding: 10px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  scroll-snap-align: start;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(165deg, #ffffff, #f1f5f9);
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 18px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.dashboard-expand-tile:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 28px rgba(37, 99, 235, 0.14);
}

.dashboard-expand-tile__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

.dashboard-expand-tile__sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 4px;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}

.dashboard-body-hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.dashboard-body-hint strong {
  color: #475569;
}

.dashboard-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.dashboard-jump a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 3px;
}

.dashboard-jump a:hover {
  text-decoration: underline;
}

.dashboard-section {
  --dash-card-accent: #3b82f6;
  --dash-card-accent2: #0ea5e9;
  --dash-visual-glow: rgba(255, 255, 255, 0.22);
  position: relative;
  margin-bottom: 0;
  padding: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.dashboard-section:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  border-color: color-mix(in srgb, var(--dash-card-accent) 38%, rgba(148, 163, 184, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 20px 40px rgba(15, 23, 42, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 20px 40px color-mix(in srgb, var(--dash-card-accent) 22%, rgba(15, 23, 42, 0.12));
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-section {
    transition: none;
  }

  .dashboard-section:hover,
  html[data-theme="light"] .dashboard-section.dashboard-section--has-items:hover,
  html[data-theme="dark"] .dashboard-section.dashboard-section--has-items:hover,
  html[data-theme="soft"] .dashboard-section.dashboard-section--has-items:hover {
    transform: none;
  }
}

.dashboard-section-visual {
  position: relative;
  flex-shrink: 0;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px 18px 0 0;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--dash-visual-glow), transparent 55%),
    linear-gradient(155deg, var(--dash-card-accent) 0%, var(--dash-card-accent2) 100%);
  overflow: hidden;
}

.dashboard-section-visual::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2), transparent 42%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 14px,
      rgba(255, 255, 255, 0.06) 14px,
      rgba(255, 255, 255, 0.06) 15px
    );
  opacity: 0.55;
  pointer-events: none;
}

.dashboard-section-art {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

.dashboard-section-shell {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dashboard-section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dash-card-accent) 7%, transparent), transparent 48%);
  opacity: 0.85;
}

.dashboard-section-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0 6px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.dashboard-section-body > .dashboard-empty,
.dashboard-section-body > .dashboard-body-hint {
  margin: 0;
}

@media (min-width: 520px) {
  .dashboard-section {
    flex-direction: row;
    align-items: stretch;
  }

  .dashboard-section-visual {
    width: 108px;
    flex: 0 0 108px;
    min-height: 0;
    align-self: stretch;
    border-radius: 18px 0 0 18px;
  }

  .dashboard-section-shell {
    padding: 16px 18px 18px;
    border-radius: 0;
  }

  .dashboard-section-shell::before {
    border-radius: 0 18px 18px 0;
  }
}

/* Palette per section */
.dashboard-section--journal {
  --dash-card-accent: #d97706;
  --dash-card-accent2: #ea580c;
}

.dashboard-section--stickies {
  --dash-card-accent: #ca8a04;
  --dash-card-accent2: #eab308;
}

/* Floating draggable stickies (spawned from dashboard expand tiles only; fixed-size dashboard cards unchanged) */
.dash-sticky-float {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 24px);
  z-index: 100110; /* fallback — BizBarrelCockpitOverlayStack sets inline z-index when active */
  box-sizing: border-box;
  pointer-events: auto;
}

.dash-sticky-float--resized {
  min-width: 220px;
  min-height: 160px;
}

.dash-sticky-float__tack {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.4));
}

.dash-sticky-float__tack-icon {
  display: block;
}

.dash-sticky-float__sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  padding: 0;
  border-radius: 2px 3px 5px 2px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, transparent 38%),
    linear-gradient(145deg, #fffef5 0%, #fff9c4 32%, #fde047 88%, #facc15 100%);
  border: 1px solid rgba(161, 98, 7, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 14px 28px rgba(15, 23, 42, 0.2),
    0 5px 12px rgba(15, 23, 42, 0.14),
    2px 3px 0 rgba(113, 63, 18, 0.07);
  overflow: hidden;
}

.dash-sticky-float__sheet::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 11px 11px;
  border-color: transparent transparent rgba(113, 63, 18, 0.14) transparent;
  pointer-events: none;
}

.dash-sticky-float__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 6px 8px 10px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.65), rgba(253, 224, 71, 0.15));
  border-bottom: 1px solid rgba(161, 98, 7, 0.18);
}

.dash-sticky-float__header:active {
  cursor: grabbing;
}

.dash-sticky-float__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  margin: 0;
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.55), rgba(253, 224, 71, 0.22));
  border-bottom: 1px solid rgba(161, 98, 7, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.dash-sticky-float__nav-btn.cal-step-btn {
  flex: 0 0 auto;
  margin: 0;
  touch-action: manipulation;
}

.dash-sticky-float__nav-pos {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #713f12;
  user-select: none;
}

.dash-sticky-float__grip {
  flex: 0 0 auto;
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #92400e;
  opacity: 0.75;
}

.dash-sticky-float__hdr-title {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #422006;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sticky-float__done {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(161, 98, 7, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  color: #713f12;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}

.dash-sticky-float__done:hover,
.dash-sticky-float__done:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(22, 163, 74, 0.55);
  outline: none;
}

.dash-sticky-float__done.is-done {
  background: color-mix(in srgb, #16a34a 78%, #fff);
  border-color: #15803d;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
}

.dash-sticky-float__done:disabled {
  opacity: 0.6;
  cursor: wait;
}

.dash-sticky-float__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  color: #422006;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.dash-sticky-float__close:hover {
  background: rgba(255, 255, 255, 0.55);
}

.dash-sticky-float__body {
  margin: 0;
  padding: 12px 14px 36px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #713f12;
  flex: 1 1 auto;
  min-height: 72px;
  max-height: min(46vh, 320px);
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  touch-action: pan-y;
}

.dash-sticky-float--resized .dash-sticky-float__body {
  max-height: none;
}

.dash-sticky-float__resize {
  appearance: none;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 4px 0;
  background:
    linear-gradient(135deg, transparent 0 52%, rgba(113, 63, 18, 0.28) 54% 58%, transparent 60% 70%, rgba(113, 63, 18, 0.45) 72% 76%, transparent 78%);
  cursor: nwse-resize;
  touch-action: none;
}

.dash-sticky-float__resize:hover,
.dash-sticky-float__resize:focus-visible {
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(113, 63, 18, 0.4) 50% 56%, transparent 58% 68%, rgba(113, 63, 18, 0.62) 70% 78%, transparent 80%);
  outline: none;
}

.dash-sticky-float__body .sticky-video-url {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #92400e;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
  word-break: break-all;
  font-weight: 600;
}

.dash-sticky-float__body .sticky-video-url:hover {
  color: #78350f;
}

.dash-sticky-float__body .sticky-video-player,
.dash-sticky-float__body .pf-video-embed {
  margin: 8px 0;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.dash-sticky-float__body .pf-video-embed--youtube,
.dash-sticky-float__body .pf-video-embed--vimeo {
  aspect-ratio: 16 / 9;
}

.dash-sticky-float__body .pf-video-embed__frame {
  display: block;
  width: 100%;
  min-height: 140px;
  border: 0;
}

.dash-sticky-float__body .pf-video-embed--youtube .pf-video-embed__frame,
.dash-sticky-float__body .pf-video-embed--vimeo .pf-video-embed__frame {
  min-height: 0;
  height: 100%;
}

.dash-sticky-float__body .pf-video-embed--tiktok {
  max-width: 260px;
}

.dash-sticky-float__body .pf-video-embed__frame--tiktok {
  min-height: 380px;
}

.dash-sticky-float__foot {
  flex: 0 0 auto;
  padding: 0 10px 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  touch-action: manipulation;
}

.dash-sticky-float__inbox {
  appearance: none;
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(161, 98, 7, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.45);
  color: #713f12;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.dash-sticky-float__inbox:hover,
.dash-sticky-float__inbox:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(161, 98, 7, 0.45);
  box-shadow: 0 2px 8px rgba(113, 63, 18, 0.16);
  outline: none;
}

.dash-sticky-float--completed .dash-sticky-float__hdr-title {
  text-decoration: line-through;
  color: #57534e;
}

.dash-sticky-float--completed .dash-sticky-float__body {
  color: #78716c;
  opacity: 0.95;
}

html[data-theme="dark"] .dash-sticky-float__sheet,
html[data-theme="soft"] .dash-sticky-float__sheet {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.18) 0%, transparent 36%),
    linear-gradient(145deg, #fef9c3 0%, #fde047 42%, #eab308 100%);
  border-color: rgba(180, 83, 9, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 16px 32px rgba(0, 0, 0, 0.48),
    0 6px 14px rgba(0, 0, 0, 0.3),
    2px 3px 0 rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .dash-sticky-float__header,
html[data-theme="soft"] .dash-sticky-float__header {
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.45), rgba(253, 224, 71, 0.12));
  border-bottom-color: rgba(120, 53, 15, 0.25);
}

html[data-theme="dark"] .dash-sticky-float__nav,
html[data-theme="soft"] .dash-sticky-float__nav {
  background: linear-gradient(180deg, rgba(254, 240, 138, 0.4), rgba(253, 224, 71, 0.15));
  border-bottom-color: rgba(120, 53, 15, 0.3);
}

html[data-theme="dark"] .dash-sticky-float__nav-btn,
html[data-theme="soft"] .dash-sticky-float__nav-btn {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(120, 53, 15, 0.35);
  color: #292524;
}

.dashboard-section--tasks {
  --dash-card-accent: #059669;
  --dash-card-accent2: #10b981;
}

.dashboard-section--archive {
  --dash-card-accent: #6366f1;
  --dash-card-accent2: #8b5cf6;
}

.dashboard-section--group {
  --dash-card-accent: #e11d48;
  --dash-card-accent2: #f43f5e;
}

.dashboard-section--research {
  --dash-card-accent: #2563eb;
  --dash-card-accent2: #7c3aed;
}

.dashboard-section--privateforums {
  --dash-card-accent: #9333ea;
  --dash-card-accent2: #c084fc;
}

.dashboard-section-title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.dash-section-drag,
.dash-section-minimize {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--border, #d2d2d2) 70%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface, #fff) 88%, var(--surface-muted, #f4f6f9));
  color: var(--text-muted, #64748b);
  font-size: 14px;
  line-height: 1;
  letter-spacing: -1px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition:
    border-color 0.14s ease,
    background-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.12s ease;
}

.dash-section-drag {
  cursor: grab;
}

.dash-section-drag:hover,
.dash-section-minimize:hover {
  color: var(--text, #1f2937);
  border-color: color-mix(in srgb, var(--accent, #2a4d8f) 45%, var(--border));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent, #2a4d8f) 22%, transparent);
}

.dash-section-drag:active,
.dash-section--dragging .dash-section-drag {
  cursor: grabbing;
}

.dashboard-section.dash-section--dragging {
  opacity: 0.72;
  transform: scale(1.02);
  outline: 2px solid color-mix(in srgb, var(--accent, #2a4d8f) 70%, #fff);
  outline-offset: 3px;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent, #2a4d8f) 22%, transparent),
    0 12px 28px color-mix(in srgb, var(--accent, #2a4d8f) 28%, transparent);
  z-index: 2;
  filter: saturate(1.15) brightness(1.06);
}

.dashboard-section.dash-section--drop-swap {
  outline: 3px solid color-mix(in srgb, var(--accent, #2a4d8f) 92%, #fff);
  outline-offset: 3px;
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--accent, #2a4d8f) 28%, transparent),
    0 14px 32px color-mix(in srgb, var(--accent, #2a4d8f) 32%, transparent);
  filter: saturate(1.2) brightness(1.08);
  transform: scale(1.015);
}

body.dash-section-dnd-active .dashboard-sections-grid > .dashboard-section:not(.dash-section--dragging):not(.dash-section--drop-swap) {
  opacity: 0.62;
  filter: saturate(0.85);
}

body.dash-section-dnd-active .dashboard-section {
  transition:
    box-shadow 0.12s ease,
    opacity 0.12s ease,
    transform 0.12s ease,
    filter 0.12s ease,
    outline-color 0.12s ease;
}

body.dash-section-dnd-active .dashboard-section:hover {
  transform: none;
}

.dashboard-section.dashboard-section--minimized {
  display: none !important;
}

.dash-section--fly-ghost {
  border-radius: var(--bb-card-radius, 12px);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent, #2a4d8f) 55%, transparent),
    0 16px 36px rgba(15, 23, 42, 0.22);
  filter: saturate(1.2) brightness(1.08);
  transition:
    transform 0.22s cubic-bezier(0.22, 0.9, 0.3, 1),
    opacity 0.22s ease;
  overflow: hidden;
}

.dashboard-section.dash-section--restore-pop {
  animation: dash-section-restore-pop 0.2s ease;
}

@keyframes dash-section-restore-pop {
  from {
    opacity: 0.35;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dash-minimized-tray {
  position: fixed;
  z-index: 100110; /* fallback — BizBarrelCockpitOverlayStack sets inline z-index when active */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 4px;
  border: 1px solid color-mix(in srgb, var(--accent, #2a4d8f) 22%, var(--border, #d2d2d2));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #2a4d8f) 8%, var(--surface, #fff));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  touch-action: none;
  max-width: min(calc(100% - 16px), 480px);
}

.dash-minimized-tray--dragging {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.dash-minimized-tray__handle {
  flex: 0 0 auto;
  appearance: none;
  margin: 0;
  padding: 0.1rem 0.45rem;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #2a4d8f) 8%, transparent);
  color: color-mix(in srgb, var(--text, #334155) 70%, transparent);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.dash-minimized-tray__handle:hover,
.dash-minimized-tray__handle:focus-visible {
  background: color-mix(in srgb, var(--accent, #2a4d8f) 14%, transparent);
  outline: 2px solid color-mix(in srgb, var(--accent, #2a4d8f) 35%, transparent);
  outline-offset: 1px;
}

.dash-minimized-tray--dragging .dash-minimized-tray__handle {
  cursor: grabbing;
}

.dash-minimized-tray__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dash-minimized-tray.hidden {
  display: none !important;
}

.dash-icon-dock.hidden {
  display: none !important;
}

.dash-minimized-chip {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent, #2a4d8f) 35%, var(--border));
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--text, #1f2937);
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.14s ease,
    border-color 0.14s ease,
    background-color 0.14s ease;
}

.dash-minimized-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #2a4d8f) 60%, var(--border));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent, #2a4d8f) 22%, transparent);
  background: color-mix(in srgb, var(--accent, #2a4d8f) 10%, var(--surface, #fff));
  z-index: 2;
}

.dash-minimized-chip--filter {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent, #2a4d8f) 55%, transparent),
    0 6px 16px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--accent, #2a4d8f) 60%, var(--border));
}

.dash-float-tip {
  position: fixed;
  z-index: 100300;
  max-width: 14rem;
  padding: 6px 9px;
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.dash-float-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-minimized-chip__glyph {
  color: var(--accent, #2a4d8f);
  font-size: 14px;
  line-height: 1;
}

/* Card size control + modes */
.dash-card-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--border, #d2d2d2) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface, #fff) 90%, var(--surface-muted, #f4f6f9));
}

.dash-card-size__label {
  padding: 0 6px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
}

.dash-card-size__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #64748b);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease;
}

.dash-card-size__btn:hover {
  color: var(--text, #1f2937);
  background: color-mix(in srgb, var(--accent, #2a4d8f) 10%, transparent);
}

.dash-card-size__btn.is-active,
.dash-card-size__btn[aria-pressed="true"] {
  color: #fff;
  background: var(--accent, #2a4d8f);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent, #2a4d8f) 30%, transparent);
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  min-height: min(72vh, 640px);
}

.dash-icon-dock {
  position: fixed;
  z-index: 100110; /* fallback — BizBarrelCockpitOverlayStack sets inline z-index when active */
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem 0.45rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface, #fff) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--border, #cbd5e1) 75%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  touch-action: none;
  max-width: min(calc(100% - 16px), 760px);
}

.dash-icon-dock--dragging {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.dash-icon-dock__toolbar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  align-self: flex-start;
}

.dash-icon-dock__handle,
.dash-icon-dock__collapse {
  padding: 0.1rem 0.45rem;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #2a4d8f) 8%, transparent);
  color: color-mix(in srgb, var(--text, #334155) 70%, transparent);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  user-select: none;
  touch-action: none;
}

.dash-icon-dock__handle {
  cursor: grab;
}

.dash-icon-dock__collapse {
  cursor: pointer;
  font: inherit;
}

.dash-icon-dock__handle:hover,
.dash-icon-dock__handle:focus-visible,
.dash-icon-dock__collapse:hover,
.dash-icon-dock__collapse:focus-visible {
  background: color-mix(in srgb, var(--accent, #2a4d8f) 14%, transparent);
  color: var(--accent, #2a4d8f);
  outline: none;
}

.dash-icon-dock--dragging .dash-icon-dock__handle {
  cursor: grabbing;
}

.dash-icon-dock--collapsed:not(.dash-icon-dock--expanded) .dashboard-sections-grid .dashboard-section {
  display: none !important;
}

.dash-icon-dock--collapsed:not(.dash-icon-dock--expanded) .dashboard-sections-grid .dashboard-section.dash-icon-dock__peek {
  display: block !important;
}

.dash-icon-dock--collapsed:not(.dash-icon-dock--expanded) .dashboard-sections-grid {
  grid-template-columns: 52px;
}

.dash-icon-dock .dashboard-sections-grid {
  --dash-section-grid-height: 52px;
  order: unset;
  flex: 0 0 auto;
  width: auto;
  max-width: min(calc(100vw - 48px), 720px);
  margin: 0;
  grid-template-columns: repeat(auto-fill, 52px);
  gap: 0.55rem;
  justify-content: flex-start;
  justify-items: start;
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-sections-grid {
  --dash-section-grid-height: 52px;
  order: 1;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(auto-fill, 52px);
  gap: 0.55rem;
  justify-content: flex-start;
  justify-items: start;
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-section,
.dash-icon-dock .dashboard-section {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  cursor: pointer;
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-section.dash-section--icon-filter,
.dash-icon-dock .dashboard-section.dash-section--icon-filter {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent, #2a4d8f) 55%, transparent),
    0 6px 16px rgba(15, 23, 42, 0.12);
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-section:hover,
.dash-icon-dock .dashboard-section:hover {
  transform: translateY(-1px) scale(1.04);
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-section-visual,
.dash-icon-dock .dashboard-section-visual {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border-radius: 14px;
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-section-art,
.dash-icon-dock .dashboard-section-art {
  width: 26px;
  height: 26px;
}

#dashboardRoot[data-dash-card-size="icons"] .dashboard-section-shell,
.dash-icon-dock .dashboard-section-shell {
  display: none;
}

/* Icon mode: floating title picker + preview (same overlay rules as icon dock) */
.dash-icon-day-list {
  display: none;
}

#dashboardRoot[data-dash-card-size="icons"] .dash-icon-day-list:not(.hidden) {
  display: none;
}

.dash-icon-day-float {
  position: fixed;
  z-index: 100110; /* fallback — BizBarrelCockpitOverlayStack sets inline z-index when active */
  display: flex;
  flex-direction: column;
  min-height: 200px;
  max-height: min(46vh, 420px);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #2a4d8f) 18%, transparent);
  background: color-mix(in srgb, var(--surface, #fff) 94%, var(--accent, #2a4d8f) 6%);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  touch-action: none;
}

.dash-icon-day-float.hidden {
  display: none !important;
}

.dash-icon-day-float--dragging {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.dash-icon-day-list__picker.dash-icon-day-float {
  width: min(280px, calc(100vw - 24px));
}

.dash-icon-day-list__preview.dash-icon-day-float {
  width: min(420px, calc(100vw - 24px));
  background: var(--surface, #fff);
  border-color: color-mix(in srgb, var(--accent, #2a4d8f) 14%, transparent);
}

.dash-icon-day-list__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent, #2a4d8f) 10%, transparent);
  flex: 0 0 auto;
  cursor: grab;
  user-select: none;
}

.dash-icon-day-float--dragging .dash-icon-day-list__chrome {
  cursor: grabbing;
}

.dash-icon-day-list__handle {
  flex-shrink: 0;
  padding: 0.1rem 0.4rem;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #2a4d8f) 8%, transparent);
  color: color-mix(in srgb, var(--text, #334155) 70%, transparent);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: grab;
  touch-action: none;
}

.dash-icon-day-list__handle:hover,
.dash-icon-day-list__handle:focus-visible {
  background: color-mix(in srgb, var(--accent, #2a4d8f) 16%, transparent);
  color: var(--text, #1f2937);
}

.dash-icon-day-list__preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.dash-icon-day-list__preview-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.dash-icon-day-list__preview-body > .dash-icon-day-list__preview-empty {
  flex: 1 1 auto;
}

.dash-icon-day-list__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.68rem;
}

.dash-icon-day-list__date {
  font-weight: 650;
  color: var(--text, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-icon-day-list__count {
  color: #64748b;
  white-space: nowrap;
}

.dash-icon-day-list__scroll {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.dash-icon-day-list__row {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
  border-radius: 0;
  transition: background 0.12s ease;
  border-left: 3px solid transparent;
}

.dash-icon-day-list__row:hover,
.dash-icon-day-list__row:focus-visible,
.dash-icon-day-list__row.is-selected {
  background: color-mix(in srgb, var(--dash-day-kind-color, #3b82f6) 10%, transparent);
  border-left-color: var(--dash-day-kind-color, #3b82f6);
  outline: none;
}

.dash-icon-day-list__row.is-selected {
  background: color-mix(in srgb, var(--dash-day-kind-color, #3b82f6) 16%, transparent);
}

.dash-icon-day-list__cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dash-day-kind-color, #3b82f6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-icon-day-list__title {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--text, #1f2937);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-icon-day-list__empty,
.dash-icon-day-list__preview-empty {
  padding: 14px 12px;
  font-size: 0.84rem;
  color: #94a3b8;
}

.dash-icon-day-preview__head {
  flex: 0 0 auto;
  padding: 10px 12px 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--dash-day-kind-color, #3b82f6) 14%, transparent);
}

.dash-icon-day-preview__head-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.dash-icon-day-preview__cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dash-day-kind-color, #3b82f6);
}

.dash-icon-day-preview__jump {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted, #64748b);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  cursor: pointer;
  border-radius: 4px;
}

.dash-icon-day-preview__jump:hover,
.dash-icon-day-preview__jump:focus-visible {
  color: var(--accent, #2a4d8f);
  outline: none;
}

.dash-icon-day-preview__jump:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2a4d8f) 35%, transparent);
}

.dash-icon-day-preview__jump-dest {
  color: var(--dash-day-kind-color, var(--accent, #2a4d8f));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dash-icon-day-preview__jump:hover .dash-icon-day-preview__jump-dest,
.dash-icon-day-preview__jump:focus-visible .dash-icon-day-preview__jump-dest {
  color: var(--accent, #2a4d8f);
}

.dash-icon-day-preview__title {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--text, #1f2937);
}

.dash-icon-day-preview__when,
.dash-icon-day-preview__meta {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.dash-icon-day-preview__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
}

.dash-icon-day-preview__body {
  font-size: 0.88rem;
  line-height: 1.45;
}

.dash-icon-day-preview__empty-body {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
  font-style: italic;
}

.dash-icon-day-preview__comments {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--dash-day-kind-color, #3b82f6) 12%, transparent);
  padding-top: 10px;
}

.dash-icon-day-preview__comment-meta {
  font-size: 0.68rem;
  color: #64748b;
}

.dash-icon-day-preview__comment-body {
  font-size: 0.8rem;
  margin-top: 2px;
}

.dash-icon-day-preview__comment-more {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 6px;
}

.dash-icon-day-preview__foot {
  flex: 0 0 auto;
  padding: 8px 12px 10px;
  border-top: 1px solid color-mix(in srgb, var(--accent, #2a4d8f) 10%, transparent);
}


.dashboard-card--clickable {
  cursor: pointer;
}

.dashboard-card--clickable:hover {
  border-color: rgba(59, 130, 246, 0.32);
}

.dashboard-card--clickable:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.dashboard-micro {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.dashboard-micro li {
  margin: 4px 0;
}

.dashboard-micro a {
  color: #2563eb;
  text-decoration: none;
}

.dashboard-micro a:hover {
  text-decoration: underline;
}

.dashboard-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.dashboard-jump-last {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dashboard-jump-last:hover,
.dashboard-jump-last:focus-visible {
  color: #1d4ed8;
  text-decoration-thickness: 2px;
}

html[data-theme="dark"] .dashboard-jump-last,
html[data-theme="glass"] .dashboard-jump-last {
  color: #93c5fd;
}

html[data-theme="dark"] .dashboard-jump-last:hover,
html[data-theme="dark"] .dashboard-jump-last:focus-visible,
html[data-theme="glass"] .dashboard-jump-last:hover,
html[data-theme="glass"] .dashboard-jump-last:focus-visible {
  color: #bfdbfe;
}

.dashboard-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-card {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 13px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 4px 12px rgba(15, 23, 42, 0.07);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(37, 99, 235, 0.12);
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dashboard-card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
}

.dashboard-card-meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #64748b;
}

.dashboard-card-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}

.dashboard-root .pill-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  color: #1f2937;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(15, 23, 42, 0.1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-root .pill-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #e8eefb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 16px rgba(37, 99, 235, 0.18);
}

.dashboard-root .pill-btn.primary {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(191, 219, 254, 0.6),
    0 10px 18px rgba(37, 99, 235, 0.28);
}

html[data-theme="dark"] .dashboard-root .pill-btn,
html[data-theme="soft"] .dashboard-root .pill-btn {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(180deg, #2f3441 0%, #252a36 100%);
  color: #e5e7eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-root .pill-btn:hover:not(:disabled),
html[data-theme="soft"] .dashboard-root .pill-btn:hover:not(:disabled) {
  border-color: rgba(138, 180, 248, 0.45);
  background: linear-gradient(180deg, #394050 0%, #2a3040 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 18px rgba(37, 99, 235, 0.28);
}

html[data-theme="dark"] .dashboard-root .pill-btn.primary,
html[data-theme="soft"] .dashboard-root .pill-btn.primary {
  border-color: #60a5fa;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #f8fafc;
}

.dashboard-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

html[data-theme="dark"] .dashboard-root,
html[data-theme="soft"] .dashboard-root {
  background:
    radial-gradient(1000px 420px at 10% -15%, rgba(59, 130, 246, 0.26), transparent 60%),
    radial-gradient(820px 340px at 95% 0%, rgba(14, 165, 233, 0.18), transparent 65%),
    linear-gradient(180deg, #12141a 0%, #171b24 100%);
}

html[data-theme="dark"] .dashboard-root.dashboard-root--has-bg,
html[data-theme="soft"] .dashboard-root.dashboard-root--has-bg {
  background: transparent;
}

html[data-theme="dark"] .dashboard-root--has-bg .dashboard-bg-scrim,
html[data-theme="soft"] .dashboard-root--has-bg .dashboard-bg-scrim {
  background: rgba(18, 20, 26, 0.48);
}

html[data-theme="dark"] .dashboard-root::before,
html[data-theme="soft"] .dashboard-root::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(transparent 0 97%, rgba(255, 255, 255, 0.08) 100%);
}

html[data-theme="dark"] .dashboard-top,
html[data-theme="soft"] .dashboard-top {
  background: linear-gradient(180deg, rgba(28, 31, 40, 0.94), rgba(24, 27, 35, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .dashboard-top::after,
html[data-theme="soft"] .dashboard-top::after {
  background: linear-gradient(90deg, rgba(138, 180, 248, 0), rgba(138, 180, 248, 0.38), rgba(138, 180, 248, 0));
}

html[data-theme="dark"] .dashboard-date-input,
html[data-theme="soft"] .dashboard-date-input,
html[data-theme="dark"] .team-channel-select,
html[data-theme="soft"] .team-channel-select {
  background: linear-gradient(180deg, #2b2f3a, #242833);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html[data-theme="dark"] .team-channel-select option,
html[data-theme="soft"] .team-channel-select option {
  background: #252830;
  color: var(--text);
}

html[data-theme="dark"] .dashboard-channel-label,
html[data-theme="dark"] .calendar-channel-label,
html[data-theme="soft"] .dashboard-channel-label,
html[data-theme="soft"] .calendar-channel-label {
  color: var(--text-muted);
}

html[data-theme="dark"] .dashboard-root--team-channel .dashboard-heading::after,
html[data-theme="soft"] .dashboard-root--team-channel .dashboard-heading::after {
  color: var(--accent);
}

html[data-theme="dark"] .dashboard-section,
html[data-theme="soft"] .dashboard-section {
  background: linear-gradient(145deg, rgba(34, 38, 48, 0.98), rgba(24, 27, 34, 0.96));
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 38px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .dashboard-root--has-bg .dashboard-top,
html[data-theme="soft"] .dashboard-root--has-bg .dashboard-top {
  background: color-mix(in srgb, #1c1f28 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="dark"] .dashboard-root--has-bg .dashboard-section,
html[data-theme="soft"] .dashboard-root--has-bg .dashboard-section {
  background: color-mix(in srgb, #222630 86%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Subtle accent “neon” when the section has one or more rows (overridden in a11y presets) */
html[data-theme="dark"] .dashboard-section.dashboard-section--has-items,
html[data-theme="soft"] .dashboard-section.dashboard-section--has-items {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 38px rgba(0, 0, 0, 0.48),
    0 0 0 1px color-mix(in srgb, var(--dash-card-accent) 30%, transparent),
    0 0 40px -6px color-mix(in srgb, var(--dash-card-accent) 34%, transparent);
}

html[data-theme="dark"] .dashboard-section.dashboard-section--has-items:hover,
html[data-theme="soft"] .dashboard-section.dashboard-section--has-items:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--dash-card-accent) 42%, rgba(148, 163, 184, 0.45));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 44px rgba(0, 0, 0, 0.52),
    0 0 0 1px color-mix(in srgb, var(--dash-card-accent) 36%, transparent),
    0 0 48px -4px color-mix(in srgb, var(--dash-card-accent) 40%, transparent);
}

html[data-theme="dark"] .dashboard-section-shell::before,
html[data-theme="soft"] .dashboard-section-shell::before {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--dash-card-accent) 18%, transparent),
    transparent 52%
  );
  opacity: 0.65;
}

html[data-theme="dark"] .dashboard-summary-chip,
html[data-theme="soft"] .dashboard-summary-chip {
  background:
    linear-gradient(180deg, rgba(43, 48, 60, 0.96), rgba(34, 38, 49, 0.96)),
    linear-gradient(120deg, rgba(138, 180, 248, 0.14), rgba(138, 180, 248, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-summary-chip:hover,
html[data-theme="soft"] .dashboard-summary-chip:hover {
  border-color: rgba(138, 180, 248, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(37, 99, 235, 0.32);
}

html[data-theme="dark"] .dashboard-open-chip,
html[data-theme="soft"] .dashboard-open-chip {
  background:
    linear-gradient(180deg, rgba(43, 48, 60, 0.96), rgba(34, 38, 49, 0.96)),
    linear-gradient(120deg, rgba(138, 180, 248, 0.14), rgba(138, 180, 248, 0));
  border-color: rgba(148, 163, 184, 0.3);
  color: #e5e7eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-open-chip:hover,
html[data-theme="soft"] .dashboard-open-chip:hover {
  border-color: rgba(138, 180, 248, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(37, 99, 235, 0.32);
}

html[data-theme="dark"] .dashboard-open-chip__label,
html[data-theme="soft"] .dashboard-open-chip__label {
  color: #94a3b8;
}

html[data-theme="dark"] .dashboard-recent-chip__title,
html[data-theme="soft"] .dashboard-recent-chip__title {
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-expand-panel,
html[data-theme="soft"] .dashboard-expand-panel {
  background: linear-gradient(180deg, rgba(30, 33, 42, 0.98), rgba(24, 27, 34, 0.96));
  border-top-color: rgba(148, 163, 184, 0.22);
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] .dashboard-expand-panel__title,
html[data-theme="soft"] .dashboard-expand-panel__title {
  color: #e2e8f0;
}

html[data-theme="dark"] .dashboard-expand-tile,
html[data-theme="soft"] .dashboard-expand-tile {
  background: linear-gradient(180deg, rgba(40, 44, 54, 0.98), rgba(32, 36, 46, 0.96));
  border-color: rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-expand-tile__sub,
html[data-theme="soft"] .dashboard-expand-tile__sub {
  color: #94a3b8;
}

html[data-theme="dark"] .dashboard-expand-nav,
html[data-theme="soft"] .dashboard-expand-nav {
  background: linear-gradient(180deg, #3a4252, #2a3140);
  border-color: rgba(148, 163, 184, 0.35);
  color: #93c5fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-expand-nav:hover:not(:disabled),
html[data-theme="soft"] .dashboard-expand-nav:hover:not(:disabled) {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.45);
}

html[data-theme="dark"] .dashboard-expand-nav:disabled,
html[data-theme="soft"] .dashboard-expand-nav:disabled {
  color: #64748b;
}

html[data-theme="dark"] .dashboard-expand-counter,
html[data-theme="soft"] .dashboard-expand-counter {
  color: #94a3b8;
}

html[data-theme="dark"] .dashboard-expand-scroller:focus-visible,
html[data-theme="soft"] .dashboard-expand-scroller:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(147, 197, 253, 0.4);
}

html[data-theme="dark"] .dashboard-body-hint,
html[data-theme="soft"] .dashboard-body-hint {
  color: #94a3b8;
}

html[data-theme="dark"] .dashboard-body-hint strong,
html[data-theme="soft"] .dashboard-body-hint strong {
  color: #cbd5e1;
}

html[data-theme="dark"] .dashboard-card,
html[data-theme="soft"] .dashboard-card {
  background: linear-gradient(180deg, rgba(43, 48, 60, 0.95), rgba(33, 37, 47, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .dashboard-card:hover,
html[data-theme="soft"] .dashboard-card:hover {
  border-color: rgba(138, 180, 248, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(37, 99, 235, 0.25);
}

html[data-theme="light"] .dashboard-root {
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(900px 360px at 96% 0%, rgba(14, 165, 233, 0.16), transparent 68%),
    linear-gradient(180deg, #f7faff 0%, #e9f0f8 100%);
}

html[data-theme="light"] .dashboard-root.dashboard-root--has-bg {
  background: transparent;
}

html[data-theme="light"] .dashboard-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.9));
  border-bottom-color: rgba(59, 130, 246, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 26px rgba(30, 64, 175, 0.12);
}

html[data-theme="light"] .dashboard-heading {
  color: #0b2245;
}

html[data-theme="light"] .dashboard-tagline,
html[data-theme="light"] .dashboard-date-long {
  color: #385074;
}

html[data-theme="light"] .dashboard-jump a {
  color: #1e40af;
}

html[data-theme="light"] .dashboard-section {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.995), rgba(241, 246, 255, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 34px rgba(30, 64, 175, 0.11);
}

html[data-theme="light"] .dashboard-section:hover {
  border-color: color-mix(in srgb, var(--dash-card-accent) 45%, rgba(96, 165, 250, 0.4));
}

html[data-theme="light"] .dashboard-section.dashboard-section--has-items {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 34px rgba(30, 64, 175, 0.11),
    0 0 0 1px color-mix(in srgb, var(--dash-card-accent) 18%, transparent),
    0 0 26px -10px color-mix(in srgb, var(--dash-card-accent) 22%, transparent);
}

html[data-theme="light"] .dashboard-section.dashboard-section--has-items:hover {
  border-color: color-mix(in srgb, var(--dash-card-accent) 45%, rgba(96, 165, 250, 0.4));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 20px 36px rgba(30, 64, 175, 0.14),
    0 0 0 1px color-mix(in srgb, var(--dash-card-accent) 24%, transparent),
    0 0 32px -8px color-mix(in srgb, var(--dash-card-accent) 26%, transparent);
}

html[data-theme="light"] .dashboard-root--has-bg .dashboard-top {
  background: color-mix(in srgb, #ffffff 72%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .dashboard-root--has-bg .dashboard-section {
  background: color-mix(in srgb, #ffffff 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html[data-theme="light"] .dashboard-summary-chip {
  border-color: rgba(96, 165, 250, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.98)),
    linear-gradient(120deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 20px rgba(30, 64, 175, 0.14);
}

html[data-theme="light"] .dashboard-summary-chip:hover {
  border-color: rgba(59, 130, 246, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 24px rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .dashboard-open-chip {
  border-color: rgba(96, 165, 250, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.98)),
    linear-gradient(120deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 20px rgba(30, 64, 175, 0.14);
}

html[data-theme="light"] .dashboard-open-chip:hover {
  border-color: rgba(59, 130, 246, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 24px rgba(37, 99, 235, 0.2);
}

html[data-theme="light"] .dashboard-card {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 18px rgba(30, 64, 175, 0.11);
}

html[data-theme="light"] .dashboard-card:hover {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 14px 24px rgba(37, 99, 235, 0.18);
}

html[data-theme="light"] .dashboard-root .pill-btn {
  border-color: rgba(96, 165, 250, 0.46);
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
  color: #0f2e5f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 6px 14px rgba(37, 99, 235, 0.15);
}

html[data-theme="light"] .dashboard-root .pill-btn:hover:not(:disabled) {
  border-color: rgba(59, 130, 246, 0.62);
  background: linear-gradient(180deg, #ffffff 0%, #dfeaff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 18px rgba(37, 99, 235, 0.22);
}

/* Combined timeline / section modal */
#dashTimelineModal.modal {
  overflow: hidden;
  align-items: flex-start;
}

#dashTimelineModal > .modal-content.dash-timeline-card {
  overflow: hidden;
  max-height: calc(100vh - var(--bb-chrome-top, 0px) - 32px);
  height: calc(100vh - var(--bb-chrome-top, 0px) - 32px);
  width: min(720px, calc(100vw - 24px));
  margin: 0 auto;
}

.dash-timeline-card {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - var(--bb-chrome-top, 0px) - 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.dash-timeline-card__header {
  flex: 0 0 auto;
  margin: 0;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border, rgba(128, 128, 128, 0.25));
  border-radius: 0;
}

.dash-timeline-card__header .dialog-header-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.dash-timeline-card__header .dialog-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.dash-timeline-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.dash-timeline-card__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
}

.dash-timeline-date-nav {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--border, rgba(128, 128, 128, 0.2));
  background: color-mix(in srgb, var(--bg, #fff) 97%, var(--accent, #4f46e5) 3%);
}

.dash-timeline-date-long {
  font-size: 0.92rem;
  font-weight: 650;
  min-width: min(100%, 12rem);
  text-align: center;
}

.dash-timeline-date-input {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border, rgba(128, 128, 128, 0.35));
  border-radius: 8px;
  background: var(--bg, #fff);
  color: inherit;
}

.dash-timeline-date-step {
  min-width: 2.25rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.dash-timeline-date-today {
  font-size: 0.82rem;
}

.dash-timeline-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--border, rgba(128, 128, 128, 0.2));
  background: color-mix(in srgb, var(--bg, #fff) 94%, var(--accent, #4f46e5) 6%);
}

.dash-timeline-toolbar .dash-timeline-count {
  margin-left: auto;
}

.dash-timeline-create-btn.hidden {
  display: none !important;
}

.dash-timeline-count {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

.dash-timeline-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.65rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.dash-section-maximized #dashTimelineModal.modal {
  padding: var(--bb-chrome-top, 0px) 0 0;
  align-items: stretch;
  overflow: hidden;
}

body.dash-section-maximized #dashTimelineModal > .modal-content.dash-timeline-card {
  width: 100%;
  max-width: none;
  height: calc(100vh - var(--bb-chrome-top, 0px));
  max-height: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

/* Focus one expanded leaf preview; hide sibling nodes */
body.dash-section-maximized .dash-timeline-list {
  flex: 1 1 auto;
  min-height: 0;
}

body.dash-section-maximized .dash-timeline-item:not(.is-preview-maximized) {
  display: none;
}

body.dash-section-maximized .dash-timeline-item.is-preview-maximized {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dash-section-maximized .dash-timeline-item.is-preview-maximized .dash-timeline-item__detail {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dash-section-maximized .dash-timeline-item.is-preview-maximized .dash-timeline-item__preview {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.dash-timeline-empty {
  margin: 1.5rem 0.5rem;
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
}

.dash-timeline-item {
  border: 1px solid var(--border, rgba(100, 116, 139, 0.35));
  border-radius: 12px;
  background: var(--bg, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dash-timeline-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.55rem 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dash-timeline-item__head:hover {
  background: color-mix(in srgb, var(--bg, #fff) 90%, var(--dash-tl-accent, #4f46e5) 10%);
}

.dash-timeline-item__head:focus-visible {
  outline: 2px solid var(--dash-tl-accent, var(--accent, #4f46e5));
  outline-offset: -2px;
}

.dash-timeline-item__type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--dash-tl-accent, #4f46e5) 35%, transparent);
  color: var(--dash-tl-accent, #4f46e5);
  background: color-mix(in srgb, var(--dash-tl-accent, #4f46e5) 10%, transparent);
  white-space: nowrap;
}

.dash-timeline-item__title {
  font-size: 0.92rem;
  font-weight: 650;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-timeline-item__when {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.dash-timeline-item__chevron {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  transition: transform 0.18s ease;
}

.dash-timeline-item.is-expanded .dash-timeline-item__chevron {
  transform: rotate(90deg);
}

.dash-timeline-item__preview {
  max-height: min(44vh, 380px);
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, rgba(128, 128, 128, 0.28));
  border-radius: 10px;
  background: var(--bg, #fff);
  -webkit-overflow-scrolling: touch;
}

.dash-timeline-item__detail {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--border, rgba(128, 128, 128, 0.2));
  background: color-mix(in srgb, var(--bg, #fff) 96%, var(--dash-tl-accent, #4f46e5) 4%);
}

.dash-timeline-item__detail-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0 0.5rem;
  margin-top: 0.15rem;
  border-bottom: 1px solid var(--border, rgba(128, 128, 128, 0.22));
}

.dash-timeline-item__detail-bar .dash-timeline-item__meta {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.dash-timeline-item__detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.dash-timeline-item__maximize {
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.dash-timeline-item__open {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.dash-timeline-item__detail[hidden] {
  display: none;
}

.dash-timeline-item__meta {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

.dash-timeline-item__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.dash-timeline-item__body p {
  margin: 0.35em 0;
}

.dash-timeline-item__body ul,
.dash-timeline-item__body ol {
  margin: 0.35em 0;
  padding-left: 1.35rem;
}

.dash-timeline-item__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5em 0;
  border-radius: 4px;
}

.dash-timeline-item__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0;
  font-size: 0.84rem;
}

.dash-timeline-item__body th,
.dash-timeline-item__body td {
  border: 1px solid var(--border, rgba(128, 128, 128, 0.35));
  padding: 0.35rem 0.45rem;
}

.dash-timeline-item__comment-body {
  line-height: 1.45;
  word-break: break-word;
}

.dash-timeline-item__comment-body p {
  margin: 0.2em 0;
}

.dash-timeline-item__empty-body {
  margin: 0;
}

.dash-timeline-item__comments {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.dash-timeline-item__comments li {
  margin: 0.35rem 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg, #fff) 88%, var(--border, #cbd5e1) 12%);
}

.dash-timeline-item__comment-meta {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.15rem;
}

@media (max-width: 560px) {
  .dash-timeline-item__head {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
  }

  .dash-timeline-item__type {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .dash-timeline-item__title {
    grid-column: 1;
    grid-row: 2;
  }

  .dash-timeline-item__when {
    grid-column: 1;
    grid-row: 3;
  }

  .dash-timeline-item__chevron {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
  }
}

/* ----- Team channel banner (tasks, journal, calendar) ----- */
.team-channel-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-muted, var(--surface));
  color: var(--text);
}

.team-channel-banner--compact {
  margin: 0 0 10px;
  padding: 10px 12px;
}

.team-channel-banner--team {
  border-color: color-mix(in srgb, var(--accent, #2a4d8f) 42%, var(--border));
  background: color-mix(in srgb, var(--accent, #2a4d8f) 10%, var(--surface));
}

.team-channel-banner--personal {
  border-color: var(--border);
}

.team-channel-banner__icon {
  font-size: 1.1rem;
  line-height: 1.3;
  opacity: 0.85;
}

.team-channel-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
}

.team-channel-banner__text strong {
  font-size: 0.95rem;
}

.team-channel-banner__text span {
  color: var(--text-muted);
  line-height: 1.35;
}

html[data-theme="dark"] .team-channel-banner--team,
html[data-theme="soft"] .team-channel-banner--team,
html[data-theme="glass"] .team-channel-banner--team {
  background: color-mix(in srgb, var(--accent, #8ab4f8) 14%, #252830);
  border-color: color-mix(in srgb, var(--accent, #8ab4f8) 38%, var(--border));
}

/* ----- Team dashboard grid ----- */
.dash-team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
  gap: 16px;
  padding: 4px 0 24px;
}

.dash-team-grid__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.dash-team-grid__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.dash-team-panel {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.dash-team-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted, var(--surface));
}

.dash-team-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.dash-team-panel__body {
  padding: 12px 14px 14px;
  max-height: min(52vh, 520px);
  overflow: auto;
}

.dash-team-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-team-filter__btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.dash-team-filter__btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.dash-team-activity-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--surface-muted, var(--surface));
}

.dash-team-activity-card__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dash-team-activity-card__kind {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.dash-team-activity-card__when {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-team-activity-card__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.dash-team-activity-card__excerpt,
.dash-team-activity-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-team-task-section {
  margin-bottom: 14px;
}

.dash-team-task-section__title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.dash-team-task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.dash-team-task__title.is-done {
  text-decoration: line-through;
  opacity: 0.65;
}

.dash-team-task__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-team-task__assignee {
  font-weight: 700;
}

.dash-team-task__assignee--pending {
  color: var(--accent);
}

.dash-team-task__assignee--declined {
  color: #b91c1c;
}

.dash-team-task__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dash-team-task__actions .pill-btn {
  font-size: 0.75rem;
  padding: 4px 8px;
  min-height: 30px;
}

.dash-team-note-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.dash-team-note-card__kind {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
}

.dash-team-note-card__title {
  margin: 4px 0 2px;
  font-size: 0.9rem;
}

.dash-team-note-card__excerpt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-team-cal__label {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.dash-team-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dash-team-cal__day {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  min-height: 32px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.dash-team-cal__day.has-activity {
  border-color: var(--accent);
  font-weight: 800;
}

.dash-team-cal__day.is-selected {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}

.dash-team-cal__pad {
  min-height: 32px;
}

#dashboardRoot.dashboard-root--team-channel .dashboard-sections-grid {
  display: none;
}

@media (max-width: 960px) {
  .dash-team-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard wallpaper picker */
/* Above cockpit overlay floats (BizBarrelCockpitOverlayStack max 100320); below inspect UI (100400+). */
#dashWallpaperModal.modal {
  z-index: 100330;
}

.modal-content.dialog-card.dash-wallpaper-dialog {
  width: min(720px, calc(100vw - 36px));
}

.dash-wallpaper-dialog__body {
  padding: 12px;
}

.dash-wallpaper-lead {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dash-wallpaper-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-wallpaper-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.dash-wallpaper-choice-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.dash-wallpaper-choice-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .dash-wallpaper-choice-btn {
    transition: none;
  }

  .dash-wallpaper-choice-btn:hover {
    transform: none;
  }
}

.dash-wallpaper-choice-btn__icon {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
}

.dash-wallpaper-choice-btn__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.dash-wallpaper-choice-btn__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.dash-wallpaper-album-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dash-wallpaper-album-crumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-wallpaper-album-search {
  margin-bottom: 8px;
}

.dash-wallpaper-album-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
}

.dash-wallpaper-album-layout {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 10px;
  min-height: 260px;
}

.dash-wallpaper-album-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(340px, 46vh);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
  -webkit-overflow-scrolling: touch;
}

.dash-wallpaper-album-nav {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  color: var(--text);
}

.dash-wallpaper-album-nav--sub {
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dash-wallpaper-album-nav:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.dash-wallpaper-album-nav.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  font-weight: 700;
  color: var(--text);
}

.dash-wallpaper-album-nav:focus-visible,
.dash-wallpaper-subalbum-chip:focus-visible,
.dash-wallpaper-photo-btn:focus-visible,
.dash-wallpaper-album-search__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dash-wallpaper-album-nav.is-active:focus-visible,
.dash-wallpaper-subalbum-chip.is-active:focus-visible {
  outline-offset: 1px;
}

.dash-wallpaper-album-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-wallpaper-subalbum-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-wallpaper-subalbum-chip.is-active {
  border-color: var(--accent);
  font-weight: 700;
}

.dash-wallpaper-photo-grid {
  max-height: min(340px, 46vh);
}

#dashWallpaperModal .photo-album-story-picker__thumb {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
}

#dashWallpaperModal .photo-album-story-picker__thumb:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

#dashWallpaperModal .photo-album-story-picker__thumb-img {
  background: var(--surface-muted);
}

#dashWallpaperModal .photo-album-story-picker__thumb-label {
  color: var(--text-muted);
  opacity: 1;
}

#dashWallpaperModal .photo-album-story-picker__empty {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .dash-wallpaper-choice-grid {
    grid-template-columns: 1fr;
  }

  .dash-wallpaper-album-layout {
    grid-template-columns: 1fr;
  }

  .dash-wallpaper-album-sidebar {
    max-height: 140px;
  }
}

/* ----- Team task board (Kanban-lite) ----- */
.team-board-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.team-board-toolbar__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent, #264796);
}

.team-board-toolbar__lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  max-width: 36rem;
}

.team-board-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team-board-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
}

#groupManagerRoot .teams-panel[data-teams-panel="boards"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.team-board-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  max-height: min(72vh, 720px);
  border-radius: 14px;
  border: 1px solid var(--border, rgba(128, 128, 128, 0.28));
  background: color-mix(in srgb, var(--surface-muted, #f3f4f6) 55%, var(--surface, #fff));
  overflow: hidden;
}

.team-board-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, rgba(128, 128, 128, 0.22));
  background: var(--surface, #fff);
  flex-shrink: 0;
}

.team-board-column__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #64748b);
}

.team-board-column__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent, #264796);
  background: color-mix(in srgb, var(--accent, #264796) 12%, var(--surface, #fff));
  border: 1px solid color-mix(in srgb, var(--accent, #264796) 28%, var(--border));
}

.team-board-column__drop {
  flex: 1 1 auto;
  min-height: 120px;
  padding: 10px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-board-column__drop--over {
  background: color-mix(in srgb, var(--accent, #264796) 8%, transparent);
  outline: 2px dashed color-mix(in srgb, var(--accent, #264796) 35%, var(--border));
  outline-offset: -4px;
  border-radius: 0 0 12px 12px;
}

.team-board-card {
  border-radius: 12px;
  border: 1px solid var(--border, rgba(128, 128, 128, 0.28));
  background: var(--surface, #fff);
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  cursor: grab;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.team-board-card:hover {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.team-board-card--dragging {
  opacity: 0.72;
  cursor: grabbing;
  transform: rotate(1deg);
}

.team-board-card--overdue {
  border-color: color-mix(in srgb, #dc2626 40%, var(--border));
}

.team-board-card__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.team-board-card__excerpt {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #64748b);
}

.team-board-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 8px;
}

.team-board-card__assignee--pending {
  color: var(--accent, #264796);
  font-weight: 700;
}

.team-board-card__actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .team-board-columns {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .team-board-column {
    max-height: none;
  }
}
