@import url("shared.css?v=feed-ko-20");

/* ── Feed page layout (phone column) ── */

.briefing-header {
  margin-bottom: var(--space-4);
  padding: var(--space-4) var(--space-4) 0;
}

.briefing-header__eyebrow {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.briefing-header__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  margin: 0 0 var(--space-3);
  color: var(--color-beige);
}

.briefing-header__lead,
.briefing-header__honorific {
  color: var(--color-beige);
  font-weight: var(--weight-medium);
}

.briefing-header__name {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.briefing-header__subject {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-2) 0 0;
}

.briefing-header__context {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

.starter-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.starter-line__label,
.starter-line__name,
.starter-line__team,
.starter-line__missing {
  font-size: var(--text-sm);
  line-height: 1.35;
}

.starter-line__label {
  font-family: var(--font-data);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.starter-line__name {
  font-family: var(--font-prose);
  font-weight: var(--weight-semibold);
  color: var(--color-beige);
}

.starter-line__team {
  font-family: var(--font-data);
  color: var(--color-link);
}

.starter-line__missing {
  color: var(--color-text-secondary);
}

.briefing-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.briefing-header__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.briefing-header__meta-divider {
  width: 1px;
  height: 0.875rem;
  background: var(--color-border);
}

.briefing-header__progress {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.briefing-header__progress-bar {
  flex: 1;
  max-width: 12rem;
  height: 3px;
  background: var(--color-border-subtle);
  border-radius: 2px;
  overflow: hidden;
}

.briefing-header__progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.briefing-header__progress-text {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  transition: border-color var(--transition-base), opacity var(--transition-base);
}

.feed-card:hover {
  border-color: var(--color-border);
}

.feed-card--reviewed {
  opacity: 0.85;
}

.feed-card--reviewed:not(.feed-card--expanded) .feed-card__headline {
  color: var(--color-text-secondary);
}

.feed-card--dismissed {
  display: none;
}

.feed-card--alert {
  border-left: 3px solid var(--color-critical);
}

.feed-card--priority-critical:not(.feed-card--expanded) {
  background: linear-gradient(90deg, var(--color-critical-bg) 0%, var(--color-surface) 10%);
}

/* ── Collapsed preview (default) ── */

.feed-card:not(.feed-card--expanded) {
  display: flex;
  flex-direction: column;
  height: 22rem;
}

.feed-card--highlight:not(.feed-card--expanded) {
  height: auto;
}

/* A collapsed highlight is a title plus its complete video poster. Evidence
   tables remain available after expansion, but must not lengthen the preview. */
.feed-card.feed-card--highlight:not(.feed-card--expanded) .feed-card__panel:not(:first-child),
.feed-card.feed-card--highlight:not(.feed-card--expanded) .feed-card__panel-dots {
  display: none;
}

.feed-card__teaser-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  padding: var(--space-3) var(--space-4);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.feed-card__teaser-header:hover {
  background: var(--color-surface-hover);
}

.feed-card:not(.feed-card--expanded) .feed-card__panel:first-child {
  cursor: pointer;
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .feed-card__panels {
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: unset;
  border-top: 1px solid var(--color-border-subtle);
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .feed-card__panel {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .feed-card__media-stage {
  aspect-ratio: unset;
  max-height: none;
  overflow: visible;
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .visual-block {
  padding: var(--space-2);
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .visual-block__title {
  font-size: var(--text-xs);
  margin-bottom: var(--space-1);
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .visual-table,
.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .stat-strip {
  font-size: 0.625rem;
}

/* Paired actual/expected strips can place two values inside one narrow grid
   cell. Keep every numeric value on one line at phone widths instead of
   falling back to an ellipsis. */
@media (max-width: 420px) {
  .surface-feed .stat-strip {
    gap: 0.25rem;
  }

  .surface-feed .stat-strip__pair {
    gap: 0.2rem;
  }

  .surface-feed .stat-strip__item {
    padding: 0.25rem;
  }

  .surface-feed .stat-strip__value {
    font-size: 0.64rem;
    overflow: visible;
    text-overflow: clip;
  }

  .surface-feed .stat-strip__label {
    font-size: 0.58rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
}

.surface-feed .feed-card:not(.feed-card--expanded) .feed-card__media-stage .visual-block--featured .stat-strip {
  gap: 0.3rem;
}

.surface-feed .feed-card:not(.feed-card--expanded) .feed-card__media-stage .visual-block--featured .stat-strip__pair {
  gap: 0.25rem;
}

.surface-feed .feed-card:not(.feed-card--expanded) .feed-card__media-stage .visual-block--featured .stat-strip__item {
  padding: 0.35rem;
}

.surface-feed .feed-card:not(.feed-card--expanded) .feed-card__media-stage .visual-block--featured .stat-strip__value {
  font-size: 0.72rem;
  overflow: visible;
  text-overflow: clip;
}

.surface-feed .feed-card--expanded .stat-strip {
  gap: 0.3rem;
}

.surface-feed .feed-card--expanded .stat-strip__pair {
  gap: 0.25rem;
}

.surface-feed .feed-card--expanded .stat-strip__item {
  padding: 0.35rem;
}

.surface-feed .feed-card--expanded .stat-strip__value {
  font-size: 0.72rem;
  overflow: visible;
  text-overflow: clip;
}

.surface-feed .feed-card .stat-strip__value--text {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .visual-table th,
.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .visual-table td {
  padding: 0.125rem 0.35rem;
}

.feed-card:not(.feed-card--expanded) .feed-card__panel-dots {
  display: none;
}

.feed-card__priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  justify-self: center;
}

.feed-card__priority-dot.feed-card__priority-indicator--critical {
  background: var(--color-critical);
  box-shadow: 0 0 0 3px var(--color-critical-bg);
}

.feed-card__priority-dot.feed-card__priority-indicator--high {
  background: var(--color-high);
  box-shadow: 0 0 0 3px var(--color-high-bg);
}

.feed-card__priority-dot.feed-card__priority-indicator--medium {
  background: var(--color-medium);
}

.feed-card__priority-dot.feed-card__priority-indicator--low {
  background: var(--color-low);
}

.feed-card__teaser-text {
  min-width: 0;
}

.feed-card__headline {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  margin: 0;
  transition: color var(--transition-base);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-title-accent--date {
  color: var(--color-link);
  font-weight: var(--weight-semibold);
}

.feed-title-accent--name {
  color: var(--color-beige);
  font-weight: var(--weight-semibold);
}

.feed-title-accent--metric {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
}

.feed-card--expanded .feed-card__headline {
  font-size: var(--text-lg);
  -webkit-line-clamp: unset;
  margin-bottom: var(--space-2);
}

.feed-card__teaser-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
  white-space: normal;
}

.feed-card:not(.feed-card--expanded) .feed-card__panel:first-child .feed-card__media-stage {
  aspect-ratio: var(--feed-media-ratio);
  max-height: none;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--color-border-subtle);
}

.feed-card:not(.feed-card--expanded):not(:has(.feed-card__clip-poster)) .feed-card__panel:first-child .feed-card__media-stage {
  aspect-ratio: unset;
  overflow: visible;
  border-top: none;
}

.feed-card:not(.feed-card--expanded):has(.feed-card__clip-poster) {
  display: flex;
  flex-direction: column;
}

.feed-card:not(.feed-card--expanded):has(.feed-card__clip-poster) .feed-card__panels,
.feed-card:not(.feed-card--expanded):has(.feed-card__clip-poster) .feed-card__panel:first-child,
.feed-card:not(.feed-card--expanded):has(.feed-card__clip-poster) .feed-card__media-stage--clip {
  flex: 1;
  display: flex;
  min-height: 0;
  aspect-ratio: unset;
  height: auto;
}

.feed-card:not(.feed-card--expanded) .feed-card__panel:first-child .feed-card__media-stage--clip {
  aspect-ratio: unset;
  min-height: 0;
}

.feed-card__clip-poster {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-card__clip-poster .video-placeholder__play {
  color: #f4efe6;
  border-color: rgba(244, 239, 230, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.feed-card:not(.feed-card--expanded) .feed-card__clip-expanded {
  display: none;
}

.feed-card--expanded .feed-card__clip-poster {
  display: none;
}

.feed-card--expanded .feed-card__media-stage--clip {
  display: block;
  min-height: 0;
}

.feed-card:not(.feed-card--expanded):has(.feed-card__clip-poster) .feed-card__panel:not(:first-child),
.feed-card:not(.feed-card--expanded) .feed-card__panel-dots {
  display: none;
}

.feed-card:not(.feed-card--expanded) .feed-card__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.feed-card__expand-icon {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform var(--transition-base), color var(--transition-fast);
}

.feed-card--expanded .feed-card__chevron {
  transform: rotate(180deg);
}

.feed-card__btn-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.feed-card__btn-icon:hover {
  color: var(--color-text-secondary);
  background: var(--color-base);
}

.feed-card__btn-icon--dismiss:hover {
  color: var(--color-critical);
}

/* ── Expanded body — media-first layout ── */

.feed-card__body {
  background: var(--color-base);
  border-top: 1px solid var(--color-border-subtle);
}

.feed-card__media-stage {
  background: var(--color-base);
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-card__media-stage--report,
.feed-card__media-stage--opponent {
  flex-direction: column;
  align-items: stretch;
  min-height: auto;
  padding: var(--space-4);
  gap: var(--space-3);
}

.feed-card__media-stage .visual-block--featured {
  width: 100%;
  border: none;
  background: transparent;
  padding: var(--space-4) var(--space-5);
  min-height: 16rem;
}

.feed-card__media-stage .visual-block--featured .bar-chart__bars {
  height: 11rem;
}

.feed-card__media-stage .visual-block--featured .line-chart--featured {
  width: 100%;
  height: auto;
  min-height: 12rem;
}

.feed-card__media-stage .visual-block--featured .scatter-chart {
  min-height: 14rem;
}

.feed-card__media-stage .visual-block--featured .field-diagram {
  min-height: 14rem;
  max-height: 16rem;
}

.feed-card__media-stage .visual-block--featured .heatmap {
  min-height: 6rem;
  transform: scale(1.15);
  transform-origin: center;
}

.feed-card__media-stage .visual-block--featured .stat-strip {
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
}

.feed-card__media-stage .visual-block--featured .stat-strip__value {
  font-size: var(--text-xl);
}

.feed-card__media-stage .visual-block--video.visual-block--featured {
  padding: 0;
  min-height: auto;
  width: 100%;
}

.feed-card__media-stage .visual-block--video.visual-block--featured .video-placeholder {
  position: relative;
  width: 100%;
}

.feed-card__media-stage .visual-block--video.visual-block--featured .video-placeholder__frame {
  aspect-ratio: 4 / 5;
  min-height: 20rem;
  border-radius: 0;
  border-left: none;
  border-right: none;
  margin-bottom: 0;
}

.feed-card--highlight:not(.feed-card--expanded) .feed-card__media-stage .visual-block--video.visual-block--featured .video-placeholder__frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.feed-card__media-stage .video-placeholder__label--overlay {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-align: center;
  width: max-content;
  max-width: calc(100% - 2 * var(--space-3));
}

.feed-card__media-stage .visual-table--featured {
  font-size: var(--text-sm);
}

.feed-card__media-stage .visual-table--featured th,
.feed-card__media-stage .visual-table--featured td {
  padding: var(--space-3) var(--space-4);
}

.feed-card__media-rail {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
  scrollbar-width: thin;
}

.feed-card__panels {
  display: flex;
  width: 100%;
}

.feed-card--expanded .feed-card__panels {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.feed-card--expanded .feed-card__panels::-webkit-scrollbar {
  display: none;
}

.feed-card--expanded .feed-card__panel {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  min-height: 16rem;
  max-height: min(62vh, 28rem);
  overflow-y: auto;
}

.feed-card--expanded .feed-card__panel--end {
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.feed-card__panel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-2) 0 var(--space-3);
}

.feed-card__panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
}

.feed-card__panel-dot--active {
  background: var(--color-accent);
}

.feed-card__media-rail .visual-block {
  flex: 0 0 14rem;
  min-width: 14rem;
  padding: var(--space-3);
}

.feed-card__media-rail .bar-chart__bars {
  height: 4rem;
}

.featured-report-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: 0 var(--space-2);
}

.featured-report-header__player {
  font-weight: var(--weight-semibold);
}

.featured-report-header__line {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.featured-alert-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.featured-alert {
  padding: var(--space-4);
  background: var(--color-surface-raised);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-medium);
}

.featured-alert--high {
  border-left-color: var(--color-high);
}

.featured-alert__headline {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-3);
}

.featured-alert__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.featured-alert__metric {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.featured-alert__metric em {
  font-style: normal;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 2px;
}

.feed-card__caption {
  padding: var(--space-4) var(--space-5);
}

.feed-card__caption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.feed-card__caption .feed-card__expert {
  margin-bottom: 0;
}

.feed-card__summary {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-2);
}

.feed-card__claim {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-2);
}

.feed-card__reasoning {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-3);
}

.feed-card__evidence-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  padding: 0;
  transition: color var(--transition-fast);
}

.feed-card__evidence-link:hover {
  color: var(--color-accent-hover);
}

.feed-card__evidence {
  margin-top: var(--space-3);
}

.feed-card__actions-bar {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
}

.feed-card__actions-primary {
  display: flex;
  gap: var(--space-2);
}

.feed-card__action-primary {
  flex: 1;
  min-width: 0;
  justify-content: center;
  align-items: center;
  padding: var(--space-2) var(--space-2);
  box-sizing: border-box;
  text-align: center;
  font-size: var(--text-xs);
  line-height: 1.3;
  white-space: normal;
}
.feed-card__action-primary.is-disabled,
.feed-card__action-primary[aria-disabled="true"] { background: #64748b; border-color: #94a3b8; color: #e2e8f0; cursor: not-allowed; }
.feed-card__action-primary.is-disabled:hover,
.feed-card__action-primary[aria-disabled="true"]:hover { background: #64748b; }
.feed-card__action-primary strong,
.feed-card__action-primary small { display: block; }
.feed-card__action-primary small {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: var(--text-xs);
  font-weight: 500;
}

.feed-card__actions-quiet {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  padding-top: var(--space-2);
}

.feed-card__action-quiet {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: none;
  border: none;
  padding: var(--space-1);
}

.feed-card__action-quiet:hover {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.feed-card__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.feed-card__type-badge {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.feed-card__type-badge--alert {
  color: var(--color-critical);
  background: var(--color-critical-bg);
  border: 1px solid var(--color-critical-border);
}

.feed-card__type-badge--recommendation {
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent-border);
}

.feed-card__type-badge--insight {
  color: var(--color-text-secondary);
  background: var(--color-medium-bg);
  border: 1px solid var(--color-border);
}

.feed-card__type-badge--report {
  color: var(--color-text-secondary);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
}

.feed-card__expert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.feed-card__expert-avatar {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-family: var(--font-data);
  font-size: 0.625rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
}

.feed-card__expert-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
}

.feed-card__reviewed-badge {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-5) var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-success);
  background: var(--color-success-bg);
  border-radius: var(--radius-sm);
}

.feed-card--reviewed .feed-card__reviewed-badge {
  display: inline-flex;
}

.feed-card--expanded .feed-card__teaser-header {
  border-bottom: 1px solid var(--color-border-subtle);
}

.feed-card--expanded .feed-card__teaser-meta {
  display: none;
}

.feed-card--expanded {
  height: auto;
  border-color: var(--color-border);
}

.briefing-complete {
  display: none;
  text-align: center;
  padding: var(--space-8) var(--space-4) calc(var(--space-8) + var(--tab-bar-height));
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.briefing-complete--visible {
  display: block;
}

.briefing-complete__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success-bg);
  border-radius: 50%;
  color: var(--color-success);
}

.briefing-complete__headline {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-3);
}

.briefing-complete__summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-6);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.briefing-complete__stats {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.briefing-complete__alternatives {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.card-list__end {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-subtle);
  margin-top: var(--space-4);
  line-height: 1.5;
}

.card-list__end--hidden {
  display: none;
}

.feed-staff-strip {
  position: relative;
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.feed-staff-strip__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.feed-staff-strip__field input {
  font: inherit;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.feed-staff-strip__suggestions {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  max-height: 8rem;
  overflow: auto;
}

.feed-staff-strip__suggestions button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--space-2);
  color: inherit;
}

.feed-empty {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-text-secondary);
}

.feed-card--notice {
  border-color: var(--color-accent);
}

.feed-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-bar-height) + 1rem);
  transform: translateX(-50%);
  background: var(--color-text);
  color: var(--color-surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 40;
  max-width: 20rem;
}

.share-sheet {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
}

.share-sheet__panel {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-5);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
  max-height: 85%;
  overflow-y: auto;
}

.share-sheet__panel h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-base);
}

.share-sheet__group {
  margin-bottom: var(--space-3);
}

.share-sheet__group-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 420px) {
  .surface-feed .feed-card__media-stage .visual-block--featured .stat-strip__value {
    font-size: 0.64rem;
  }

  .surface-feed .stat-strip__value--text {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
}

.share-sheet__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--color-text-primary);
}

.share-sheet__role {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.share-sheet__copy {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.share-sheet__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.share-sheet__actions .btn-primary,
.share-sheet__actions .btn-secondary {
  flex: 1;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
}

.share-sheet__actions .btn-secondary {
  border: 1px solid var(--color-border);
  background: var(--color-base);
  color: var(--color-text-primary);
}

.gpt-embed {
  margin: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.gpt-embed__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.gpt-embed__header h2 {
  margin: 0;
  font-size: var(--text-base);
}

.gpt-embed__close {
  color: var(--color-text-primary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
}

.gpt-embed__frame,
#gpt-embed-container {
  display: block;
  width: 100%;
  min-width: 0;
}

#gpt-embed-container iframe {
  width: 100%;
  max-width: 100%;
  min-height: 28rem;
  border: 0;
}

.surface-feed .feed-card--expanded .feed-card__media-stage .visual-block--featured .stat-strip__value {
  font-size: 0.72rem;
  overflow: visible;
  text-overflow: clip;
}
