/**
 * Premium enterprise UX polish — Linear / Sheets / Notion feel.
 * Animations: opacity + transform only, ≤200ms. Respects prefers-reduced-motion.
 */

:root {
  --ux-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ux-fast: 120ms;
  --ux-base: 160ms;
  --ux-slow: 200ms;
  --ux-focus-ring: color-mix(in srgb, var(--primary) 28%, transparent);
  --skeleton-base: color-mix(in srgb, var(--line) 70%, var(--panel));
  --skeleton-shine: color-mix(in srgb, var(--panel) 85%, #ffffff);
}

/* ── Content reveal ─────────────────────────────────────────── */
.app-shell.is-content-pending #appContent,
.app-shell.is-content-pending #operationalSheetsSection {
  opacity: 0;
  transform: translateY(4px);
}

.app-shell.is-content-ready #appContent,
.app-shell.is-content-ready #operationalSheetsSection {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--ux-slow) var(--ux-ease), transform var(--ux-slow) var(--ux-ease);
}

.gt-table-scroller {
  position: relative;
}

.gt-table-scroller.is-skeleton .main-table,
.gt-table-scroller.is-skeleton .empty-state {
  opacity: 0;
  pointer-events: none;
}

/* ── Skeleton loaders ───────────────────────────────────────── */
.gt-table-skeleton {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 12px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  pointer-events: none;
}

.gt-table-skeleton[hidden] {
  display: none !important;
}

.gt-skeleton-row {
  display: grid;
  grid-template-columns: 72px 1.2fr 1fr 0.8fr 0.7fr 96px 96px;
  gap: 10px;
  align-items: center;
}

.gt-skeleton-cell {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-shine) 45%,
    var(--skeleton-base) 90%
  );
  background-size: 200% 100%;
  animation: ux-shimmer 1.2s var(--ux-ease) infinite;
}

.gt-skeleton-cell.is-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  justify-self: start;
}

@keyframes ux-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Overlay / modal system ─────────────────────────────────── */
.ux-overlay {
  opacity: 0;
  transition: opacity var(--ux-base) var(--ux-ease);
}

.ux-overlay.is-open {
  opacity: 1;
}

.ux-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.ux-overlay .gt-photo-crop-dialog,
.ux-overlay .photo-capture-dialog,
.ux-overlay .gt-photo-viewer-dialog,
.ux-overlay .photo-viewer-dialog {
  transform: translateY(8px) scale(0.98);
  opacity: 0.96;
  transition:
    transform var(--ux-base) var(--ux-ease),
    opacity var(--ux-base) var(--ux-ease);
  will-change: transform, opacity;
}

.ux-overlay.is-open .gt-photo-crop-dialog,
.ux-overlay.is-open .photo-capture-dialog,
.ux-overlay.is-open .gt-photo-viewer-dialog,
.ux-overlay.is-open .photo-viewer-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ux-overlay.is-leaving .gt-photo-crop-dialog,
.ux-overlay.is-leaving .photo-capture-dialog,
.ux-overlay.is-leaving .gt-photo-viewer-dialog,
.ux-overlay.is-leaving .photo-viewer-dialog {
  transform: translateY(6px) scale(0.985);
  opacity: 0;
}

.gt-photo-crop-backdrop,
.photo-capture-backdrop,
.gt-photo-viewer-backdrop,
.photo-viewer-backdrop {
  transition: opacity var(--ux-base) var(--ux-ease);
}

/* Soften dialog elevation */
.gt-photo-crop-dialog,
.photo-capture-dialog,
.gt-photo-viewer-dialog {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18) !important;
}

/* ── Table editing polish ───────────────────────────────────── */
.pqt-input,
.remarks-input,
.summary-select,
.vm-photo-box button {
  transition:
    border-color var(--ux-fast) var(--ux-ease),
    box-shadow var(--ux-fast) var(--ux-ease),
    background var(--ux-fast) var(--ux-ease),
    opacity var(--ux-fast) var(--ux-ease);
}

.pqt-input:focus,
.remarks-input:focus,
.summary-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--ux-focus-ring);
}

.pqt-input-cell:focus-within,
.remarks-input-cell:focus-within {
  background: color-mix(in srgb, var(--primary) 4%, var(--panel));
  transition: background var(--ux-fast) var(--ux-ease);
}

.main-table tbody tr {
  transition: background var(--ux-fast) var(--ux-ease);
}

.main-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary) 3%, var(--panel));
}

/* ── Upload progress ────────────────────────────────────────── */
.vm-photo-upload-status {
  flex-direction: column;
  gap: 4px;
  animation: ux-fade-up var(--ux-fast) var(--ux-ease);
}

.vm-photo-upload-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.vm-photo-upload-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.vm-photo-upload-bar-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform: translateX(-120%);
  animation: ux-indeterminate 0.9s var(--ux-ease) infinite;
  will-change: transform;
}

@keyframes ux-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@keyframes ux-fade-up {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.vm-photo-box.is-busy::after {
  background: rgba(255, 255, 255, 0.2);
  transition: opacity var(--ux-fast) var(--ux-ease);
}

/* ── Loader (lighter) ───────────────────────────────────────── */
.loader {
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--ux-base) var(--ux-ease);
  pointer-events: none;
}

.loader.active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.loader-spinner {
  width: 36px;
  height: 36px;
  border-width: 3px;
  animation: spin 0.75s linear infinite;
}

.loader-panel,
.loader-progress-wrap,
.loader-progress-label,
.loader-progress-track,
.loader-progress-fill,
.loader-progress-pct {
  width: auto;
  height: auto;
  border: 0;
  animation: none;
  transform: none;
}

/* ── Cards / chrome: less visual weight ─────────────────────── */
.section-card,
.table-card,
.upload-card,
.data-input-card,
.history-card {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.primary-btn {
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 22%, transparent);
}

.column-filter-menu {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* ── Save badge subtle pulse while saving ───────────────────── */
.page-info.is-saving {
  opacity: 0.72;
  transition: opacity var(--ux-fast) var(--ux-ease);
}

/* ── Photo upload: softer, less rigid ───────────────────────── */
.vm-photo-box {
  transition:
    opacity var(--ux-base) var(--ux-ease),
    filter var(--ux-base) var(--ux-ease);
}

.vm-photo-box.is-busy {
  opacity: 0.92;
  pointer-events: auto;
  filter: none;
}

.vm-photo-box.is-busy .vm-photo-pick-btn,
.vm-photo-box.is-busy .vm-photo-empty,
.vm-photo-box.is-busy .vm-photo-add,
.vm-photo-box.is-busy .vm-photo-clear-all {
  pointer-events: none;
  opacity: 0.55;
}

.vm-photo-box.is-busy::after {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(0.5px);
  transition: opacity var(--ux-base) var(--ux-ease);
}

.vm-photo-box.is-preparing {
  opacity: 1;
  pointer-events: auto;
}

.vm-photo-box.is-preparing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08),
    rgba(196, 30, 58, 0.1),
    rgba(255, 255, 255, 0.08)
  );
  background-size: 200% 100%;
  animation: ux-photo-shimmer 1.1s var(--ux-ease) infinite;
  pointer-events: none;
  z-index: 2;
}

.vm-photo-box.is-preparing::before {
  content: "Preparing…";
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
  animation: ux-fade-up var(--ux-base) var(--ux-ease);
}

/* ── Data recovery banner (same screen Retry) ───────────────── */
.gt-data-recovery-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  background: color-mix(in srgb, var(--primary) 8%, var(--panel));
}

.gt-data-recovery-banner[hidden] {
  display: none !important;
}

.gt-data-recovery-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 220px;
}

.gt-data-recovery-copy strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.gt-data-recovery-copy span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.gt-data-recovery-banner .primary-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 12px;
}

@keyframes ux-photo-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.vm-photo-item {
  animation: ux-photo-pop var(--ux-base) var(--ux-ease);
  transform-origin: center;
}

@keyframes ux-photo-pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.vm-photo-item.is-queued .vm-photo-frame,
.vm-photo-item.is-uploading .vm-photo-frame {
  outline: 1.5px solid color-mix(in srgb, #0b7a4b 40%, transparent);
  outline-offset: 0;
  transition: outline-color var(--ux-base) var(--ux-ease), filter var(--ux-base) var(--ux-ease);
}

.vm-photo-item.is-uploading .vm-photo-img,
.vm-photo-item.is-uploading .vm-photo-video,
.vm-photo-item.is-queued .vm-photo-img,
.vm-photo-item.is-queued .vm-photo-video {
  filter: saturate(0.92);
}

.vm-photo-upload-status {
  border-radius: 8px !important;
  padding: 4px 7px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  transition:
    background var(--ux-base) var(--ux-ease),
    opacity var(--ux-base) var(--ux-ease),
    transform var(--ux-base) var(--ux-ease);
}

.vm-photo-upload-status.is-queued {
  background: rgba(30, 41, 59, 0.72) !important;
}

.vm-photo-upload-status.is-uploading,
.vm-photo-upload-status.is-uploaded {
  background: rgba(11, 122, 75, 0.78) !important;
}

.vm-photo-upload-status.is-failed {
  background: rgba(180, 35, 24, 0.82) !important;
}

.vm-photo-upload-bar {
  height: 2.5px !important;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22) !important;
}

.vm-photo-upload-bar-fill {
  width: 36% !important;
  background: #fff !important;
  animation: ux-indeterminate 1.05s var(--ux-ease) infinite !important;
}

.vm-photo-empty,
.vm-photo-add,
.vm-photo-pick-btn {
  transition:
    background var(--ux-fast) var(--ux-ease),
    border-color var(--ux-fast) var(--ux-ease),
    transform var(--ux-fast) var(--ux-ease),
    box-shadow var(--ux-fast) var(--ux-ease) !important;
}

.vm-photo-empty:active,
.vm-photo-add:active,
.vm-photo-pick-btn:active {
  transform: scale(0.97);
}

.vm-photo-remove {
  transition:
    opacity var(--ux-fast) var(--ux-ease),
    transform var(--ux-fast) var(--ux-ease),
    background var(--ux-fast) var(--ux-ease) !important;
}

.vm-photo-remove:active {
  transform: scale(0.9);
}

/* Crop / capture dialogs — lighter feel */
.gt-photo-crop-backdrop,
.photo-capture-backdrop {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(4px);
}

.gt-photo-crop-dialog,
.photo-capture-dialog {
  border-radius: 16px 16px 0 0 !important;
  overflow: hidden;
}

.gt-photo-crop-ratio,
.gt-photo-crop-actions .ghost-btn,
.gt-photo-crop-actions .primary-btn,
.photo-capture-actions .ghost-btn,
.photo-capture-actions .primary-btn {
  transition:
    background var(--ux-fast) var(--ux-ease),
    border-color var(--ux-fast) var(--ux-ease),
    color var(--ux-fast) var(--ux-ease),
    transform var(--ux-fast) var(--ux-ease),
    opacity var(--ux-fast) var(--ux-ease) !important;
}

.gt-photo-crop-ratio:active,
.gt-photo-crop-actions .ghost-btn:active,
.gt-photo-crop-actions .primary-btn:active,
.photo-capture-actions .ghost-btn:active,
.photo-capture-actions .primary-btn:active {
  transform: scale(0.97);
}

.gt-photo-crop-actions .primary-btn.is-working,
.gt-photo-crop-actions .primary-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (min-width: 520px) {
  .gt-photo-crop-dialog,
  .photo-capture-dialog {
    border-radius: 16px !important;
    margin: 16px auto !important;
    max-height: calc(100dvh - 32px) !important;
  }
}

/* ── Excel-dense GT table (readable, fills viewport) ─────────── */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  width: 100% !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th[data-key],
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table td {
  padding: 3px 5px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  border: 1px solid color-mix(in srgb, var(--line) 88%, #9ca3af) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th[data-key] {
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 4px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  line-height: 1.15 !important;
}

/* Column filter dropdowns must escape dense cell clipping */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table thead th.filter-open,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.filter-open,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.filter-open[data-key] {
  overflow: visible !important;
  z-index: 80 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.filter-open .column-filter,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table th.filter-open .th-content {
  overflow: visible !important;
}

[data-gt-theme="red-grey-white"] .column-filter-menu,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .column-filter-menu {
  z-index: 5000 !important;
  pointer-events: auto;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .th-content {
  gap: 2px !important;
  align-items: center !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .th-sort-label,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .th-sort-label span {
  font-size: 10px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: left !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .column-filter-toggle {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  padding: 0 !important;
  font-size: 8px !important;
  flex: 0 0 auto !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .column-resize-handle {
  width: 4px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tbody tr {
  height: auto !important;
  min-height: 0 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--primary) 3.5%, #fff) !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tr.operational-subtotal-row td {
  padding: 2px 5px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-table td,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .gt-subtotal-table .gt-grand-total-cell,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot .gt-grand-total-row td,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .main-table tfoot .gt-grand-total-cell {
  padding: 3px 5px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
  min-height: 0 !important;
}

/* Compact remarks — single line like Excel */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .remarks-input-cell {
  padding: 1px 3px !important;
  vertical-align: middle !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .remarks-input {
  min-height: 22px !important;
  height: 22px !important;
  padding: 1px 5px !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .remarks-audit-meta {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .pqt-input,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .summary-select {
  min-height: 22px !important;
  height: 22px !important;
  padding: 1px 4px !important;
  font-size: 10px !important;
  border-radius: 3px !important;
}

/* Tiny photo thumbs — main row-height saver */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-cell {
  padding: 1px 3px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-box,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-gallery {
  gap: 3px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-item:not(.vm-photo-item--link) {
  width: 24px !important;
  gap: 0 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-frame {
  width: 22px !important;
  height: 22px !important;
  border-radius: 3px !important;
}

/* Hide "Photo 1/2/3" labels under thumbs — click the thumb instead */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-item:not(.vm-photo-item--link) .vm-photo-tool-view {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-cell,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-cell * {
  white-space: normal !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-remove {
  width: 11px !important;
  height: 11px !important;
  font-size: 9px !important;
  top: -2px !important;
  right: -2px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-clear-all {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-empty,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-add,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-pick-btn {
  min-height: 22px !important;
  min-width: 22px !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  border-radius: 3px !important;
  gap: 0 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-empty-label,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-add-label {
  display: none !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-empty-icon {
  font-size: 11px !important;
  line-height: 1 !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .vm-photo-item--link .vm-photo-tool-view {
  display: inline-flex !important;
  min-height: 20px !important;
  padding: 1px 5px !important;
  font-size: 9px !important;
  border-radius: 3px !important;
}

/* Compact upload / action chips */
[data-gt-theme="red-grey-white"] #operationalSheetsSection .photo-upload-btn,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .photo-upload-btn-add {
  min-height: 22px !important;
  padding: 1px 6px !important;
  font-size: 9px !important;
  border-radius: 3px !important;
  gap: 2px !important;
}

[data-gt-theme="red-grey-white"] #operationalSheetsSection .photo-upload-icon,
[data-gt-theme="red-grey-white"] #operationalSheetsSection .photo-upload-icon svg {
  width: 11px !important;
  height: 11px !important;
}

[data-gt-theme="red-grey-white"] body.gt-panel-table #gtFiltersCard {
  padding: 4px 6px !important;
}

[data-gt-theme="red-grey-white"] body.gt-panel-table #gtTablePagination {
  padding: 2px 6px !important;
  min-height: 0 !important;
}

[data-gt-theme="red-grey-white"] body.gt-panel-table #gtTablePagination button {
  min-height: 24px !important;
  padding: 2px 8px !important;
  font-size: 10px !important;
}

[data-gt-theme="red-grey-white"] body.gt-panel-table #gtTablePagination span {
  font-size: 10px !important;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --ux-fast: 1ms;
    --ux-base: 1ms;
    --ux-slow: 1ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .gt-skeleton-cell,
  .vm-photo-upload-bar-fill,
  .vm-photo-box.is-preparing::after,
  .vm-photo-item {
    animation: none !important;
  }

  .app-shell.is-content-pending #appContent,
  .app-shell.is-content-pending #operationalSheetsSection,
  .ux-overlay .gt-photo-crop-dialog,
  .ux-overlay .photo-capture-dialog,
  .ux-overlay .gt-photo-viewer-dialog {
    transform: none !important;
  }
}
