:root {
  color-scheme: dark;
  --color-void: #08090a;
  --color-carbon: #0f1011;
  --color-obsidian: #161718;
  --color-graphite: #23252a;
  --color-smoke: #383b3f;
  --color-ash: #62666d;
  --color-fog: #8a8f98;
  --color-mist: #d0d6e0;
  --color-bone: #e5e5e6;
  --color-paper: #ffffff;
  --color-acid-lime: #e4f222;
  --color-pulse-green: #27a644;
  --color-coral-red: #eb5757;
  --color-signal-teal: #02b8cc;
  --color-iris-violet: #6366f1;
  --color-lavender: #8b5cf6;
  --font-ui: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Berkeley Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --radius-card: 12px;
  --radius-button: 6px;
  --radius-input: 6px;
  --radius-badge: 4px;
  --border-hairline: 1px solid var(--color-graphite);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-mist);
  background: var(--color-void);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-void);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-acid-lime);
  outline-offset: 3px;
}

button {
  color: inherit;
}

svg {
  display: block;
  width: 100%;
  height: 100%;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 12px;
  transform: translateY(-160%);
  border-radius: var(--radius-button);
  background: var(--color-acid-lime);
  color: var(--color-void);
  font-weight: 510;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  background: rgb(8 9 10 / 92%);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  width: min(100% - 48px, 1200px);
  min-height: 64px;
  align-items: center;
  gap: 40px;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--color-paper);
}

.brand-mark path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.brand-name {
  color: var(--color-paper);
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.035em;
}

.brand-lockup {
  display: grid;
  gap: 3px;
}

.brand-caption {
  color: var(--color-ash);
  font-size: 10px;
  line-height: 1.2;
}

.brand-light {
  margin-left: 3px;
  color: var(--color-fog);
  font-weight: 400;
}

.primary-nav {
  display: flex;
  height: 64px;
  align-items: stretch;
  gap: 26px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--color-ash);
  font-size: 13px;
  transition: color 120ms ease-out;
}

.nav-link:hover,
.nav-link-active {
  color: var(--color-mist);
}

.nav-link-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--color-acid-lime);
  content: '';
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 9px);
  right: 0;
  width: 168px;
  padding: 6px;
  border: 1px solid var(--color-graphite);
  border-radius: 8px;
  background: var(--color-carbon);
  box-shadow: 0 12px 28px rgb(0 0 0 / 38%);
}

.account-menu-label {
  display: block;
  padding: 8px 9px;
  color: var(--color-ash);
  font-family: var(--font-mono);
  font-size: 11px;
}

.account-menu-panel form {
  margin: 0;
}

.account-menu-logout {
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--color-mist);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.account-menu-logout:hover {
  background: var(--color-obsidian);
}

.clock,
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: -0.013em;
}

.clock {
  color: var(--color-ash);
}

.avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: var(--border-hairline);
  border-radius: 50%;
  background: var(--color-obsidian);
  color: var(--color-mist);
  cursor: pointer;
  font-size: 10px;
}

.button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-mist);
  cursor: pointer;
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.011em;
  transition:
    background-color 120ms ease-out,
    border-color 120ms ease-out,
    color 120ms ease-out;
}

.button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.button-primary {
  background: var(--color-acid-lime);
  color: var(--color-void);
}

.button-primary:hover {
  background: #f0ff32;
}

.button-ghost {
  border-color: var(--color-graphite);
  color: var(--color-mist);
}

.button-ghost:hover {
  background: rgb(255 255 255 / 4%);
}

.button-secondary {
  border-color: var(--color-graphite);
  background: var(--color-obsidian);
  color: var(--color-mist);
}

.button-secondary:hover {
  border-color: var(--color-smoke);
  background: #1c1e20;
}

.button-small {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 13px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.button-danger {
  border-color: rgb(235 87 87 / 30%);
  background: #8f353b;
  color: var(--color-paper);
}

.button-danger:hover {
  background: #a43d44;
}

.schedule-table td:last-child {
  min-width: 0;
  padding-right: 16px;
}

.schedule-row-actions {
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--color-mist);
}

.mobile-menu svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.main-shell {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.page-heading {
  display: flex;
  min-height: 166px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-block: 34px 28px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--color-ash);
  font-size: 12px;
}

.breadcrumb span:last-child {
  color: var(--color-mist);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-paper);
  font-weight: 400;
}

h1 {
  margin-bottom: 6px;
  font-size: 32px;
  letter-spacing: -0.022em;
  line-height: 1.13;
}

h2 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 510;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

h3 {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.01em;
}

.page-subtitle {
  margin-bottom: 0;
  color: var(--color-ash);
  font-size: 14px;
  line-height: 1.5;
}

.heading-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: var(--color-ash);
  font-size: 12px;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 4px;
}

.environment-dot,
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-pulse-green);
}

.meta-divider {
  width: 1px;
  height: 13px;
  margin-inline: 5px;
  background: var(--color-graphite);
}

.overview-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.9fr);
  gap: 16px;
}

.surface-card {
  min-width: 0;
  border: var(--border-hairline);
  border-radius: var(--radius-card);
  background: var(--color-carbon);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 1.2%);
}

.stream-card,
.server-card,
.schedule-card,
.activity-card {
  padding: 20px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker {
  margin-bottom: 6px;
  color: var(--color-ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.status-pill {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: var(--radius-badge);
  background: rgb(255 255 255 / 4%);
  color: var(--color-fog);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.status-pill .status-dot {
  width: 5px;
  height: 5px;
  background: var(--color-fog);
}

.status-scheduled {
  border-color: rgb(99 102 241 / 20%);
  background: rgb(99 102 241 / 10%);
  color: #a5a6f6;
}

.status-complete {
  border-color: rgb(39 166 68 / 18%);
  background: rgb(39 166 68 / 9%);
  color: #79c98a;
}

.status-failed {
  border-color: rgb(235 87 87 / 18%);
  background: rgb(235 87 87 / 9%);
  color: #f28b8b;
}

.status-stopped {
  border-color: rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 5%);
  color: var(--color-fog);
}

.stream-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 27px 24px;
}

.stream-active-body {
  padding-top: 20px;
}

.stream-active-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.stream-thumbnail {
  width: 144px;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border: var(--border-hairline);
  border-radius: 7px;
  background: var(--color-obsidian);
  object-fit: cover;
}

.stream-active-copy {
  min-width: 0;
}

.stream-active-copy h3 {
  margin: 4px 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.stream-active-copy p {
  margin: 0;
  color: var(--color-ash);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.stream-timeline {
  margin: 18px 0 14px;
}

.stream-timeline .progress-track {
  height: 5px;
}

.stream-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.stream-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.stream-metric span {
  color: var(--color-ash);
  font-size: 11px;
}

.stream-metric strong {
  color: var(--color-mist);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stream-idle-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-graphite);
  border-radius: 9px;
  background: var(--color-obsidian);
}

.stream-idle-mark span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-fog);
}

.stream-empty p strong {
  color: var(--color-mist);
  font-weight: 550;
}

.stream-glyph {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-graphite);
  border-radius: 9px;
  background: var(--color-obsidian);
  color: var(--color-fog);
}

.stream-glyph svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stream-glyph svg path:last-child {
  fill: currentColor;
  stroke: none;
}

.stream-empty h3 {
  margin-bottom: 5px;
  font-size: 15px;
}

.stream-empty p {
  margin-bottom: 0;
  color: var(--color-ash);
  font-size: 13px;
  line-height: 1.5;
}

.stream-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 13px 0;
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
}

.detail-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.detail-label {
  color: var(--color-ash);
  font-size: 11px;
}

.detail-value {
  overflow: hidden;
  color: var(--color-mist);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-check {
  color: #72c985;
}

.card-footer,
.server-footer,
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-footer {
  padding-top: 13px;
}

.muted-copy,
.resource-footnote {
  color: var(--color-ash);
  font-size: 11px;
}

.text-link {
  color: var(--color-mist);
  font-size: 12px;
  transition: color 120ms ease-out;
}

.text-link:hover {
  color: var(--color-paper);
}

.text-link span {
  margin-left: 3px;
  color: var(--color-fog);
}

.icon-button,
.row-menu {
  display: inline-grid;
  min-width: 26px;
  min-height: 26px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--color-ash);
  cursor: pointer;
  font-size: 12px;
}

.icon-button:hover,
.row-menu:hover {
  border-color: var(--color-graphite);
  background: rgb(255 255 255 / 3%);
  color: var(--color-mist);
}

.resource-block {
  padding-top: 20px;
}

.resource-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.resource-heading > div {
  display: grid;
  gap: 3px;
}

.resource-name {
  color: var(--color-mist);
  font-size: 12px;
}

.resource-hint,
.resource-value small {
  color: var(--color-ash);
  font-size: 11px;
  font-weight: 400;
}

.resource-value {
  color: var(--color-bone);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--color-graphite);
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-fog);
}

.progress-fill-lime {
  background: var(--color-ash);
}

.resource-footnote {
  margin: 7px 0 0;
  font-size: 10px;
}

.resource-divider {
  height: 1px;
  margin-top: 18px;
  background: var(--color-graphite);
}

.server-footer {
  margin-top: 17px;
  padding-top: 12px;
  border-top: var(--border-hairline);
}

.server-spec {
  color: var(--color-ash);
  font-size: 10px;
}

.server-spec span {
  padding-inline: 3px;
  color: var(--color-smoke);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.schedule-heading {
  align-items: center;
  margin-bottom: 10px;
}

.schedule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented-control {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: 6px;
  background: rgb(255 255 255 / 2%);
}

.segment {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-ash);
  cursor: pointer;
  font-size: 14px;
}

.segment span {
  color: var(--color-fog);
  font-family: var(--font-mono);
  font-size: 12px;
}

.segment:hover {
  color: var(--color-mist);
}

.segment.active {
  background: #23252a;
  color: var(--color-mist);
}

.schedule-list {
  border-top: var(--border-hairline);
}

.schedule-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: var(--border-hairline);
}

.schedule-row[hidden] {
  display: none;
}

.date-chip {
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--color-ash);
  font-family: var(--font-mono);
}

.date-chip span {
  font-size: 9px;
  text-transform: uppercase;
}

.date-chip strong {
  color: var(--color-mist);
  font-size: 15px;
  font-weight: 400;
}

.date-chip-muted strong {
  color: var(--color-ash);
}

.schedule-main {
  min-width: 0;
}

.schedule-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.schedule-title-line h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-main > p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--color-ash);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-separator {
  padding-inline: 3px;
  color: var(--color-smoke);
}

.schedule-time {
  display: grid;
  justify-items: end;
  gap: 3px;
  white-space: nowrap;
}

.schedule-time strong {
  color: var(--color-mist);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
}

.schedule-time span {
  color: var(--color-ash);
  font-size: 10px;
}

.row-menu {
  font-size: 16px;
}

.video-row-menu[popover] {
  position: fixed;
  inset: auto;
  width: 230px;
  padding: 5px;
  margin: 0;
  border: 1px solid var(--color-graphite);
  border-radius: 8px;
  background: var(--color-carbon);
  color: var(--color-mist);
  box-shadow: 0 12px 30px rgb(0 0 0 / 48%);
}

.video-row-menu:popover-open {
  display: grid;
  gap: 2px;
}

.video-row-menu [role='menuitem'] {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--color-mist);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.video-row-menu [role='menuitem']:hover:not(:disabled),
.video-row-menu [role='menuitem']:focus-visible {
  outline: 0;
  background: var(--color-obsidian);
}

.video-row-menu [role='menuitem']:focus-visible {
  box-shadow: inset 0 0 0 1px var(--color-smoke);
}

.video-row-menu [role='menuitem'] span {
  font-size: 14px;
}

.video-row-menu [role='menuitem'] small {
  color: var(--color-ash);
  font-size: 12px;
}

.video-row-menu [role='menuitem']:disabled {
  color: var(--color-ash);
  cursor: not-allowed;
}

.video-row-menu [role='menuitem'].video-action-danger:not(:disabled) {
  color: #f28a8f;
}

.video-menu-divider {
  height: 1px;
  margin: 3px 5px;
  background: var(--color-graphite);
}

.list-footer {
  justify-content: flex-start;
  padding-top: 14px;
}

.activity-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.activity-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 13px 0;
  border-bottom: var(--border-hairline);
}

.activity-marker {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--color-fog);
}

.marker-green {
  background: var(--color-pulse-green);
}
.marker-blue {
  background: var(--color-signal-teal);
}

.activity-item p {
  margin: 0 0 4px;
  color: var(--color-mist);
  font-size: 11px;
}

.activity-item div span {
  display: block;
  overflow: hidden;
  color: var(--color-ash);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.activity-item time {
  padding-top: 1px;
  color: var(--color-ash);
  font-family: var(--font-mono);
  font-size: 9px;
}

.activity-card .list-footer {
  margin-top: 1px;
}

.view-panel[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.library-card,
.full-schedule-card,
.history-card {
  overflow: hidden;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: var(--border-hairline);
}

.library-toolbar-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.library-toolbar-copy h2 {
  font-size: 14px;
}

.library-toolbar-copy .muted-copy {
  font-size: 11px;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  display: flex;
  width: 190px;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: rgb(255 255 255 / 2%);
  color: var(--color-ash);
}

.search-field svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-mist);
  font-size: 14px;
}

.search-field input::placeholder {
  color: var(--color-ash);
}

.toolbar-select-wrap {
  position: relative;
  flex: 0 0 auto;
}

.toolbar-select {
  display: flex;
  width: 176px;
  min-width: 164px;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-carbon);
  color: var(--color-mist);
  cursor: pointer;
  font-size: 14px;
  transition:
    border-color 140ms ease-out,
    background-color 140ms ease-out;
}

.page-size-select {
  width: 72px;
  min-width: 72px;
}

.toolbar-select:hover {
  border-color: var(--color-smoke);
  background-color: var(--color-obsidian);
}

.toolbar-select[aria-expanded='true'] {
  border-color: var(--color-smoke);
}

.toolbar-select-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-fog);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 140ms ease-out;
}

.toolbar-select[aria-expanded='true'] .toolbar-select-chevron {
  transform: rotate(180deg);
}

.toolbar-select-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  padding: 4px;
  border: 1px solid var(--color-graphite);
  border-radius: 8px;
  background: var(--color-carbon);
  box-shadow: 0 12px 28px rgb(0 0 0 / 38%);
}

.toolbar-select-menu[hidden] {
  display: none;
}

.toolbar-select-option {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--color-mist);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.toolbar-select-option:hover {
  background: var(--color-obsidian);
}

.toolbar-select-option:focus-visible {
  outline: 2px solid var(--color-acid-lime);
  outline-offset: -2px;
  background: var(--color-obsidian);
}

.toolbar-select-option svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-acid-lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.toolbar-select-option[aria-selected='false'] svg {
  visibility: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: var(--border-hairline);
  color: var(--color-mist);
  font-size: 11px;
  font-weight: 400;
  vertical-align: middle;
}

.data-table th {
  color: var(--color-ash);
  font-size: 10px;
  font-weight: 400;
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 20px;
}

.data-table th:last-child,
.data-table td:last-child {
  padding-right: 18px;
  text-align: right;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgb(255 255 255 / 1.5%);
}

.data-table tr[hidden] {
  display: none;
}

.file-cell {
  display: flex;
  min-width: 205px;
  align-items: center;
  gap: 10px;
}

.video-preview-trigger {
  position: relative;
  display: grid;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 6px;
  background: linear-gradient(135deg, #173d42, #192026 58%, #473b26);
  color: var(--color-paper);
  cursor: pointer;
  transition:
    border-color 140ms ease-out,
    filter 140ms ease-out;
}

.video-preview-trigger[data-preview-tone='1'] {
  background: linear-gradient(135deg, #3b2b48, #171b28 56%, #614134);
}

.video-preview-trigger[data-preview-tone='2'] {
  background: linear-gradient(135deg, #19413a, #14211e 56%, #6b6033);
}

.video-preview-trigger[data-preview-tone='3'] {
  background: linear-gradient(135deg, #263b58, #151b28 56%, #7a4e3e);
}

.video-preview-trigger::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 28%, rgb(255 255 255 / 28%), transparent 22%),
    linear-gradient(160deg, transparent 48%, rgb(0 0 0 / 42%) 49%);
  content: '';
}

.video-preview-trigger:hover {
  border-color: var(--color-fog);
  filter: brightness(1.15);
}

.video-preview-trigger svg {
  position: relative;
  width: 15px;
  height: 15px;
  fill: rgb(255 255 255 / 94%);
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 55%));
  transform: translateX(1px);
}

.video-preview-trigger img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-cell > span:last-child,
.schedule-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.file-cell strong,
.schedule-cell strong {
  color: var(--color-mist);
  font-size: 11px;
  font-weight: 400;
}

.file-cell small,
.schedule-cell small,
.date-secondary {
  color: var(--color-ash);
  font-size: 10px;
}

.status-ready {
  border-color: rgb(39 166 68 / 18%);
  background: rgb(39 166 68 / 8%);
  color: #79c98a;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-top: var(--border-hairline);
  color: var(--color-ash);
  font-size: 10px;
}

.table-footer strong {
  color: var(--color-mist);
  font-weight: 400;
}

.video-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 16px;
}

.page-size-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-size-label,
.pagination-page {
  color: var(--color-ash);
  font-size: 14px;
  white-space: nowrap;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 9px;
  border: 1px solid var(--color-graphite);
  border-radius: 6px;
  background: transparent;
  color: var(--color-mist);
  cursor: pointer;
  transition:
    border-color 140ms ease-out,
    background-color 140ms ease-out,
    color 140ms ease-out;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--color-smoke);
  background: var(--color-obsidian);
}

.pagination-button:disabled {
  color: var(--color-smoke);
  cursor: not-allowed;
}

.pagination-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.storage-note strong {
  font-family: var(--font-mono);
}

.empty-table-state {
  padding: 38px 20px;
  color: var(--color-ash);
  font-size: 12px;
  text-align: center;
}

.video-pagination .toolbar-select-wrap {
  z-index: 6;
}

.page-size-dropdown .toolbar-select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.empty-table-state[hidden] {
  display: none;
}

.page-note {
  margin: 12px 0 32px;
  color: var(--color-ash);
  font-size: 11px;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(270px, 0.8fr);
  align-items: start;
  gap: 16px;
}

.schedule-toolbar {
  align-items: center;
}

.schedule-toolbar .toolbar-controls {
  flex: 0 0 auto;
}

.schedule-table,
.history-table {
  min-width: 760px;
}

.schedule-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  white-space: normal;
}

.schedule-table th:nth-child(1) {
  width: 21%;
}
.schedule-table th:nth-child(2) {
  width: 17%;
}
.schedule-table th:nth-child(3) {
  width: 12%;
}
.schedule-table th:nth-child(4) {
  width: 12%;
}
.schedule-table th:nth-child(5) {
  width: 9%;
}
.schedule-table th:nth-child(6) {
  width: 29%;
}

.schedule-table th,
.schedule-table td {
  min-width: 0;
  padding-inline: 10px;
}

.schedule-table td:first-child,
.schedule-table td:nth-child(3) {
  overflow-wrap: anywhere;
}

.schedule-table td:nth-child(4),
.schedule-table td:nth-child(5),
.schedule-table td:last-child {
  white-space: nowrap;
}

.history-table td:first-child {
  min-width: 195px;
}

.data-table.schedule-table td:first-child,
.data-table.schedule-table td:last-child {
  min-width: 0;
}

.data-table.schedule-table td:last-child {
  padding-right: 16px;
}

.date-primary,
.date-secondary {
  display: block;
}

.date-secondary {
  margin-top: 4px;
}

.schedule-aside {
  padding: 18px;
}

.schedule-aside .card-heading h2 {
  font-size: 14px;
}

.rule-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 16px 0 0;
}

.rule-list > div {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-top: var(--border-hairline);
}

.rule-list dt {
  color: var(--color-ash);
  font-size: 10px;
}

.rule-list dd {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--color-mist);
  font-size: 11px;
}

.rule-list dd .mono {
  color: var(--color-ash);
  font-size: 10px;
}

.rule-list dd.duration-rule {
  display: grid;
  gap: 5px;
}

.duration-rule strong {
  color: var(--color-paper);
  font-size: 15px;
  font-weight: 500;
}

.duration-rule span {
  color: var(--color-ash);
  font-size: 12px;
  line-height: 1.5;
}

.aside-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--color-graphite);
  border-radius: 6px;
  background: rgb(255 255 255 / 2%);
}

.info-mark {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-smoke);
  border-radius: 50%;
  color: var(--color-fog);
  font-family: var(--font-mono);
  font-size: 9px;
}

.aside-callout p {
  margin: 0;
  color: var(--color-ash);
  font-size: 10px;
  line-height: 1.5;
}

.upload-dropzone {
  display: grid;
  min-height: 160px;
  justify-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--color-smoke);
  border-radius: 8px;
  background: rgb(255 255 255 / 1.5%);
  cursor: pointer;
  text-align: center;
}

.upload-dropzone.is-drag-over {
  border-color: var(--color-acid-lime);
  background: rgb(222 255 0 / 6%);
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-dropzone:focus-within {
  outline: 2px solid var(--color-acid-lime);
  outline-offset: 3px;
}

.upload-icon {
  width: 25px;
  height: 25px;
  margin-bottom: 2px;
  color: var(--color-fog);
}

.upload-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.upload-dropzone strong {
  color: var(--color-mist);
  font-size: 12px;
  font-weight: 400;
}

.upload-dropzone small {
  color: var(--color-ash);
  font-size: 10px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--color-graphite);
  border-radius: 6px;
  background: rgb(255 255 255 / 2%);
}

.upload-progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-mist);
  font-size: 11px;
}

.upload-progress-heading strong {
  color: var(--color-acid-lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.upload-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-graphite);
}

.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-acid-lime);
  transition: width 180ms ease-out;
}

.upload-progress-track.is-indeterminate span {
  width: 42% !important;
  animation: upload-progress-sweep 1.2s ease-in-out infinite;
}

.upload-error {
  margin: 0;
  color: #ff9588;
  font-size: 11px;
  line-height: 1.5;
}

@keyframes upload-progress-sweep {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(240%);
  }
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px 32px;
  color: var(--color-ash);
  font-size: 10px;
}

.page-footer a {
  color: var(--color-mist);
}

.page-footer a:hover {
  color: var(--color-paper);
}

.schedule-dialog {
  position: fixed;
  width: min(100% - 32px, 460px);
  max-width: 460px;
  padding: 24px;
  border: 1px solid var(--color-smoke);
  border-radius: var(--radius-card);
  background: var(--color-carbon);
  color: var(--color-mist);
  box-shadow: 0 20px 70px rgb(0 0 0 / 55%);
}

.delete-video-dialog .dialog-copy strong {
  color: var(--color-mist);
  font-weight: 550;
  overflow-wrap: anywhere;
}

.cancel-job-dialog .dialog-copy strong {
  color: var(--color-mist);
  font-weight: 550;
  overflow-wrap: anywhere;
}

.video-preview-dialog {
  width: min(100% - 32px, 860px);
  max-width: 860px;
}

.video-preview-dialog h2 {
  padding-right: 30px;
  overflow-wrap: anywhere;
}

.video-preview-stage,
.video-preview-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-graphite);
  border-radius: 8px;
  background: #08090a;
}

.video-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: linear-gradient(135deg, #173d42, #192026 58%, #473b26);
}

.video-preview-stage[data-preview-tone='1'] {
  background: linear-gradient(135deg, #3b2b48, #171b28 56%, #614134);
}

.video-preview-stage[data-preview-tone='2'] {
  background: linear-gradient(135deg, #19413a, #14211e 56%, #6b6033);
}

.video-preview-stage[data-preview-tone='3'] {
  background: linear-gradient(135deg, #263b58, #151b28 56%, #7a4e3e);
}

.video-preview-stage::before,
.video-preview-stage::after {
  position: absolute;
  z-index: -1;
  content: '';
}

.video-preview-stage::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 28%, rgb(255 255 255 / 24%), transparent 20%),
    linear-gradient(165deg, transparent 38%, rgb(0 0 0 / 45%) 39%);
}

.video-preview-stage::after {
  right: 10%;
  bottom: 8%;
  left: 10%;
  height: 1px;
  background: rgb(255 255 255 / 24%);
  box-shadow: 0 -12px 30px rgb(255 255 255 / 8%);
}

.preview-placeholder-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--color-paper);
  text-align: center;
  text-shadow: 0 2px 10px rgb(0 0 0 / 50%);
}

.preview-placeholder-copy strong {
  font-size: 18px;
  font-weight: 550;
}

.preview-placeholder-copy span:last-child {
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
}

.preview-placeholder-tag {
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 4px;
  background: rgb(0 0 0 / 18%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.video-preview-player[hidden],
.video-preview-stage[hidden] {
  display: none;
}

.preview-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
}

.preview-detail {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.preview-detail span {
  color: var(--color-ash);
  font-size: 12px;
}

.preview-detail strong {
  overflow: hidden;
  color: var(--color-mist);
  font-size: 14px;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-help {
  margin: 16px 0 0;
  color: var(--color-ash);
  font-size: 13px;
  line-height: 1.5;
}

.schedule-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(3px);
}

.dialog-close-form {
  position: absolute;
  top: 15px;
  right: 15px;
}

.dialog-close-form .icon-button {
  font-size: 20px;
}

.schedule-dialog h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.dialog-copy {
  max-width: 360px;
  margin-bottom: 20px;
  color: var(--color-ash);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-fields,
.form-field {
  display: grid;
  gap: 12px;
}

.form-field {
  gap: 6px;
  color: var(--color-mist);
  font-size: 12px;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: rgb(255 255 255 / 2%);
  color: var(--color-mist);
  color-scheme: dark;
}

.form-field select option {
  background: var(--color-carbon);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: var(--border-hairline);
  border-radius: 8px;
  background: var(--color-obsidian);
  color: var(--color-mist);
  font-size: 13px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 35%);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1200px) {
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .schedule-aside .rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    gap: 24px;
  }

  .primary-nav {
    gap: 17px;
  }

  .overview-grid,
  .content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
  }

  .stream-details {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }
}

/* Start the compact dashboard at tablet portrait so iPad Mini uses the readable schedule layout. */
@media (max-width: 820px) {
  .topbar-inner,
  .main-shell {
    width: calc(100% - 24px);
  }

  .topbar-inner {
    min-height: 58px;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 58px;
    right: 0;
    left: 0;
    height: auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
    border-bottom: var(--border-hairline);
    background: var(--color-carbon);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 42px;
  }

  .nav-link-active::after {
    right: auto;
    width: 28px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .topbar-actions .button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .clock {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .page-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding-block: 24px;
  }

  .page-heading-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 0;
  }

  .heading-meta {
    padding: 0;
  }

  .page-heading-actions .button {
    width: 100%;
    justify-content: center;
  }

  .overview-grid,
  .content-grid,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .activity-card {
    order: 2;
  }

  .page-footer {
    flex-direction: column;
  }

  .schedule-aside {
    order: 1;
  }

  .schedule-aside .rule-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .schedule-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-toolbar .toolbar-controls,
  .schedule-toolbar .toolbar-select-wrap,
  .schedule-toolbar .toolbar-select {
    width: 100%;
  }

  .full-schedule-card .table-scroll {
    overflow: visible;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table {
    min-width: 0;
    table-layout: auto;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    padding: 0 12px;
  }

  .schedule-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 15px 0;
    border-bottom: var(--border-hairline);
  }

  .schedule-table tbody tr:last-child {
    border-bottom: 0;
  }

  .schedule-table td,
  .schedule-table th,
  .data-table.schedule-table td:first-child,
  .data-table.schedule-table td:last-child {
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .schedule-table td:first-child {
    grid-column: 1 / -1;
  }

  .schedule-table td:nth-child(2),
  .schedule-table td:nth-child(3),
  .schedule-table td:nth-child(4),
  .schedule-table td:nth-child(5) {
    display: grid;
    gap: 3px;
    align-content: start;
  }

  .schedule-table td:nth-child(2)::before,
  .schedule-table td:nth-child(3)::before,
  .schedule-table td:nth-child(4)::before,
  .schedule-table td:nth-child(5)::before {
    color: var(--color-ash);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.03em;
    content: attr(data-label);
  }

  .schedule-table td:nth-child(3),
  .schedule-table td:nth-child(5) {
    text-align: right;
  }

  .schedule-table td:nth-child(4) {
    grid-column: 1;
  }

  .schedule-table td:nth-child(5) {
    grid-column: 2;
  }

  .schedule-table td:last-child {
    grid-column: 1 / -1;
    padding-top: 2px;
  }

  .schedule-table td.schedule-actions-empty {
    display: none;
  }

  .schedule-table td:nth-child(4) .status-pill {
    width: fit-content;
  }

  .schedule-row-actions {
    justify-content: stretch;
  }

  .schedule-row-actions .button {
    flex: 1;
    justify-content: center;
  }
}

.linear-login-shell {
  display: grid;
  width: min(100% - 32px, 420px);
  min-height: 100vh;
  align-content: center;
  gap: 14px;
  margin-inline: auto;
  padding-block: 32px;
}

.login-card {
  width: 100%;
  padding: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 32px;
}

.login-brand .brand-mark {
  color: var(--color-paper);
}

.login-heading {
  margin-bottom: 22px;
}

.login-heading h1 {
  margin-bottom: 8px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.login-heading .muted-copy {
  margin: 0;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .dialog-field {
  display: grid;
  gap: 7px;
  color: var(--color-mist);
  font-size: 14px;
}

.login-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
}

.login-footer {
  margin: 0;
  color: var(--color-ash);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 13px;
  }

  .brand-light,
  .avatar {
    display: none;
  }

  .brand-caption {
    display: none;
  }

  .preview-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-actions .button {
    min-height: 30px;
    font-size: 0;
  }

  .topbar-actions .button svg {
    width: 16px;
    height: 16px;
  }

  .topbar-actions .button::after {
    font-size: 11px;
    content: attr(data-mobile-label);
  }

  .stream-card,
  .server-card,
  .schedule-card,
  .activity-card {
    padding: 15px;
  }

  .stream-empty {
    align-items: flex-start;
    padding-block: 22px;
  }

  .stream-thumbnail {
    width: 104px;
  }

  .stream-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .stream-metric:last-child {
    grid-column: 1 / -1;
  }

  .stream-details {
    gap: 8px;
  }

  .schedule-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .toolbar-controls {
    width: 100%;
  }

  .video-pagination {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 14px;
  }

  .search-field {
    width: auto;
    flex: 1;
  }

  .schedule-toolbar .toolbar-controls {
    width: 100%;
  }

  .schedule-toolbar .segmented-control {
    width: 100%;
  }

  .table-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 14px;
  }

  .schedule-actions {
    width: 100%;
    justify-content: space-between;
  }

  .schedule-row {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 9px;
    padding-block: 10px;
  }

  .schedule-time {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-items: unset;
    gap: 7px;
    margin-top: -5px;
  }

  .row-menu {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .schedule-title-line {
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .schedule-title-line h3 {
    max-width: 100%;
  }

  .segmented-control {
    flex: 1;
  }

  .segment {
    flex: 1;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Readability pass: keep supporting content comfortable beside the 16px body. */
.brand-name {
  font-size: 15px;
}

.nav-link,
.button {
  font-size: 14px;
}

.breadcrumb,
.heading-meta,
.detail-label,
.resource-hint,
.resource-value,
.schedule-time span,
.activity-item div span,
.data-table th,
.file-cell small,
.schedule-cell small,
.rule-list dt,
.mono,
.aside-callout p,
.upload-dropzone small,
.page-footer,
.mobile-primary-cta {
  font-size: 12px;
}

.page-subtitle,
.detail-value,
.muted-copy,
.resource-name,
.resource-footnote,
.server-spec,
.schedule-main p,
.activity-item p,
.data-table td,
.file-cell strong,
.schedule-cell strong,
.page-note,
.rule-list dd,
.upload-dropzone strong,
.dialog-copy,
.form-field,
.table-footer,
.toast {
  font-size: 14px;
}

.section-kicker,
.status-pill,
.text-link,
.empty-table-state {
  font-size: 13px;
}

.search-field input,
.toolbar-select,
.toolbar-select-option,
.form-field input,
.form-field select {
  font-size: 14px;
}

h2,
.library-toolbar-copy h2 {
  font-size: 18px;
}

h3 {
  font-size: 16px;
}

.schedule-time strong {
  font-size: 14px;
}

.activity-item time {
  font-size: 12px;
}

.segment {
  font-size: 14px;
}

.clock,
.section-kicker,
.date-chip span,
.segment span,
.date-secondary,
.library-toolbar-copy .muted-copy,
.rule-list dd .mono {
  font-size: 12px;
}

.schedule-aside .card-heading h2 {
  font-size: 18px;
}

@media (max-width: 980px) {
  .topbar-actions .button {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    font-size: 15px;
  }

  .topbar-actions .button::after {
    font-size: 12px;
  }
}

.dashboard-notice {
  padding: 12px 14px;
  margin: 16px 0 24px;
  border: 1px solid rgb(39 166 68 / 24%);
  border-radius: 7px;
  background: rgb(39 166 68 / 8%);
  color: var(--color-mist);
  font-size: 14px;
}

.flash-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.flash-alert-dismissed {
  opacity: 0;
  transform: translateY(-4px);
}

.flash-alert-close {
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.flash-alert-close:hover,
.flash-alert-close:focus-visible {
  opacity: 1;
}

.flash-alert-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.dashboard-notice-error {
  border-color: rgb(235 87 87 / 28%);
  background: rgb(235 87 87 / 8%);
}

.dashboard-notice a {
  color: var(--color-acid-lime);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dashboard-notice a:hover {
  color: var(--color-paper);
}

.main-shell {
  padding-bottom: 56px;
}

.overview-schedule,
.schedule-form-card,
.overview-activity {
  margin-top: 18px;
  overflow: hidden;
}

.schedule-create-dialog {
  width: min(100% - 32px, 620px);
  max-width: 620px;
  max-height: min(90vh, 760px);
  overflow-y: auto;
}

.schedule-form-card {
  padding: 22px;
}

.schedule-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-top: 14px;
  border-color: rgb(235 87 87 / 24%);
}

.schedule-danger-zone h2 {
  margin-bottom: 5px;
  font-size: 15px;
}

.schedule-danger-zone p {
  margin: 0;
  color: var(--color-ash);
  font-size: 13px;
  line-height: 1.5;
}

.cancel-job-dialog {
  max-width: 480px;
}

.cancel-job-dialog .dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.schedule-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.schedule-create-form .dialog-field {
  display: grid;
  gap: 7px;
  color: var(--color-mist);
  font-size: 14px;
  min-width: 0;
}

.dialog-field-label {
  color: var(--color-mist);
  font-size: 14px;
}

.custom-duration-control {
  display: grid;
  gap: 7px;
  color: var(--color-ash);
  font-size: 13px;
}

.custom-duration-control[hidden] {
  display: none;
}

.duration-preset-picker {
  position: relative;
}

.duration-preset-trigger {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-carbon);
  color: var(--color-mist);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.duration-preset-trigger:hover,
.duration-preset-trigger[aria-expanded='true'] {
  border-color: var(--color-smoke);
  background: var(--color-obsidian);
}

.duration-preset-trigger:focus-visible {
  outline: 2px solid rgb(222 255 0 / 32%);
  outline-offset: 2px;
}

.duration-preset-trigger .toolbar-select-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-fog);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 140ms ease-out;
}

.duration-preset-trigger[aria-expanded='true'] .toolbar-select-chevron {
  transform: rotate(180deg);
}

.duration-preset-menu {
  position: absolute;
  z-index: 14;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  padding: 5px;
  border: 1px solid var(--color-smoke);
  border-radius: 8px;
  background: var(--color-carbon);
  box-shadow: 0 14px 36px rgb(0 0 0 / 48%);
}

.duration-preset-menu[hidden] {
  display: none;
}

.duration-preset-menu button {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--color-mist);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.duration-preset-menu button:hover,
.duration-preset-menu button[aria-selected='true'] {
  background: rgb(222 255 0 / 12%);
  color: var(--color-paper);
}

.custom-time-picker {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.custom-time-picker .dashboard-input {
  min-width: 0;
}

.custom-time-picker-button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-obsidian);
  color: var(--color-mist);
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color 140ms ease-out,
    background-color 140ms ease-out;
}

.custom-time-picker-button:hover {
  border-color: var(--color-smoke);
  background: var(--color-carbon);
}

.custom-time-picker-button:focus-visible {
  outline: 2px solid rgb(222 255 0 / 32%);
  outline-offset: 2px;
}

.custom-time-picker-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.custom-time-picker-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.schedule-end-preview {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-obsidian);
  transition:
    border-color 140ms ease-out,
    background-color 140ms ease-out;
}

.schedule-end-preview.is-ready {
  border-color: rgb(222 255 0 / 34%);
  background: rgb(222 255 0 / 4%);
}

.schedule-end-preview .section-kicker {
  margin: 0;
  color: var(--color-ash);
  font-size: 10px;
}

.schedule-end-preview strong {
  color: var(--color-paper);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.25;
}

.schedule-end-preview small,
.schedule-end-duration {
  color: var(--color-ash);
  font-size: 12px;
  line-height: 1.4;
}

.schedule-end-duration:empty {
  display: none;
}

.schedule-create-dialog .schedule-submit-actions {
  padding-top: 0;
}

.schedule-create-dialog .schedule-submit-actions .button {
  width: 100%;
  justify-content: center;
}

.video-picker {
  position: relative;
  min-width: 0;
}

.video-picker-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-carbon);
  color: var(--color-mist);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 140ms ease-out,
    background-color 140ms ease-out;
}

.video-picker-trigger:hover,
.video-picker-trigger[aria-expanded='true'] {
  border-color: var(--color-smoke);
  background: var(--color-obsidian);
}

.video-picker-trigger:focus-visible,
.video-picker-option:focus-visible {
  outline: 2px solid rgb(222 255 0 / 40%);
  outline-offset: 2px;
}

.video-picker-trigger > .toolbar-select-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-left: auto;
  fill: none;
  stroke: var(--color-fog);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 140ms ease-out;
}

.video-picker-trigger[aria-expanded='true'] > .toolbar-select-chevron {
  transform: rotate(180deg);
}

.video-picker-thumb {
  position: relative;
  display: grid;
  width: 64px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-graphite);
  border-radius: 6px;
  background: linear-gradient(135deg, #243338, #191b20 62%, #413a2a);
}

.video-picker-selected-thumb {
  width: 72px;
  height: 46px;
}

.video-picker-thumb img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-picker-thumb img[hidden] {
  display: none;
}

.video-picker-thumb svg {
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  fill: var(--color-paper);
}

.video-picker-current-copy,
.video-picker-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.video-picker-current-copy strong,
.video-picker-option-copy strong {
  overflow: hidden;
  color: var(--color-mist);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-picker-current-copy small,
.video-picker-option-copy small {
  overflow: hidden;
  color: var(--color-ash);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-picker-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  padding: 7px;
  border: 1px solid var(--color-graphite);
  border-radius: 10px;
  background: var(--color-carbon);
  box-shadow: 0 14px 36px rgb(0 0 0 / 48%);
}

.video-picker-menu[hidden] {
  display: none;
}

.video-picker-search {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid var(--color-graphite);
  border-radius: 7px;
  background: var(--color-obsidian);
}

.video-picker-search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-ash);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.video-picker-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-mist);
  font-size: 13px;
}

.video-picker-search input::placeholder {
  color: var(--color-ash);
}

.video-picker-options {
  display: grid;
  max-height: 260px;
  gap: 3px;
  margin-top: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.video-picker-option {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--color-mist);
  text-align: left;
  cursor: pointer;
}

.video-picker-option:hover,
.video-picker-option[aria-selected='true'] {
  border-color: var(--color-graphite);
  background: var(--color-obsidian);
}

.video-picker-option[hidden] {
  display: none;
}

.video-picker-check {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-left: auto;
  fill: none;
  stroke: var(--color-acid-lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  opacity: 0;
}

.video-picker-option[aria-selected='true'] .video-picker-check {
  opacity: 1;
}

.video-picker-empty {
  margin: 12px 6px 6px;
  color: var(--color-ash);
  font-size: 12px;
}

.schedule-create-form .dialog-field small {
  color: var(--color-ash);
  font-size: 12px;
}

.dashboard-select,
.dashboard-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-carbon);
  color: var(--color-mist);
  font-size: 14px;
}

.dashboard-select {
  appearance: none;
  padding-right: 36px;
  color-scheme: dark;
}

.dashboard-select-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.dashboard-select-chevron {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 12px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--color-fog);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  pointer-events: none;
}

.dashboard-select option {
  background: var(--color-carbon);
  color: var(--color-mist);
}

.dashboard-select:focus-visible,
.dashboard-input:focus-visible {
  border-color: var(--color-smoke);
  outline: 2px solid rgb(222 255 0 / 20%);
  outline-offset: 1px;
}

.schedule-create-form .dialog-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 2px;
}

.status-running,
.status-live {
  border-color: rgb(39 166 68 / 24%);
  background: rgb(39 166 68 / 10%);
  color: #79c98a;
}

.status-cancelled {
  color: var(--color-fog);
}

.marker-red {
  background: var(--color-coral-red);
}

.topbar-actions .button-primary {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .custom-time-picker {
    align-items: stretch;
  }

  .schedule-danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }
}

.topbar-actions form {
  margin: 0;
}

.topbar-settings,
.topbar-logout {
  min-height: 32px;
  padding: 6px 9px;
}

.topbar-settings-active {
  border-color: var(--color-smoke);
  background: var(--color-obsidian);
  color: var(--color-paper);
}

.settings-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
}

.stream-keys-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 16px;
  padding-bottom: 48px;
}

.stream-key-form-card,
.stream-key-list-card {
  min-width: 0;
  padding: 20px;
}

.stream-key-form-card > .muted-copy {
  margin: 16px 0;
  line-height: 1.55;
}

.stream-key-create-form {
  margin-top: 16px;
}

.stream-key-create-form .dialog-field {
  display: grid;
  gap: 7px;
  color: var(--color-mist);
  font-size: 14px;
}

.stream-key-create-form .dialog-field small {
  color: var(--color-ash);
  font-size: 12px;
}

.stream-key-list {
  display: grid;
  margin-top: 14px;
}

.stream-key-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: var(--border-hairline);
}

.stream-key-main {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.stream-key-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-key-heading h3 {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.stream-key-value {
  display: block;
  max-width: 100%;
  color: var(--color-mist);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: text;
}

.stream-key-main small,
.stream-key-retention-note {
  color: var(--color-ash);
  font-size: 12px;
}

.stream-key-retention-note {
  padding-top: 14px;
  margin: 8px 0 0;
  border-top: var(--border-hairline);
  line-height: 1.5;
}

.settings-card {
  padding: 20px;
}

.settings-card-body {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.settings-card-body > .muted-copy {
  margin: 0;
}

.settings-server-url {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid var(--color-graphite);
  border-radius: var(--radius-input);
  background: var(--color-void);
}

.settings-server-url .field-label {
  color: var(--color-ash);
  font-family: var(--font-mono);
  font-size: 11px;
}

.settings-server-url code {
  overflow-wrap: anywhere;
  color: var(--color-mist);
  font-family: var(--font-mono);
  font-size: 13px;
}

.settings-form {
  display: grid;
  gap: 15px;
}

.settings-form .dialog-field {
  display: grid;
  gap: 7px;
  color: var(--color-mist);
  font-size: 14px;
}

.settings-form .dialog-field small {
  color: var(--color-ash);
  font-size: 12px;
}

.settings-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-form-grid .settings-actions {
  grid-column: 1 / -1;
}

.settings-test-form {
  padding-top: 14px;
  border-top: 1px solid var(--color-graphite);
}

.settings-card button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  .stream-keys-layout {
    grid-template-columns: 1fr;
  }

  .stream-key-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-form-grid .settings-actions {
    grid-column: auto;
  }
}

.video-upload-dialog .upload-dropzone input[type='file'] {
  width: 100%;
  max-width: 420px;
  color: var(--color-mist);
  font-size: 14px;
}

.video-upload-dialog .upload-dropzone input[type='file']::file-selector-button {
  min-height: 36px;
  padding: 7px 11px;
  margin-right: 10px;
  border: 1px solid var(--color-graphite);
  border-radius: 5px;
  background: var(--color-obsidian);
  color: var(--color-mist);
  cursor: pointer;
}

.video-library-empty {
  padding: 48px 24px;
  text-align: center;
}

.video-library-empty h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

.video-library-empty p {
  margin-bottom: 18px;
  color: var(--color-ash);
  font-size: 14px;
}

.history-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-filter-form .search-field {
  width: 240px;
}

.error-copy {
  max-width: 280px;
  overflow: hidden;
  color: var(--color-ash);
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .history-filter-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .history-filter-form .search-field {
    width: auto;
    flex: 1 1 180px;
  }
}
