:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f6f7f9;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f7f9;
}

[hidden] {
  display: none !important;
}

header {
  background: #fff;
  border-bottom: 1px solid #d9dee7;
  padding: 14px 18px;
}

.app-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.upload-page > .app-header {
  border-bottom: 0;
  box-shadow: none;
  justify-content: center;
  padding: 4px 10px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-header .muted {
  margin: 0;
  max-width: 560px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.upload-page main {
  max-width: 1180px;
  padding: 14px 12px 132px;
}

.admin-page main {
  max-width: none;
  padding: 0;
}

.admin-page > .app-header {
  background: #fff;
  border-bottom: 1px solid #dfe5ee;
  min-height: 72px;
  padding: 18px 28px;
}

.upload-shell {
  display: grid;
  gap: 14px;
}

.admin-management {
  display: grid;
  min-height: calc(100vh - 73px);
}

h1 {
  margin: 0;
  font-size: 20px;
}

h2 {
  font-size: 18px;
  margin: 20px 0 10px;
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
  border-radius: 6px;
  border: 1px solid #c8d0dc;
  padding: 10px 12px;
  background: #fff;
}

button {
  border: 0;
  background: #1668dc;
  box-shadow: 0 2px 0 rgba(15, 23, 42, .22);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 80ms ease, box-shadow 80ms ease, filter 80ms ease, opacity 80ms ease;
}

button.secondary {
  background: #5f6b7a;
}

button.danger {
  background: #c2410c;
}

button.compact {
  font-size: 12px;
  padding: 7px 10px;
}

button:not(:disabled):hover {
  filter: brightness(1.04);
}

button:not(:disabled):active {
  box-shadow: inset 0 2px 5px rgba(15, 23, 42, .28);
  filter: brightness(.94);
  transform: translateY(1px);
}

button:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.card {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 16px;
}

.upload-step {
  padding: 14px;
}

.upload-step > .eyebrow:first-child,
.workflow-panel > .eyebrow:first-child {
  margin-top: 0;
}

.upload-page input,
.upload-page select,
.upload-page button {
  min-height: 48px;
  font-size: 16px;
}

.upload-step > h2:first-child,
.profile-panel h2:first-child {
  margin-top: 0;
}

.upload-submit-section {
  margin-top: 18px;
}

.upload-session-status {
  align-items: center;
  background: #fff;
  border: 0;
  border-left: 4px solid #0f766e;
  border-radius: 0;
  box-shadow: none;
  color: #17202a;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.25;
  margin: 0;
  max-width: 1180px;
  min-height: 42px;
  padding: 4px 0 4px 10px;
  width: 100%;
}

.app-header .upload-session-status {
  align-self: center;
  flex: 1 1 auto;
  margin: 0 auto;
}

.session-main {
  display: grid;
  flex: 1 1 auto;
  gap: 3px;
  min-width: 0;
}

.session-name-wrap {
  min-width: 0;
  position: relative;
}

.session-name-row {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
}

.session-name-row > strong {
  color: #17202a;
  flex: 0 1 auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #1668dc;
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  justify-content: center;
  min-height: 18px;
  padding: 0 2px;
  width: 18px;
}

.upload-page .session-menu-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 11px;
  min-height: 18px;
  padding: 0 2px;
  width: 18px;
}

.upload-page .session-menu-button:not(:disabled):hover,
.upload-page .session-menu-button:not(:disabled):active {
  box-shadow: none;
  filter: none;
  transform: none;
}

.session-menu-caret {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  display: block;
  height: 0;
  width: 0;
}

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

.worker-menu {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .16);
  left: 0;
  max-width: calc(100vw - 32px);
  padding: 4px;
  position: absolute;
  top: calc(100% + 6px);
  width: max-content;
  z-index: 75;
}

.worker-menu .session-logout {
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: #c2410c;
  font-size: 13px;
  line-height: 1.2;
  min-height: 34px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.upload-page .worker-menu .session-logout {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  min-height: 34px;
  padding: 8px 10px;
  width: 100%;
}

.upload-page .worker-menu .session-logout:not(:disabled):hover {
  background: #fff7ed;
  filter: none;
}

.upload-page .worker-menu .session-logout:not(:disabled):active {
  box-shadow: none;
  filter: none;
  transform: none;
}

.session-meta {
  align-items: center;
  color: #5f6b7a;
  display: flex;
  flex-wrap: nowrap;
  font-size: 11px;
  gap: 4px 10px;
  min-width: 0;
  overflow: hidden;
}

.session-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta span:first-child {
  flex: 0 0 auto;
}

.session-meta b {
  color: #334155;
  font-weight: 700;
}

.session-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.session-count {
  align-items: center;
  background: #0f766e;
  border-radius: 999px;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
  width: auto;
}

.upload-page .session-count {
  min-height: 30px;
  padding: 6px 10px;
  width: auto;
}

.session-count:focus-visible,
.session-menu-button:focus-visible,
.worker-menu .session-logout:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #bfdbfe;
}

.session-count #worker-status-clips {
  font-size: 14px;
}

.upload-page #login-card {
  justify-self: center;
  max-width: 560px;
  width: 100%;
}

.prelogin-info-card {
  justify-self: center;
  max-width: 760px;
  width: 100%;
}

.prelogin-info-card .requirements-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-page #login-button {
  margin-top: 16px;
}

.login-wait-status {
  background: #eef4ff;
  border-left: 3px solid #1668dc;
  border-radius: 0;
  color: #174ea6;
  font-size: 13px;
  line-height: 1.35;
  margin: 10px 0 0;
  padding: 8px 10px;
}

.upload-workflow {
  align-items: start;
  display: grid;
  gap: 14px;
}

.worker-strip,
.workflow-panel {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}

.worker-strip {
  border-left: 4px solid #0f766e;
}

.worker-strip .muted {
  margin: 0;
}

.upload-primary {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.upload-section h2,
.admin-page h2 {
  margin-top: 0;
}

.upload-section + .upload-section {
  margin-top: 0;
}

.upload-guidance {
  align-self: start;
}

.upload-guidance .guide-panel {
  border: 0;
  margin: 0;
}

.upload-fixed-guide {
  background: #f6f7f9;
  border-bottom: 1px solid #d9dee7;
  padding: 8px 12px;
  position: sticky;
  top: var(--upload-header-height, 0px);
  z-index: 45;
}

.upload-fixed-guide .guide-panel {
  border: 1px solid #d9dee7;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
  margin: 0 auto;
  max-width: 1180px;
}

.upload-fixed-guide .guide-panel > div {
  max-height: min(52vh, 440px);
  overflow: auto;
}

.collapsible-section {
  display: block;
}

.section-summary {
  cursor: pointer;
  display: grid;
  gap: 4px;
  list-style: none;
  padding-right: 28px;
  position: relative;
}

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

.section-summary::after {
  align-items: center;
  background: #eef4ff;
  border-radius: 999px;
  color: #174ea6;
  content: "+";
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
}

.collapsible-section[open] > .section-summary::after {
  content: "-";
}

.section-title {
  color: #17202a;
  font-size: 18px;
  font-weight: 700;
}

.collapsible-section-body {
  margin-top: 14px;
}

.location-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.location-save-status {
  margin: 0;
}

.task-picker-grid {
  align-items: start;
}

.upload-validation-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .18) !important;
}

select.upload-validation-error,
input.upload-validation-error {
  background: #fff7f7;
}

.video-upload-card.upload-validation-error,
.task-section.upload-validation-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .14);
}

.admin-page #admin-login,
.admin-page #admin-boot {
  max-width: 420px;
  margin: 28px auto;
}

.admin-boot .muted {
  margin: 0;
}

.admin-password-field {
  position: relative;
}

.admin-password-field #admin-password {
  padding-right: 48px;
}

.admin-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #5f6b7a;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
}

.admin-password-toggle svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.admin-password-toggle:not(:disabled):active {
  box-shadow: none;
  transform: translateY(-50%);
}

.admin-page #admin-login-button {
  margin-top: 14px;
}

.admin-shell {
  align-items: start;
  background: #f6f8fb;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid #e2e8f0;
  min-height: calc(100vh - 73px);
  padding: 18px 10px;
  position: sticky;
  top: 0;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav-item {
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  color: #475569;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 40px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.admin-nav-item:hover {
  background: #f8fafc;
  color: #17202a;
  filter: none;
}

.admin-nav-item.active {
  background: #eef4ff;
  color: #174ea6;
}

.admin-nav-item:focus {
  outline: none;
}

.admin-nav-item:focus-visible {
  box-shadow: 0 0 0 2px #bfdbfe;
}

.admin-nav-item:not(:disabled):active {
  box-shadow: none;
  filter: none;
  transform: none;
}

.admin-content {
  display: grid;
  gap: 18px;
  max-width: none;
  min-width: 0;
  padding: 28px 34px 44px;
  width: 100%;
}

.admin-page-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

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

.section-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.section-title-row h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.section-title-row h2,
.section-title-row p {
  margin-top: 0;
}

.section-title-row .muted {
  margin-bottom: 0;
  max-width: 540px;
}

.admin-review-grid {
  align-items: start;
  display: grid;
  gap: 16px;
}

.muted {
  color: #5f6b7a;
  font-size: 13px;
}

.status {
  padding: 8px 10px;
  border-radius: 6px;
  background: #eef4ff;
  color: #174ea6;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.list {
  display: grid;
  gap: 10px;
}

.task,
.submission {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #17202a;
  text-align: left;
}

.task.selected {
  border-color: #1668dc;
  box-shadow: 0 0 0 2px rgba(22, 104, 220, .15);
}

.admin-table-card,
.worker-management,
.collection-policy-controls,
.task-controls {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  min-width: 0;
}

.collection-policy-controls {
  margin-bottom: 16px;
}

.collection-policy-controls .panel-toolbar h3,
.collection-policy-controls .panel-toolbar p {
  margin: 0;
}

.collection-policy-controls .panel-toolbar p {
  margin-top: 5px;
}

.collection-policy-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-policy-grid fieldset {
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  margin: 0;
  min-width: 0;
  padding: 14px;
}

.collection-policy-grid legend {
  font-weight: 700;
  padding: 0 6px;
}

.collection-policy-options {
  display: grid;
  gap: 8px;
}

.collection-policy-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 9px 10px;
}

.collection-policy-option:has(input:checked) {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.collection-policy-option input {
  margin: 0;
  width: auto;
}

.collection-policy-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.collection-policy-footer p {
  margin: 0;
}

.panel-toolbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-toolbar h3,
.panel-toolbar p {
  margin-top: 0;
}

.panel-toolbar h3 {
  font-size: 17px;
  margin: 0;
}

.worker-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}

.upload-table-toolbar {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.toolbar-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-page #admin-management button:not(.admin-nav-item) {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  color: #334155;
  display: inline-flex;
  font-size: 13px;
  justify-content: center;
  line-height: 1.2;
  max-width: none;
  min-height: 32px;
  padding: 6px 10px;
  width: auto;
}

.admin-page #admin-management button:not(.admin-nav-item):not(:disabled):hover {
  background: #f8fafc;
  border-color: #94a3b8;
  filter: none;
}

.admin-page #admin-management button:not(.admin-nav-item):not(:disabled):active {
  box-shadow: none;
  filter: none;
  transform: none;
}

.admin-page #admin-management button.secondary {
  background: #f8fafc;
  color: #475569;
}

.admin-page #admin-management button.danger {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #b45309;
}

.admin-page #admin-management #export-all-uploads-button,
.admin-page #admin-management #export-workers-button,
.admin-page #admin-management #create-worker-button {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.admin-filters {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 420px) 180px;
  justify-content: start;
}

.admin-filters input,
.admin-filters select {
  min-height: 32px;
  padding: 6px 10px;
}

.admin-filters #all-upload-search {
  width: 100%;
}

.admin-filters #all-upload-date-filter {
  width: 100%;
}

.worker-create-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr) minmax(180px, 260px) auto;
}

.worker-create-row label {
  margin: 0;
}

.worker-search-input {
  flex: 0 1 420px;
  min-height: 32px;
  padding: 6px 10px;
  width: min(100%, 420px);
}

.worker-create-row #create-worker-button {
  white-space: nowrap;
}

.worker-history-drawer[hidden],
.worker-history-drawer-scrim[hidden] {
  display: none;
}

.worker-history-drawer-scrim {
  background: rgba(71, 85, 105, .18);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity .16s ease;
  z-index: 80;
}

.worker-history-drawer-scrim.open {
  opacity: 1;
}

.worker-history-drawer {
  background: #fff;
  border-left: 1px solid #d9dee7;
  box-shadow: -12px 0 28px rgba(51, 65, 85, .16);
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  max-width: calc(100vw - 32px);
  overflow: auto;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform .18s ease;
  width: min(420px, calc(100vw - 32px));
  z-index: 90;
}

.worker-history-drawer.open {
  transform: translateX(0);
}

.worker-history-drawer-header {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.worker-history-heading {
  min-width: 0;
}

.worker-history-heading .eyebrow {
  font-size: 10px;
  line-height: 1.1;
  margin: 0 0 3px;
}

.worker-history-drawer-header h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-close-button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: none;
  color: #475569;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.upload-page .drawer-close-button {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: none;
  font-size: 14px;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.drawer-close-icon {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.upload-page .drawer-close-button:not(:disabled):hover {
  background: #eef4ff;
  filter: none;
}

.upload-page .drawer-close-button:not(:disabled):active {
  box-shadow: none;
  filter: none;
  transform: none;
}

.drawer-close-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #bfdbfe;
}

.worker-history-drawer-body {
  align-content: start;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.worker-history-list {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-auto-rows: max-content;
}

.worker-history-item {
  align-content: start;
  align-self: start;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 0;
  padding: 12px;
}

.worker-history-file-name {
  color: #17202a;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.worker-history-meta {
  color: #5f6b7a;
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 4px 8px;
  line-height: 1.35;
}

.worker-history-meta-value {
  color: #64748b;
}

.worker-history-meta-value + .worker-history-meta-value::before {
  color: #94a3b8;
  content: "/";
  margin-right: 8px;
}

.download-link {
  align-items: center;
  background: #eef4ff;
  border-radius: 6px;
  color: #174ea6;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  text-decoration: none;
}

.table-wrap {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.data-table {
  --fixed-action-width: 72px;
  --fixed-created-at-width: 132px;
  --fixed-storage-date-width: 96px;
  --fixed-source-width: 96px;
  --fixed-worker-width: 168px;
  --fixed-worker-id-width: 96px;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 1180px;
  width: 100%;
}

.worker-table {
  --fixed-action-width: 196px;
  min-width: 980px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #d9dee7;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.data-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th.metadata-column {
  background: #fde68a;
  color: #713f12;
}

.data-table .row-number-column {
  min-width: 56px;
  text-align: right;
  width: 56px;
}

.data-table td.metadata-column {
  overflow-wrap: normal;
}

.data-table .fixed-panel-column {
  background: #fff;
  box-shadow: -1px 0 0 #d9dee7;
  overflow: hidden;
  position: sticky;
  text-overflow: ellipsis;
}

.data-table th.fixed-panel-column {
  background: #f8fafc;
  z-index: 4;
}

.data-table td.fixed-panel-column {
  background: #fff;
  z-index: 2;
}

.data-table .fixed-action-column {
  min-width: var(--fixed-action-width);
  right: 0;
  width: var(--fixed-action-width);
}

.data-table .fixed-created-at-column {
  min-width: var(--fixed-created-at-width);
  right: var(--fixed-action-width);
  width: var(--fixed-created-at-width);
}

.data-table .fixed-storage-date-column {
  min-width: var(--fixed-storage-date-width);
  right: calc(var(--fixed-action-width) + var(--fixed-created-at-width));
  width: var(--fixed-storage-date-width);
}

.data-table .fixed-worker-column {
  min-width: var(--fixed-worker-width);
  right: calc(var(--fixed-action-width) + var(--fixed-created-at-width) + var(--fixed-storage-date-width) + var(--fixed-source-width));
  width: var(--fixed-worker-width);
}

.data-table .fixed-source-column {
  min-width: var(--fixed-source-width);
  right: calc(var(--fixed-action-width) + var(--fixed-created-at-width) + var(--fixed-storage-date-width));
  width: var(--fixed-source-width);
}

.data-table .fixed-worker-id-column {
  box-shadow: -2px 0 0 #cbd5e1;
  min-width: var(--fixed-worker-id-width);
  right: calc(var(--fixed-action-width) + var(--fixed-created-at-width) + var(--fixed-storage-date-width) + var(--fixed-source-width) + var(--fixed-worker-width));
  width: var(--fixed-worker-id-width);
}

.data-table tbody tr:hover {
  background: #eef4ff;
}

.data-table tbody tr:hover td.fixed-panel-column {
  background: #eef4ff;
}

.data-table .wrap {
  max-width: none;
  overflow-wrap: normal;
}

.data-table .nowrap {
  white-space: nowrap;
}

.pagination-controls {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 0 0 8px 8px;
  border-top: 0;
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
  z-index: 4;
}

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

.task-switch {
  align-items: center;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 86px 110px;
  padding: 10px;
}

.task-switch.worker-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.task-switch.closed {
  background: #f8fafc;
}

.task-switch.mixed {
  background: #fffbeb;
}

.task-control-picker {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-control-picker label {
  margin: 0;
}

.task-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.task-summary-row {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.worker-list {
  margin-top: 12px;
}

.worker-list > .muted {
  margin: 12px;
}

.worker-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.worker-table .worker-actions {
  justify-content: flex-start;
}

.worker-edit-input {
  min-height: 30px;
  padding: 5px 8px;
  width: 100%;
}

.worker-table .worker-link-column {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.worker-table .worker-link-column a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.task-switch-detail p {
  margin: 4px 0 0;
}

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  text-align: center;
}

.status-pill.open {
  background: #dcfce7;
  color: #166534;
}

.status-pill.closed {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.mixed {
  background: #fef3c7;
  color: #92400e;
}

.requirements-panel {
  background: #fff;
  border: 2px solid #0f766e;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 16px;
}

.requirements-header {
  border-left: 4px solid #0f766e;
  padding-left: 12px;
}

.requirements-header h2 {
  margin-top: 0;
}

.eyebrow {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.requirements-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
}

.requirements-list > div {
  background: #f8fafc;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 10px;
}

.requirements-list dt {
  color: #17202a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.requirements-list dd {
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.requirements-list .audio-requirement {
  background: #fff7ed;
  border-color: #fed7aa;
}

.camera-guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.camera-guide {
  background: #f8fafc;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 12px;
}

.camera-guide h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.camera-guide ul {
  margin: 0;
  padding-left: 18px;
}

.camera-guide li {
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0;
}

.setup-actions {
  display: grid;
  margin-top: 22px;
}

.setup-actions #setup-next-button {
  min-height: 52px;
  width: 100%;
}

.profile-panel {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #f8fafc;
}

.video-section {
  display: grid;
  gap: 12px;
}

.video-section-header {
  display: grid;
  gap: 4px;
}

.video-section-header .eyebrow,
.video-section-header h2 {
  margin: 0;
}

.video-upload-card {
  background: #f8fafc;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.video-picker {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 12px;
  padding: 0;
}

.video-picker-copy {
  display: grid;
  gap: 8px;
}

.video-picker-copy label,
.video-picker .muted {
  margin: 0;
}

.video-picker-copy label {
  color: #17202a;
  font-size: 15px;
}

.selected-video-count {
  align-self: start;
  background: #eef4ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #174ea6;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  padding: 5px 8px;
  width: fit-content;
}

.video-picker-actions {
  display: grid;
  gap: 8px;
}

.file-picker-button {
  align-items: center;
  background: #fff;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  color: #174ea6;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  margin: 0;
  min-height: 48px;
  padding: 10px 12px;
  text-align: center;
  width: 100%;
}

.upload-page .file-picker-button {
  margin: 0;
  min-height: 44px;
}

#video-file {
  border: 0;
  height: 1px;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.selected-video-list {
  display: grid;
  gap: 8px;
}

.selected-video-item {
  align-items: start;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.selected-video-details {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.selected-video-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-video-details span {
  color: #5f6b7a;
  font-size: 12px;
}

.selected-video-status {
  align-items: center;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  display: flex;
  gap: 6px;
  line-height: 1.3;
  margin-top: 4px;
  min-height: 28px;
  padding: 5px 7px;
}

.selected-video-status span {
  color: inherit;
}

.selected-video-status-dot {
  background: currentColor;
  border-radius: 999px;
  flex: 0 0 auto;
  height: 7px;
  opacity: .75;
  width: 7px;
}

.selected-video-status.active {
  background: #eff6ff;
  border-left-color: #1668dc;
  color: #174ea6;
}

.selected-video-status.done {
  background: #ecfdf5;
  border-left-color: #0f766e;
  color: #0f766e;
}

.selected-video-status.failed {
  background: #fff1f2;
  border-left-color: #be123c;
  color: #be123c;
}

.remove-video-file {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  box-shadow: none;
  color: #be123c;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 10px;
  width: auto;
}

.remove-video-file:disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.upload-action-panel {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.upload-page #upload-button:disabled {
  background: #e2e8f0;
  color: #64748b;
  opacity: 1;
}

.upload-action-panel .status {
  background: transparent;
  border-left: 3px solid #bfdbfe;
  border-radius: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  min-height: auto;
  padding: 0 0 0 10px;
  white-space: pre-line;
}

.profile-panel h2 {
  margin-top: 0;
}

.profile-panel button {
  margin-top: 12px;
}

.guide-panel {
  border: 1px solid #d9dee7;
  border-radius: 8px;
  margin: 0 0 18px;
  padding: 0;
  background: #fff;
}

.guide-panel summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef4ff;
  color: #174ea6;
}

.guide-panel[open] summary {
  border-bottom: 1px solid #d9dee7;
  border-radius: 8px 8px 0 0;
}

.guide-panel > div {
  padding: 12px 14px;
}

.guide-panel h3 {
  font-size: 17px;
  margin: 8px 0;
}

.guide-panel h4 {
  font-size: 14px;
  margin: 0 0 8px;
}

.dimension-guide {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #f8fafc;
}

.dimension-guide h4 {
  font-size: 13px;
  margin: 0 0 8px;
}

.dimension-guide .guide-section {
  margin-top: 8px;
  background: #fff;
}

.guide-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0;
}

.guide-section {
  border-left: 3px solid #1668dc;
  background: #f8fafc;
  padding: 10px 12px;
}

.guide-section.warning {
  border-left-color: #c2410c;
  background: #fff7ed;
}

.guide-section.compact {
  margin: 10px 0;
}

.guide-section ul {
  margin: 0;
  padding-left: 18px;
}

.guide-section li,
.guide-section dd,
.guide-section p {
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  margin: 4px 0;
}

.guide-section dl {
  margin: 0;
}

.guide-section dt {
  color: #17202a;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.guide-section dd {
  margin-left: 0;
}

.guide-fields {
  overflow-wrap: anywhere;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.toolbar button {
  max-width: 180px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

video {
  width: 100%;
  max-height: 420px;
  background: #111827;
  border-radius: 8px;
}

@media (min-width: 1100px) {
  .admin-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .table-wrap {
    max-height: 68vh;
    overflow: auto;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-bottom: 1px solid #e2e8f0;
    border-right: 0;
    min-height: auto;
    padding: 12px;
    position: static;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-content {
    padding: 16px 12px 28px;
  }
}

@media (max-width: 720px) {
  main {
    padding: 14px;
  }

  .admin-page main {
    padding: 0;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .toolbar {
    display: grid;
  }

  .section-title-row {
    align-items: start;
    display: grid;
  }

  .app-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .upload-table-toolbar,
  .worker-create-row,
  .collection-policy-grid,
  .task-control-picker {
    grid-template-columns: 1fr;
  }

  .app-header .upload-session-status {
    justify-self: end;
    margin-left: auto;
    text-align: right;
  }

  .upload-page .app-header .upload-session-status {
    margin: 0 auto;
    text-align: left;
  }

  .upload-workflow {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .task-switch {
    grid-template-columns: 1fr;
  }

  .requirements-list,
  .prelogin-info-card .requirements-list,
  .camera-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .upload-page header {
    padding: 12px;
    position: static;
  }

  .upload-fixed-guide {
    padding: 6px 10px;
  }

  .upload-page main {
    padding: 10px 10px 96px;
  }

  .upload-step,
  .requirements-panel {
    padding: 12px;
  }

  .upload-page h2 {
    font-size: 17px;
    margin: 16px 0 8px;
  }

  .upload-section h2,
  .admin-page h2 {
    margin-top: 0;
  }

  .upload-page label {
    margin-top: 10px;
  }

  .requirements-list {
    gap: 8px;
  }

  .requirements-list > div,
  .camera-guide,
  .dimension-guide,
  .guide-section {
    padding: 10px;
  }

  .guide-panel {
    margin-bottom: 14px;
  }

  .upload-session-status {
    gap: 8px;
    min-height: 44px;
    padding: 6px 8px;
  }

  .session-name-row > strong {
    font-size: 15px;
  }

  .session-meta {
    font-size: 10px;
    gap: 2px 8px;
  }

  .upload-page .session-count {
    min-height: 30px;
    padding: 6px 9px;
  }

  .selected-video-item {
    grid-template-columns: 1fr;
  }

  .remove-video-file {
    width: 100%;
  }
}
