/* =====================================================================
   TODAY HUB — dashboard hero (greeting + clock status / ops degrade).
   Uses existing theme tokens; subtle motion; respects prefers-reduced-motion.
   ===================================================================== */

.today-hub {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}

.today-hub__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at 30% 20%,
      rgba(var(--success-rgb), 0.08) 0%,
      transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.today-hub.is-clocked-in .today-hub__glow {
  background: radial-gradient(ellipse at 30% 20%,
      rgba(var(--success-rgb), 0.14) 0%,
      transparent 60%);
}

.today-hub>*:not(.today-hub__glow) {
  position: relative;
  z-index: 1;
}

.today-hub__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

/* Status badge pill */
.today-hub__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 8px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.today-hub__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.today-hub__badge--on {
  background: rgba(var(--success-rgb), 0.1);
  border-color: rgba(var(--success-rgb), 0.35);
  color: var(--success);
}

.today-hub__badge--on .today-hub__badge-dot {
  background: var(--success);
  animation: today-hub-badge-pulse 2s ease-in-out infinite;
}

.today-hub__badge--break {
  background: rgba(var(--secondary-rgb), 0.1);
  border-color: rgba(var(--secondary-rgb), 0.4);
  color: var(--warning);
}

.today-hub__badge--break .today-hub__badge-dot {
  background: var(--warning);
}

.today-hub__badge--off {
  background: rgba(var(--danger-rgb), 0.07);
  border-color: rgba(var(--danger-rgb), 0.3);
  color: var(--text-muted);
}

.today-hub__badge--off .today-hub__badge-dot {
  background: var(--text-muted);
}

@keyframes today-hub-badge-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.today-hub__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.today-hub__greeting {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 6px;
  line-height: var(--leading-tight);
}

.today-hub__name {
  color: var(--secondary);
}

.today-hub__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.today-hub.is-clocked-in .today-hub__status {
  color: var(--success);
}

.today-hub__clock-now {
  text-align: right;
  flex-shrink: 0;
  min-width: 7.5rem;
}

.today-hub__clock-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.today-hub__clock-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ----- Staff body: ring + timeline + metrics ----- */
.today-hub__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 32px;
  align-items: center;
}

.today-hub__ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.today-hub__ring {
  display: block;
  transform: rotate(-90deg);
}

.today-hub__ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.today-hub__ring-fill {
  fill: none;
  stroke: var(--success);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.today-hub.is-clocked-in .today-hub__ring-fill {
  filter: drop-shadow(0 0 6px rgba(var(--success-rgb), 0.35));
}

.today-hub__ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.today-hub__ring-hours {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.today-hub__ring-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.today-hub__shift {
  min-width: 0;
}

.today-hub__timeline {
  margin-bottom: 18px;
}

.today-hub__timeline-track {
  position: relative;
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: visible;
  margin-bottom: 10px;
}

.today-hub__timeline-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--success) 55%, transparent),
      var(--success));
  border-radius: 999px;
  transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.today-hub__timeline-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
  transition: left 350ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
}

.today-hub.is-clocked-in .today-hub__timeline-marker {
  opacity: 1;
  animation: today-hub-marker-pulse 2.4s ease-in-out infinite;
}

@keyframes today-hub-marker-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
  }

  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 12%, transparent);
  }
}

.today-hub__timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.today-hub__placeholder-mark {
  font-style: normal;
  font-size: 0.6rem;
  opacity: 0.65;
  margin-left: 2px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.today-hub__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.today-hub__metric {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin: 0;
  transition: border-color 200ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.today-hub__metric:hover {
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.today-hub__metric dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.today-hub__metric dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.today-hub__metric--placeholder dd {
  color: var(--text-muted);
  font-weight: 500;
}

.today-hub__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.today-hub__clock-btn {
  min-width: 140px;
}

.today-hub__clock-btn.is-out {
  background: var(--danger) !important;
  background-image: none !important;
}

.today-hub__clock-btn--break {
  border-color: rgba(var(--secondary-rgb), 0.5);
  color: var(--warning);
}

.today-hub__clock-btn--break:hover {
  border-color: var(--warning);
}

.today-hub__clock-btn--break-end {
  background: var(--warning) !important;
  background-image: none !important;
  border-color: var(--warning) !important;
  color: var(--bg) !important;
}

.today-hub__clock-btn--subtle {
  background: none !important;
  background-image: none !important;
}

.today-hub__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.today-hub__checklist-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.today-hub__checklist-strip a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.today-hub__checklist-strip a:hover {
  color: var(--text);
}

.today-hub__checklist-strip strong {
  color: var(--text);
  font-weight: 600;
}

.today-hub__checklist-strip--overdue,
.today-hub__checklist-strip--overdue strong {
  color: var(--danger);
}

/* ----- Clock activity strip ----- */
.today-hub__activity {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.today-hub__activity-title {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 500;
}

.today-hub__activity-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
}

.today-hub__activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(4px);
  animation: today-hub-activity-in 400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}

.today-hub__activity-item time {
  color: var(--text);
  margin-left: 4px;
}

.today-hub__activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.today-hub__activity-dot--clock_in {
  background: var(--success);
}

.today-hub__activity-dot--clock_out {
  background: var(--danger);
}

.today-hub__activity-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@keyframes today-hub-activity-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Owner / manager ops degrade ----- */
.today-hub__ops-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.today-hub__ops-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.today-hub__ops-stat:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.today-hub__ops-num {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.today-hub__ops-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.today-hub__ops-stat--done .today-hub__ops-num {
  color: var(--success);
}

.today-hub__ops-stat--overdue .today-hub__ops-num {
  color: var(--danger);
}

.today-hub__ops-stat--action .today-hub__ops-num {
  color: var(--secondary);
}

.today-hub__shift-inbox {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.today-hub__shift-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.today-hub__shift-inbox-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
}

.today-hub__shift-inbox-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.today-hub__shift-inbox-meta strong {
  color: var(--text);
  font-size: var(--text-sm);
}

.today-hub__shift-inbox-meta .font-mono {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.today-hub__shift-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-hub__shift-inbox-actions .btn-primary,
.today-hub__shift-inbox-actions .btn-secondary {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.today-hub__shift-inbox-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.75rem;
}

.today-hub__shift-inbox-link:hover {
  color: var(--text);
}

/* ----- Mobile: clock card always on top via order; stack metrics ----- */
@media (max-width: 768px) {
  .today-hub {
    padding: 22px 18px 18px;
    /* Ensure hub stays above checklist column content in document flow */
    order: -1;
  }

  .today-hub__header {
    flex-direction: column;
    gap: 14px;
  }

  .today-hub__clock-now {
    text-align: left;
  }

  .today-hub__body {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .today-hub__shift {
    width: 100%;
  }

  .today-hub__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .today-hub__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .today-hub__clock-btn {
    width: 100%;
  }

  .today-hub__hint {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .today-hub__metrics {
    grid-template-columns: 1fr;
  }
}

/* ---- Orbit dashboard card + hero (full width above checklists) ---- */
.orbit-card {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
}

.orbit-hero {
  padding: 20px 22px 22px;
  border-radius: calc(var(--radius-card) + 4px);
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--surface) 88%, var(--accent) 12%) 0%,
      color-mix(in srgb, var(--surface) 94%, transparent) 55%,
      color-mix(in srgb, var(--surface) 90%, var(--secondary) 10%) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.orbit-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 960px) {
  .orbit-hero__grid {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .orbit-hero__media {
    flex: 1 1 58%;
    min-width: 0;
  }

  .orbit-hero__panel {
    flex: 1 1 42%;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
}

.orbit-hero__media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}

.orbit-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  /* Portrait Script Studio exports — cover was cropping Orbit’s face in the 16:9 box */
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.orbit-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 4px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.orbit-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: orbit-hero-pulse 2s ease-in-out infinite;
}

@keyframes orbit-hero-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.orbit-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  color: var(--fg);
}

.orbit-hero__source {
  margin: 0 0 8px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.orbit-hero__lede {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.orbit-hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 4px;
}

.orbit-hero__stat {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.orbit-hero__stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.orbit-hero__stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--accent);
}

.orbit-hero__stat-value--done {
  color: var(--secondary, var(--accent));
}

.orbit-hero__actions {
  margin-top: 12px;
}

.orbit-hero__home {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.orbit-hero__room {
  margin-top: 12px;
}

.orbit-card--attention {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}

.orbit-card__eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.orbit-card__presence {
  margin-top: 4px;
}

.orbit-card__wave {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 56px;
  margin: 0 0 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.orbit-card__line,
.orbit-card__signal {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--fg);
}

.orbit-card__rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 0.82rem;
}

.orbit-card__room-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
}

.orbit-card__room-link:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.orbit-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.orbit-card__chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  background: var(--surface);
}

.orbit-card__chip.is-attention {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--border));
  color: var(--danger);
}

.orbit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.orbit-card__cta {
  text-decoration: none;
}

/* ---- Orbit dashboard embed (orbit-live.js dashboard mode) ---- */
.orbit-dashboard__terminal {
  margin-top: 4px;
}

.orbit-dashboard__guide {
  margin: 0;
}

.orbit-dashboard__greet {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.orbit-dashboard__presence {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  overflow: visible;
}

.orbit-dashboard__mouth {
  flex-shrink: 0;
  overflow: visible;
  border-radius: 10px;
}

.orbit-dashboard__identity,
.orbit-dashboard .orbit-identity {
  width: 96px;
  height: 132px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 12%, transparent);
  display: block;
}

.orbit-dashboard__mouth.speaking .orbit-dashboard__identity {
  transform: scale(1.08);
  filter: brightness(1.12);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.orbit-dashboard__wave-wrap {
  flex: 1 1 200px;
  min-width: 0;
}

.orbit-dashboard__wave {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 56px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.orbit-dashboard__line {
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--fg);
  min-height: 1.45em;
}

.orbit-dashboard__prompt {
  margin: 16px 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.orbit-dashboard__doors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orbit-dashboard__door {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}

.orbit-dashboard__door:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.orbit-dashboard__today-row {
  margin-top: 10px;
}

.orbit-dashboard__screen--room {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.orbit-dashboard__back {
  margin-bottom: 8px;
  font-size: 0.82rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.orbit-dashboard__room-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.orbit-dashboard__room-body {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  font-size: 0.92rem;
}

.orbit-dashboard .orbit-btn,
.orbit-dashboard .learn-actions,
.orbit-dashboard .learn-copy,
.orbit-dashboard .piece-title,
.orbit-dashboard .teach-box {
  font-size: inherit;
}

.orbit-dashboard .orbit-btn {
  margin-top: 8px;
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.orbit-dashboard .orbit-btn.is-primary {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.orbit-dashboard .piece-video {
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  margin-top: 8px;
}

.orbit-dashboard #orbitGuide.is-responding .orbit-dashboard__wave {
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .orbit-hero__badge-dot {
    animation: none;
  }

  .today-hub__ring-fill,
  .today-hub__timeline-fill,
  .today-hub__timeline-marker,
  .today-hub__metric,
  .today-hub__ops-stat {
    transition: none !important;
  }

  .today-hub.is-clocked-in .today-hub__timeline-marker,
  .today-hub__activity-item {
    animation: none !important;
  }

  .today-hub__activity-item {
    opacity: 1;
    transform: none;
  }

  .today-hub.is-clocked-in .today-hub__ring-fill {
    filter: none;
  }
}

/* =====================================================================
   ORBIT WATCH STAGE — a wider Dashboard-canvas destination for the WATCH
   room. Reuses orbit-live.js's existing renderWatch()/watchPieces() output
   unchanged (same .piece-title/.learn-actions/.orbit-btn/.piece-video
   markup the compact hero panel already renders — see the `.orbit-dashboard
   .orbit-btn` etc. rules above, which this section also inherits via its
   own `.orbit-dashboard` class). Only sizing/layout is different here:
   a full dashboard-column-width stage instead of the hero's ~42% panel.
   Hidden by default; orbit-live.js shows it only while WATCH is open.
   ===================================================================== */
.orbit-watch-stage {
  margin-top: 24px;
  padding: 20px 22px 24px;
  border-radius: calc(var(--radius-card) + 4px);
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--surface) 88%, var(--accent) 12%) 0%,
      color-mix(in srgb, var(--surface) 94%, transparent) 55%,
      color-mix(in srgb, var(--surface) 90%, var(--secondary) 10%) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.orbit-watch-stage[hidden] {
  display: none;
}

.orbit-watch-stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.orbit-watch-stage__back {
  margin: 0 !important;
}

.orbit-watch-stage__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.orbit-watch-stage__body {
  font-size: 1rem;
}

/* Picker: a grid of Factory pieces instead of the hero's cramped, wrapped
   button flow — room to show all 13 without a tiny inner scrollbar. */
.orbit-watch-stage .learn-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.orbit-watch-stage .orbit-btn {
  margin: 0 !important;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}

/* Player: large, correctly framed — same object-fit: contain treatment as
   the Orbit hero's own video, so footage is never cropped or stretched. */
.orbit-watch-stage .piece-video {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .orbit-watch-stage {
    padding: 16px 16px 20px;
  }

  .orbit-watch-stage__head {
    flex-wrap: wrap;
  }
}