/* Featured niche reference: real cover, overlapping avatar and centered identity.
   Deliberately stronger accent on this card only; shared shell stays untouched. */
.home-workspace .niche-spotlight-featured {
  --spotlight-rim: color-mix(in srgb, var(--sia-teal) 65%, var(--sia-line));
  background: var(--sia-sidebar-bg) !important;
  border: 1px solid var(--spotlight-rim) !important;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--sia-teal) 10%, transparent), 0 0 24px color-mix(in srgb, var(--sia-teal) 9%, transparent) !important;
  container: featured-niche / inline-size;
  padding: 20px;
}
.home-workspace .niche-spotlight-featured .niche-spotlight-head { border: 0; flex-wrap: nowrap; gap: 16px; min-height: 48px; padding-bottom: 0; }
.home-workspace .niche-spotlight-featured .niche-spotlight-icon { border-color: var(--spotlight-rim); flex: 0 0 48px; height: 48px; width: 48px; }
.home-workspace .niche-spotlight-featured .niche-spotlight-head > .niche-spotlight-label { border-left: 1px solid var(--spotlight-rim); font-size: 14px; letter-spacing: .1em; line-height: 1.4; padding-left: 16px; }
.home-workspace .niche-spotlight-featured .niche-spotlight-today { font-size: 14px; padding: 8px 16px; }
.niche-spotlight-visual { margin-top: 18px; position: relative; }
.niche-spotlight-cover { aspect-ratio: 16 / 8.6; background: var(--home-control-fill); border: 1px solid var(--home-control-edge); border-radius: 18px; overflow: hidden; position: relative; }
.niche-spotlight-cover img { display: block; height: 100%; object-fit: cover; position: absolute; inset: 0; width: 100%; }
.niche-spotlight-cover img[hidden] { display: none; }
.niche-spotlight-cover-fallback { align-items: center; color: var(--sia-sidebar-accent); display: flex; height: 100%; justify-content: center; opacity: .35; }
.niche-spotlight-cover-fallback svg { fill: none; height: 72px; stroke: currentColor; stroke-width: 1.2; width: 72px; }
.niche-spotlight-cover.has-cover .niche-spotlight-cover-fallback { visibility: hidden; }
.home-workspace .niche-spotlight-avatar {
  background: var(--sia-surface);
  border: 2px solid var(--sia-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--sia-bg), 0 0 24px color-mix(in srgb, var(--sia-teal) 28%, transparent);
  height: 100px;
  margin: -48px auto 0;
  overflow: hidden;
  position: relative;
  width: 100px;
}
.home-workspace .niche-spotlight-avatar img { display: block; height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.home-workspace .niche-spotlight-avatar .niche-spotlight-avatar-fallback { align-items: center; background: var(--sia-teal-soft); color: var(--sia-sidebar-accent); display: flex; font-size: 28px; font-weight: 800; height: 100%; justify-content: center; width: 100%; }
.niche-spotlight-identity { margin-top: 12px; text-align: center; }
.home-workspace .niche-spotlight-featured .niche-spotlight-channel { color: var(--sia-heading); display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; position: static; white-space: normal; }
.home-workspace .niche-spotlight-featured .niche-spotlight-channel-meta { color: var(--sia-muted); display: block; font-size: 15px; line-height: 1.5; margin-top: 4px; }
.home-workspace .niche-spotlight-featured .niche-spotlight-title { color: var(--sia-heading); font-size: 24px; font-weight: 800; letter-spacing: -.015em; line-height: 1.3; margin: 10px 0 0; overflow-wrap: anywhere; }
.home-workspace .niche-spotlight-featured .niche-spotlight-metrics { gap: 10px; margin-top: 20px; padding-top: 0; }
.home-workspace .niche-spotlight-featured .niche-spotlight-metric { align-content: start; background: var(--sia-sidebar-bg) !important; border-color: var(--home-control-edge) !important; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); padding: 14px 12px; text-align: left; }
.home-workspace .niche-spotlight-featured .niche-spotlight-metric > svg { border-color: var(--spotlight-rim); grid-column: 1; grid-row: 1; height: 38px; padding: 8px; width: 38px; }
.home-workspace .niche-spotlight-featured .niche-spotlight-metric > .niche-metric-glyph {
  --metric-accent: #087c7e;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--metric-accent) 12%, transparent), transparent 80%), var(--sia-surface-soft);
  border: 1px solid color-mix(in srgb, var(--metric-accent) 36%, var(--sia-line));
  border-radius: 13px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--metric-accent) 12%, transparent), 0 0 12px color-mix(in srgb, var(--metric-accent) 6%, transparent);
  color: var(--metric-accent);
  fill: currentColor;
  height: 44px;
  padding: 9px;
  stroke: none;
  width: 44px;
}
.home-workspace .niche-spotlight-featured .niche-spotlight-metric:nth-child(2) > .niche-metric-glyph { --metric-accent: #0878b0; }
html[data-theme="dark"] .home-workspace .niche-spotlight-featured .niche-metric-glyph { --metric-accent: #31ded8; }
html[data-theme="dark"] .home-workspace .niche-spotlight-featured .niche-spotlight-metric:nth-child(2) > .niche-metric-glyph { --metric-accent: #38bdf8; }
.niche-metric-glyph .niche-metric-eye-cutout { fill: var(--sia-surface-soft); }
.home-workspace .niche-spotlight-featured .niche-spotlight-metric strong { color: var(--sia-heading) !important; font-size: 18px; font-weight: 800; grid-column: 1; grid-row: 2; line-height: 1.3; overflow-wrap: normal; }
.home-workspace .niche-spotlight-featured .niche-spotlight-metric > span { font-size: 12px; font-weight: 650; grid-column: 1; grid-row: 3; line-height: 1.4; margin: 0; }
.home-workspace .niche-spotlight-featured .niche-spotlight-metric:last-child strong { font-size: 16px; }
.home-workspace .niche-spotlight-featured .niche-spotlight-footer { border-top: 0; margin-top: 18px; padding-top: 0; }
.home-workspace .niche-spotlight-featured .niche-spotlight-actions { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.home-workspace .niche-spotlight-featured .niche-spotlight-action { border-radius: 16px; font-size: 14px; gap: 8px; min-height: 52px; padding: 12px; white-space: normal; }
.home-workspace .niche-spotlight-featured .niche-spotlight-action svg { fill: none; flex: 0 0 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; width: 22px; }
.home-workspace .niche-spotlight-featured .niche-spotlight-action.secondary { color: var(--sia-sidebar-accent); border-color: var(--home-control-edge); }
.home-workspace .niche-spotlight-featured [data-add-spotlight-channel] { background: linear-gradient(110deg, #0b7178, #0c666f) !important; border-color: var(--spotlight-rim) !important; color: #fff !important; }
html[data-theme="dark"] .home-workspace .niche-spotlight-featured [data-add-spotlight-channel] { background: linear-gradient(110deg, var(--sia-teal), var(--sia-teal-dark)) !important; color: #09262e !important; }
.home-workspace .niche-spotlight-featured [data-add-spotlight-channel]::before { content: "+"; font-size: 24px; font-weight: 500; line-height: 1; }
.home-workspace .niche-spotlight-featured [data-add-spotlight-channel]::after { margin-left: 2px; }
.home-workspace .niche-spotlight-featured [data-add-spotlight-channel]:disabled { opacity: .65; }
.home-workspace .niche-spotlight-featured [data-add-spotlight-channel]:disabled::before { display: none; }
.home-workspace .niche-spotlight-featured [data-spotlight-feedback]:empty { display: none; }
@container featured-niche (max-width: 400px) {
  .home-workspace .niche-spotlight-featured .niche-spotlight-head { gap: 10px; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-head > .niche-spotlight-label { border-left: 0; font-size: 12px; letter-spacing: .06em; padding-left: 0; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-icon { flex-basis: 40px; height: 40px; width: 40px; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-today { font-size: 12px; padding: 7px 10px; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-channel { font-size: 28px; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-title { font-size: 22px; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-workspace .niche-spotlight-featured .niche-spotlight-metric:last-child { grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 12px; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-metric:last-child > svg { grid-row: 1 / 3; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-metric:last-child strong { font-size: 18px; grid-column: 2; grid-row: 1; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-metric:last-child > span { grid-column: 2; grid-row: 2; }
  .home-workspace .niche-spotlight-featured .niche-spotlight-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .home-workspace .niche-spotlight-featured { border-radius: 22px; padding: 16px; }
  .home-workspace .niche-spotlight-avatar { height: 88px; margin-top: -42px; width: 88px; }
}
