/* iNat TrailCam Local V14 — review workflow controls only.
   This layer does not change the video player, OCR, screenshots or saving UI. */

.player-controls-layout-v14 {
  display: grid;
  gap: .58rem;
  margin: 0 0 var(--space-lg, 1rem);
  padding: 0;
}

.player-controls-layout-v14 > section + section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.v14-workflow-block {
  min-width: 0;
  border: 1px solid #d8ddd3;
  border-radius: 12px;
  padding: .72rem .78rem;
  background: #faf9f5;
}

.v14-phase-one {
  border: 2px solid rgba(49, 92, 61, .64);
  background: linear-gradient(180deg, #fff 0%, #fbfcf8 100%);
  box-shadow: 0 4px 12px rgba(35, 68, 45, .07);
}

.v14-phase-two {
  background: #f8f7f2;
}

.v14-phase-title {
  margin: 0 0 .5rem !important;
  color: #607067;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .065em;
  line-height: 1.15;
  text-transform: uppercase;
}

.v14-fine-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .42rem;
  margin-bottom: .5rem;
}

.player-controls-layout-v14 button {
  min-height: 39px;
  border-radius: 9px;
  padding: .52rem .7rem;
  box-shadow: none;
  white-space: nowrap;
}

.v14-fine-controls .compact-control {
  width: 100%;
  min-width: 0;
  color: var(--green-strong);
  background: #fffef9;
  border: 1px solid #c9cdbc;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.05;
}

.v14-fine-controls .compact-control:hover:not(:disabled) {
  background: #eef3e9;
  border-color: rgba(49, 92, 61, .48);
}

.v14-capture-actions {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(160px, 1fr) 44px;
  gap: .46rem;
  align-items: stretch;
}

.v14-capture-primary {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(33, 82, 49, .14) !important;
}

.v14-new-observation {
  width: 100%;
  color: #435148;
  background: #fffef9;
  border: 1px solid #bdc6bd;
  font-weight: 800;
}

.v14-icon-button {
  width: 44px;
  min-width: 44px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.v14-clear-captures {
  color: #a33838;
  background: #fffdf9;
  border: 1px solid #d8b0ac;
}

.v14-clear-captures:hover:not(:disabled) {
  color: #fff;
  background: #a6432b;
  border-color: #a6432b;
}

.v14-capture-status {
  margin: .42rem 0 0;
  color: #6a756e;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}

.v14-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .34rem;
  color: #667169;
  font-size: .77rem;
  line-height: 1.2;
}

.v14-progress-header strong {
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.v14-progress-track {
  position: relative;
  width: 100%;
  height: 5px;
  margin-bottom: .62rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e3da;
}

.v14-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .18s ease;
}

.v14-decision-controls,
.v14-control-legends {
  display: grid;
  grid-template-columns: minmax(100px, auto) 44px 44px minmax(180px, 1fr) 44px;
  gap: .42rem;
  align-items: center;
}

.v14-previous-button {
  min-width: 100px;
  color: var(--green-strong);
  background: #fffef9;
  border: 1px solid #c9cdbc;
  font-weight: 850;
}

.v14-ignore-button {
  color: #b32929;
  background: #fffdf9;
  border: 1px solid #cf655d;
  font-weight: 950;
}

.v14-ignore-button:hover:not(:disabled) {
  color: #fff;
  background: #b83b35;
  border-color: #b83b35;
}

.v14-reviewed-button {
  color: #27633c;
  background: #fffdf9;
  border: 1px solid #57906a;
  font-weight: 950;
}

.v14-reviewed-button:hover:not(:disabled) {
  color: #fff;
  background: #315c3d;
  border-color: #315c3d;
}

.v14-next-button {
  width: 100%;
  min-width: 180px;
  background: var(--green);
  color: #fff;
  font-size: .91rem;
  font-weight: 950;
  letter-spacing: .005em;
  box-shadow: 0 5px 12px rgba(33, 82, 49, .14) !important;
}

.v14-unreviewed-button {
  color: #435148;
  background: #fffef9;
  border: 1px solid #bdc6bd;
}

.v14-control-legends {
  margin-top: .28rem;
  color: #8a8e87;
  font-size: .58rem;
  line-height: 1.1;
  text-align: center;
}

.v14-control-legends span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v14-phase-three {
  display: flex;
  justify-content: flex-end;
  padding: .03rem 0 0;
}

.player-controls-layout-v14 .v14-finish-subfolder {
  min-width: 220px;
  min-height: 38px;
  border-radius: 9px;
  background: #244a30;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
}

@media (max-width: 1250px) {
  .v14-decision-controls,
  .v14-control-legends {
    grid-template-columns: minmax(95px, auto) 42px 42px minmax(150px, 1fr) 42px;
    gap: .35rem;
  }

  .v14-icon-button {
    width: 42px;
    min-width: 42px;
  }
}

@media (max-width: 820px) {
  .v14-capture-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }

  .v14-decision-controls,
  .v14-control-legends {
    grid-template-columns: minmax(0, .85fr) 44px 44px minmax(0, 1.5fr) 44px;
  }
}

@media (max-width: 660px) {
  .v14-workflow-block {
    padding: .65rem;
  }

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

  .v14-capture-actions {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .v14-capture-primary {
    grid-column: 1 / -1;
  }

  .v14-new-observation {
    min-width: 0;
  }

  .v14-decision-controls {
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px;
  }

  .v14-previous-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .v14-control-legends {
    display: none;
  }

  .v14-phase-three {
    justify-content: stretch;
  }

  .player-controls-layout-v14 .v14-finish-subfolder {
    width: 100%;
    min-width: 0;
  }
}
