.epjs-plus-active {
  overflow: hidden;
}

/* Cinematic camera workflow */
.epjs-plus-shell[data-phase="capture"] {
  background: #000000;
  color: #f8f4eb;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-main,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-stage,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
  background: #000000;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stage {
  border: 0;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap {
  background:
    radial-gradient(circle at 50% 44%, rgba(24, 31, 40, 0.86), rgba(2, 3, 5, 0.96) 68%),
    #000000;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap video,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap .epjs-plus-preview {
  object-fit: cover;
  background: #030506;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label {
  top: 0;
  left: 0;
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 0 clamp(18px, 5vw, 68px);
  border-radius: 0;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.94) 72%, rgba(0, 0, 0, 0.62) 100%);
  transform: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.84);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label::before {
  content: "";
  width: 2px;
  height: clamp(34px, 5vw, 52px);
  grid-column: 2;
  grid-row: 1;
  background: #d2a153;
  box-shadow: 0 0 16px rgba(210, 161, 83, 0.56);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: #f8f8f6 !important;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.09em;
  text-align: right;
  white-space: nowrap;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  display: block;
  color: #f8f8f6;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.09em;
  text-align: left;
  white-space: nowrap;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-live-dot {
  display: none;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue {
  gap: 18px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue small {
  color: #d2a153;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 700;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue strong {
  color: #ffffff;
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 400;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue span {
  color: #ffffff;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 400;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue span::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: min(210px, 42vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, #d2a153 18%, #d2a153 82%, transparent);
  transform: translateX(-50%);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar {
  min-height: 142px;
  padding: 22px clamp(18px, 5vw, 56px) 18px;
  background: #000000;
  color: #f8f4eb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn.dark {
  min-height: 58px;
  border: 2px solid #d2a153;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: #f8f4eb;
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn:hover {
  background: rgba(210, 161, 83, 0.12);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture {
  width: clamp(72px, 14vw, 96px);
  height: clamp(72px, 14vw, 96px);
  border: 4px solid #d2a153;
  background:
    radial-gradient(circle at 50% 40%, #ffffff, #f4efe6 70%, #e0d2bd);
  box-shadow:
    inset 0 0 0 6px #050505,
    inset 0 0 0 11px #f8f4eb,
    0 0 0 1px rgba(210, 161, 83, 0.44),
    0 12px 28px rgba(0, 0, 0, 0.45);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture span {
  width: 32px;
  height: 24px;
  border-color: #050505;
  border-width: 4px;
  border-radius: 7px;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture span::before {
  width: 9px;
  height: 9px;
  border-color: #050505;
  border-width: 4px;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture span::after {
  left: 6px;
  top: -9px;
  width: 12px;
  height: 7px;
  border-color: #050505;
  border-width: 4px;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-queue-btn {
  min-height: 58px;
  border-color: #d2a153 !important;
  background: linear-gradient(135deg, #f2d990, #b88436) !important;
  color: #17130f !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-process-btn,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process.primary {
  border-color: #e3c26f !important;
  background: linear-gradient(135deg, #f2d990, #c28c37) !important;
  color: #111111 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-badge {
  background: rgba(17, 17, 17, 0.16);
  color: inherit;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
  padding: 0 clamp(18px, 5vw, 56px) 26px;
  border: 0;
  background: #000000;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools {
  padding: 0;
  border: 0;
  background: #000000;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-toolgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.9fr);
  gap: clamp(12px, 3vw, 26px);
  align-items: end;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper-control {
  gap: 8px;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper-control label {
  color: #d2a153;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper {
  grid-template-columns: 46px minmax(64px, 1fr) 46px;
  border: 1px solid rgba(210, 161, 83, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper button {
  min-height: 48px;
  color: #ffffff;
  font-size: 24px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper output {
  border-color: rgba(210, 161, 83, 0.46);
  color: #ffffff;
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process {
  min-height: 50px;
  border-radius: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-status {
  display: none;
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap {
    aspect-ratio: 9 / 13.2;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label {
    min-height: 92px;
    gap: 18px;
    padding-inline: 18px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p {
    font-size: clamp(24px, 7.4vw, 34px);
    letter-spacing: 0.08em;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar {
    position: relative;
    min-height: 118px;
    padding: 18px 28px 16px;
    gap: 18px;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="no"] .epjs-plus-capturebar,
  .epjs-plus-shell[data-phase="capture"][data-preview="no"][data-has-queue="yes"] .epjs-plus-capturebar {
    grid-template-columns: minmax(88px, 1fr) 78px minmax(88px, 1fr);
    column-gap: 22px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn {
    min-height: 50px;
    padding-inline: 10px;
    font-size: 16px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capture {
    width: 74px;
    height: 74px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
    padding: 0 28px 24px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-toolgrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(112px, 0.92fr);
    gap: 12px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper {
    grid-template-columns: 40px minmax(52px, 1fr) 40px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper button,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process {
    min-height: 45px;
  }
}

.epjs-plus-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  min-height: 100vh;
  background: #f7f4ee;
  color: #1d2530;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.epjs-plus-shell * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.epjs-plus-sidebar {
  width: 330px;
  flex: 0 0 330px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #ddd6ca;
  background: #fffaf2;
}

.epjs-plus-brand {
  min-height: 76px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e2d9cc;
}

.epjs-plus-brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  color: #171d26;
}

.epjs-plus-brand p {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: #70665b;
}

.epjs-plus-search {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(86px, 1fr);
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #e8dfd2;
}

.epjs-plus-input,
.epjs-plus-select,
.epjs-plus-textarea {
  width: 100%;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2933;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.epjs-plus-input,
.epjs-plus-select {
  height: 42px;
  padding: 0 12px;
  min-width: 0;
}

#epjsPlusSelectionFilter {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
}

.epjs-plus-selection-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #e8dfd2;
  background: #fffaf2;
}

.epjs-plus-textarea {
  min-height: 70px;
  resize: vertical;
  padding: 10px 12px;
}

.epjs-plus-input:focus,
.epjs-plus-select:focus,
.epjs-plus-textarea:focus {
  border-color: #a87435;
  box-shadow: 0 0 0 3px rgba(168, 116, 53, 0.18);
}

.epjs-plus-item-list {
  flex: 1;
  overflow: auto;
  padding: 8px;
}

.epjs-plus-selection-footer {
  border-top: 1px solid #e2d9cc;
  padding: 12px;
  background: #fffaf2;
}

.epjs-plus-selection-summary {
  margin-bottom: 10px;
  color: #4b4137;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.epjs-plus-selection-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.epjs-plus-selection-actions .epjs-plus-btn {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epjs-plus-pending-sync {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e1d6c4;
  border-radius: 8px;
  background: #fffdf8;
  color: #6f655a;
  font-size: 11px;
  font-weight: 850;
}

.epjs-plus-pending-sync.has-pending {
  border-color: #c6934e;
  background: #fff3d8;
  color: #5f421d;
}

.epjs-plus-pending-sync span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#epjsPlusSelectionCamera {
  grid-column: 1 / -1;
}

.epjs-plus-back-dashboard {
  width: 100%;
  margin-top: 8px;
  white-space: nowrap;
}

.epjs-plus-item {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
}

.epjs-plus-item-toggle {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 2px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.epjs-plus-item-copy {
  min-width: 0;
}

.epjs-plus-item-actions {
  display: grid;
  gap: 5px;
}

.epjs-plus-mini-btn {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #d7cdbc;
  border-radius: 7px;
  background: #ffffff;
  color: #26313f;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.epjs-plus-mini-btn:hover {
  border-color: #a87435;
  background: #fff7e8;
}

.epjs-plus-btn.danger,
.epjs-plus-mini-btn.danger {
  border-color: #cda3a9;
  background: #fff4f5;
  color: #7c2f3a;
}

.epjs-plus-btn.danger:hover,
.epjs-plus-mini-btn.danger:hover {
  border-color: #a65d68;
  background: #f8e3e6;
}

.epjs-plus-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #cbb894;
  border-radius: 7px;
  background: #fffdf8;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.epjs-plus-check.is-checked {
  border-color: #a87435;
  background: #a87435;
}

.epjs-plus-item:hover {
  background: #f2eadc;
}

.epjs-plus-item.is-selected {
  border-color: #a87435;
  background: #fff4dd;
}

.epjs-plus-thumb {
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e8dfd2;
  color: #7d715f;
  font-size: 18px;
  font-weight: 850;
}

.epjs-plus-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epjs-plus-item-code {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  color: #17202b;
}

.epjs-plus-item-meta {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #675d52;
  text-transform: uppercase;
}

.epjs-plus-count {
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #263a52;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.epjs-plus-main {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.epjs-plus-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #111922;
}

.epjs-plus-topbar {
  min-height: 64px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fffaf2;
  border-bottom: 1px solid #e2d9cc;
}

.epjs-plus-title {
  min-width: 0;
}

.epjs-plus-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  color: #17202b;
}

.epjs-plus-title p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #756b60;
  font-weight: 700;
}

.epjs-plus-actions,
.epjs-plus-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.epjs-plus-btn {
  min-height: 38px;
  border: 1px solid #d7cdbc;
  border-radius: 8px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  color: #1d2530;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.epjs-plus-btn:hover {
  background: #f4eadc;
}

.epjs-plus-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #e9dfd0;
  border-color: #cbb894;
  color: #6f6355;
}

.epjs-plus-btn.primary {
  border-color: #95692f;
  background: #a87435;
  color: #ffffff;
}

.epjs-plus-btn.primary:hover {
  background: #92612d;
}

.epjs-plus-btn.dark {
  border-color: #263a52;
  background: #263a52;
  color: #ffffff;
}

.epjs-plus-shell[data-phase="capture"] #epjsPlusCamera {
  display: none;
}

.epjs-plus-camera-wrap {
  position: relative;
  flex: 1;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #273445 0, #111922 58%, #0b1016 100%);
}

.epjs-plus-camera-wrap .epjs-plus-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
}

.epjs-plus-camera-wrap .epjs-plus-actions .epjs-plus-btn,
.epjs-plus-camera-wrap .epjs-plus-actions .epjs-plus-btn.dark {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(15, 23, 32, 0.28);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.epjs-plus-camera-wrap .epjs-plus-actions .epjs-plus-btn:hover,
.epjs-plus-camera-wrap .epjs-plus-actions .epjs-plus-btn.dark:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.epjs-plus-camera-label {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 5;
  width: min(90%, 620px);
  padding: 10px 18px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.7), rgba(5, 8, 12, 0.22));
  text-align: center;
  color: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.epjs-plus-camera-label h3 {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.1;
  font-weight: 950;
  color: #ffffff !important;
  letter-spacing: 0.08em;
}

.epjs-plus-camera-label p {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.epjs-plus-live-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: #f0c76d;
  box-shadow: 0 0 0 0 rgba(240, 199, 109, 0.75);
  animation: epjs-live-pulse 1.25s ease-in-out infinite;
}

@keyframes epjs-live-pulse {
  0%, 100% {
    opacity: 0.48;
    box-shadow: 0 0 0 0 rgba(240, 199, 109, 0.56);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 0 9px rgba(240, 199, 109, 0);
  }
}

.epjs-plus-camera-cue {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(7, 10, 14, 0.18), rgba(7, 10, 14, 0.58));
  color: #ffffff;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.epjs-plus-camera-cue.is-visible {
  opacity: 1;
  transform: scale(1);
}

.epjs-plus-camera-cue small {
  color: #d2a153;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.epjs-plus-camera-cue strong {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.epjs-plus-camera-cue span {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #f8f4eb;
  font-size: clamp(20px, 3.2vw, 32px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.epjs-plus-camera-cue span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f0c76d;
  box-shadow: 0 0 18px rgba(240, 199, 109, 0.9);
}

.epjs-plus-camera-wrap video,
.epjs-plus-camera-wrap .epjs-plus-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101820;
}

.epjs-plus-preview {
  display: none;
}

.epjs-plus-crop-overlay {
  position: absolute;
  z-index: 7;
  box-sizing: border-box;
  border: 2px solid #f0c76d;
  box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.55);
  touch-action: none;
  pointer-events: none;
}

.epjs-plus-crop-overlay::before,
.epjs-plus-crop-overlay::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.epjs-plus-crop-overlay::before {
  inset: 33.333% 0;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.epjs-plus-crop-overlay::after {
  inset: 0 33.333%;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.epjs-plus-crop-overlay button {
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: none;
}

.epjs-plus-crop-overlay button::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: solid #ffffff;
}

.epjs-plus-crop-overlay [data-crop-handle="nw"] { left: -16px; top: -16px; }
.epjs-plus-crop-overlay [data-crop-handle="ne"] { right: -16px; top: -16px; }
.epjs-plus-crop-overlay [data-crop-handle="sw"] { left: -16px; bottom: -16px; }
.epjs-plus-crop-overlay [data-crop-handle="se"] { right: -16px; bottom: -16px; }
.epjs-plus-crop-overlay [data-crop-handle="nw"]::after { border-width: 3px 0 0 3px; }
.epjs-plus-crop-overlay [data-crop-handle="ne"]::after { border-width: 3px 3px 0 0; }
.epjs-plus-crop-overlay [data-crop-handle="sw"]::after { border-width: 0 0 3px 3px; }
.epjs-plus-crop-overlay [data-crop-handle="se"]::after { border-width: 0 3px 3px 0; }

.epjs-plus-empty-camera {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  color: #d8e0e8;
}

.epjs-plus-empty-camera strong {
  font-size: 22px;
}

.epjs-plus-reticle {
  position: absolute;
  width: 68px;
  height: 68px;
  border: 2px solid #f5d486;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
  opacity: 0;
}

.epjs-plus-reticle.is-visible {
  animation: epjs-reticle 0.8s ease-out;
}

@keyframes epjs-reticle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.epjs-plus-capturebar {
  min-height: 84px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  gap: 8px;
  background: #0f1720;
  color: #ffffff;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] .epjs-plus-capturebar {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.08), transparent 46%),
    #0f1720;
}

.epjs-plus-capturebar .epjs-plus-btn,
.epjs-plus-capturebar .epjs-plus-btn.primary,
.epjs-plus-capturebar .epjs-plus-btn.dark {
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
}

.epjs-plus-capturebar .epjs-plus-btn:hover,
.epjs-plus-capturebar .epjs-plus-btn.primary:hover,
.epjs-plus-capturebar .epjs-plus-btn.dark:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.epjs-plus-capturebar .epjs-plus-btn:disabled {
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
}

.epjs-plus-queue-btn {
  border-color: rgba(210, 161, 83, 0.92) !important;
  background: rgba(168, 116, 53, 0.22) !important;
}

.epjs-plus-process-btn,
.epjs-plus-capturebar .epjs-plus-process-btn.primary,
.epjs-plus-tool-process.primary {
  border-color: #f0c76d !important;
  background: linear-gradient(135deg, #f2d990, #b88436) !important;
  color: #17130f !important;
  box-shadow: 0 10px 24px rgba(184, 132, 54, 0.22);
}

.epjs-plus-process-btn:hover,
.epjs-plus-tool-process.primary:hover {
  border-color: #ffe4a4 !important;
  background: linear-gradient(135deg, #ffe9aa, #c89545) !important;
}

.epjs-plus-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #d2a153;
  color: #111922;
  font-size: 10px;
  font-weight: 950;
}

.epjs-plus-capture {
  width: 72px;
  height: 72px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
}

.epjs-plus-capture:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.epjs-plus-retake-btn span {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.epjs-plus-retake-btn span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.epjs-plus-capture span {
  position: relative;
  display: block;
  width: 34px;
  height: 25px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: transparent;
}

.epjs-plus-capture span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.epjs-plus-capture span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: -8px;
  width: 12px;
  height: 6px;
  border: 3px solid #ffffff;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] .epjs-plus-capturebar {
  grid-template-columns: minmax(76px, 1fr) 84px minmax(76px, 1fr);
  min-height: 92px;
  padding-inline: 20px;
  column-gap: 16px;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusUsePreview,
.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusRetake {
  display: none;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"][data-has-queue="no"] #epjsPlusReview {
  display: none;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusReview {
  display: none;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusCaptureExit {
  grid-column: 1;
  grid-row: 1;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusCapture {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusNext {
  grid-column: 3;
  grid-row: 1;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusCaptureExit,
.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusNext {
  width: min(100%, 116px);
  justify-self: center;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"][data-has-queue="yes"] .epjs-plus-capturebar {
  grid-template-columns: minmax(76px, 1fr) 84px minmax(76px, 1fr);
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusCapture {
  display: none;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] .epjs-plus-capturebar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 8px;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusUsePreview {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 44px;
  font-size: 13px;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusCaptureExit {
  grid-column: 1;
  grid-row: 2;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusRetake {
  grid-column: 2;
  grid-row: 2;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusReview {
  grid-column: 3;
  grid-row: 2;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusNext {
  display: none;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
}

.epjs-plus-shell[data-phase="review"] #epjsPlusCapture,
.epjs-plus-shell[data-phase="review"] #epjsPlusRetake,
.epjs-plus-shell[data-phase="review"] #epjsPlusReview {
  display: none;
}

.epjs-plus-shell[data-phase="review"][data-review-batch="no"] #epjsPlusNext {
  display: none;
}

.epjs-plus-sidepanel {
  min-width: 0;
  overflow: auto;
  border-left: 1px solid #ddd6ca;
  background: #fffaf2;
  padding: 14px;
}

.epjs-plus-section {
  padding: 14px 0;
  border-bottom: 1px solid #e4dacd;
}

.epjs-plus-section:first-child {
  padding-top: 0;
}

.epjs-plus-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  color: #4c4033;
  text-transform: uppercase;
}

.epjs-plus-pending-section {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid #e2c895;
  border-radius: 8px;
  background: #fff3d8;
}

.epjs-plus-pending-section p {
  margin: 0 0 10px;
  color: #5f421d;
  font-size: 12px;
  font-weight: 850;
}

.epjs-plus-pending-section .epjs-plus-btn {
  width: 100%;
  min-height: 34px;
  white-space: nowrap;
}

.epjs-plus-control {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.epjs-plus-control label {
  font-size: 12px;
  font-weight: 800;
  color: #615548;
}

.epjs-plus-range {
  width: 100%;
  accent-color: #a87435;
}

.epjs-plus-camera-toolgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.epjs-plus-stepper-control {
  margin-bottom: 0;
}

.epjs-plus-stepper {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(54px, 1fr) 34px;
  overflow: hidden;
  border: 1px solid #cbb894;
  border-radius: 999px;
  background: #fffdf8;
}

.epjs-plus-stepper button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #17202b;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.epjs-plus-stepper button:disabled {
  cursor: not-allowed;
  color: #a89d8d;
}

.epjs-plus-stepper output {
  min-width: 0;
  display: grid;
  place-items: center;
  border-left: 1px solid #e1d6c4;
  border-right: 1px solid #e1d6c4;
  color: #17202b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.epjs-plus-tool-process {
  display: none;
  min-height: 36px;
  border-radius: 999px;
  white-space: nowrap;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"][data-has-queue="yes"] .epjs-plus-tool-process {
  display: inline-flex;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-pending-section {
  display: none;
}

.epjs-plus-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.epjs-plus-filter {
  min-height: 54px;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

.epjs-plus-filter.is-selected {
  border-color: #a87435;
  box-shadow: 0 0 0 3px rgba(168, 116, 53, 0.16);
}

.epjs-plus-filter span {
  display: block;
  height: 32px;
  background: linear-gradient(135deg, #ead7a6, #fffaf2 45%, #4e6680);
}

.epjs-plus-filter small {
  display: block;
  padding-top: 4px;
  font-size: 9px;
  font-weight: 850;
  color: #564b40;
  text-align: center;
}

.epjs-plus-crop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.epjs-plus-crop {
  min-height: 42px;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  background: #ffffff;
  color: #4b4036;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.epjs-plus-crop.is-selected {
  border-color: #263a52;
  background: #263a52;
  color: #ffffff;
}

.epjs-plus-tagbox {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.epjs-plus-tag {
  border: 1px solid #d5c8b6;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
  color: #4b4036;
  cursor: pointer;
}

.epjs-plus-tag.is-selected {
  border-color: #263a52;
  background: #263a52;
  color: #ffffff;
}

.epjs-plus-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.epjs-plus-photo {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  overflow: hidden;
  background: #e8dfd2;
  cursor: pointer;
}

.is-pending-photo {
  outline: 2px solid rgba(198, 147, 78, 0.72);
  outline-offset: -2px;
}

.is-pending-photo::after {
  content: "PENDING";
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  max-width: calc(100% - 8px);
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.78);
  color: #fff8ea;
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.epjs-plus-thumb.is-pending-photo::after {
  left: 3px;
  bottom: 3px;
  padding: 2px 4px;
  font-size: 7px;
}

.epjs-plus-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.epjs-plus-photo.is-cover {
  border: 3px solid #a87435;
}

.epjs-plus-photo button {
  position: absolute;
  right: 4px;
  top: 4px;
  min-width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 32, 0.84);
  color: #ffffff;
  cursor: pointer;
}

.epjs-plus-similar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.epjs-plus-similar button {
  min-height: 118px;
  border: 1px solid #d8cfbf;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.epjs-plus-similar img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  display: block;
}

.epjs-plus-similar span {
  display: block;
  padding: 6px;
  font-size: 10px;
  font-weight: 850;
  color: #283342;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epjs-plus-status {
  min-height: 30px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #756b60;
}

.epjs-plus-hidden {
  display: none !important;
}

.epjs-plus-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 12, 9, 0.64);
}

.epjs-plus-modal.is-stacked {
  z-index: 10040;
}

.epjs-plus-modal-card {
  width: min(720px, 100%);
  max-height: min(760px, 92svh);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8cbb6;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(23, 19, 15, 0.28);
}

.epjs-plus-media-card {
  width: min(820px, 100%);
}

.epjs-plus-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.epjs-plus-modal-head h3 {
  margin: 0;
  color: #17130f;
  font-size: 19px;
  font-weight: 900;
}

.epjs-plus-modal-head p {
  margin: 4px 0 0;
  color: #756b60;
  font-size: 12px;
  font-weight: 750;
}

.epjs-plus-existing-results {
  min-height: 160px;
  max-height: 56svh;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 10px;
  padding: 2px;
}

.epjs-plus-existing-card {
  min-height: 176px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ddd1bd;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2933;
  cursor: pointer;
  text-align: left;
}

.epjs-plus-existing-card:hover {
  border-color: #a87435;
  box-shadow: 0 0 0 3px rgba(168, 116, 53, 0.14);
}

.epjs-plus-existing-card img {
  width: 100%;
  height: 116px;
  display: block;
  object-fit: cover;
  background: #e8dfd2;
}

.epjs-plus-existing-card span {
  display: block;
  padding: 8px;
}

.epjs-plus-existing-card strong,
.epjs-plus-existing-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epjs-plus-existing-card strong {
  color: #17202b;
  font-size: 12px;
  font-weight: 900;
}

.epjs-plus-existing-card small {
  margin-top: 3px;
  color: #756b60;
  font-size: 10px;
  font-weight: 750;
}

.epjs-plus-existing-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: #756b60;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.epjs-plus-media-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.epjs-plus-media-grid {
  min-height: 180px;
  max-height: 56svh;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 2px;
}

.epjs-plus-media-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd1bd;
  border-radius: 8px;
  background: #ffffff;
}

.epjs-plus-media-photo.is-cover {
  border-color: #a87435;
  box-shadow: 0 0 0 2px rgba(168, 116, 53, 0.2);
}

.epjs-plus-media-photo img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #e8dfd2;
}

.epjs-plus-media-photo div {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 6px;
  padding: 8px;
}

.epjs-plus-media-photo span {
  min-width: 0;
  color: #675d52;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epjs-plus-exit-card {
  max-width: 430px;
}

.epjs-plus-exit-actions {
  display: grid;
  gap: 8px;
}

.epjs-plus-shell[data-phase="select"] {
  justify-content: center;
  background: #f7f4ee;
}

.epjs-plus-shell[data-phase="select"] .epjs-plus-sidebar {
  width: min(100%, 760px);
  flex: 0 1 760px;
  border-right: 1px solid #ddd6ca;
  border-left: 1px solid #ddd6ca;
}

.epjs-plus-shell[data-phase="select"] .epjs-plus-main {
  display: none;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidebar,
.epjs-plus-shell[data-phase="review"] .epjs-plus-sidebar {
  display: none;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-main,
.epjs-plus-shell[data-phase="review"] .epjs-plus-main {
  width: 100%;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-edit-tools,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-tools {
  display: none;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
  align-self: stretch;
}

.epjs-storefront-plus {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: auto;
  background: #f7f4ee;
  color: #17202b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.epjs-storefront-plus header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2d9cc;
  background: rgba(255, 250, 242, 0.96);
  backdrop-filter: blur(14px);
}

.epjs-storefront-plus h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.epjs-storefront-plus .epjs-plus-input {
  max-width: 360px;
}

.epjs-store-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.epjs-store-card {
  min-height: 320px;
  background: #ffffff;
  border: 1px solid #e2d9cc;
  border-radius: 8px;
  overflow: hidden;
}

.epjs-store-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #e8dfd2;
}

.epjs-store-card div {
  padding: 12px;
}

.epjs-store-card h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.epjs-store-card p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #675c51;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .epjs-plus-shell {
    position: absolute;
    min-height: 100vh;
  }

  .epjs-plus-sidebar {
    width: 280px;
    flex-basis: 280px;
  }

  .epjs-plus-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .epjs-plus-sidepanel {
    border-left: 0;
    border-top: 1px solid #ddd6ca;
  }
}

@media (max-width: 760px) {
  .epjs-plus-shell {
    display: block;
    overflow: auto;
    min-height: 100svh;
  }

  .epjs-plus-sidebar,
  .epjs-plus-main {
    width: 100%;
    display: block;
  }

  .epjs-plus-sidebar {
    max-height: 265px;
    border-right: 0;
    border-bottom: 1px solid #ddd6ca;
  }

  .epjs-plus-brand {
    min-height: 62px;
    padding: 12px 14px;
  }

  .epjs-plus-search {
    grid-template-columns: minmax(0, 4fr) minmax(74px, 1fr);
    gap: 6px;
    padding: 10px 12px;
  }

  #epjsPlusSelectionFilter {
    padding: 0 6px;
    font-size: 11px;
  }

  .epjs-plus-selection-toolbar {
    padding: 7px 12px;
    gap: 6px;
  }

  .epjs-plus-item {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .epjs-plus-item-toggle {
    grid-template-columns: 26px 44px minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .epjs-plus-mini-btn {
    min-height: 25px;
    padding: 0 6px;
    font-size: 9px;
  }

  .epjs-plus-camera-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
  }

  .epjs-plus-camera-wrap video,
  .epjs-plus-camera-wrap .epjs-plus-preview {
    object-fit: cover;
  }

  .epjs-storefront-plus header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .epjs-plus-topbar {
    min-height: auto;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .epjs-plus-title h2 {
    font-size: 17px;
    line-height: 1.1;
  }

  .epjs-plus-title p {
    margin-top: 3px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .epjs-plus-actions {
    display: grid;
    grid-template-columns: 38px 38px;
    justify-content: start;
    gap: 6px;
  }

  .epjs-plus-camera-wrap .epjs-plus-actions {
    top: 10px;
    left: 10px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-topbar,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-topbar,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap .epjs-plus-actions,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap .epjs-plus-actions {
    display: none;
  }

  .epjs-plus-camera-label {
    top: 12px;
    width: 88%;
    padding: 9px 12px 10px;
  }

  .epjs-plus-camera-label h3 {
    font-size: 28px;
  }

  .epjs-plus-camera-label p {
    margin-top: 4px;
    font-size: 17px;
  }

  .epjs-plus-actions .epjs-plus-btn {
    min-height: 32px;
    padding: 0 8px;
    overflow: hidden;
    font-size: 0;
  }

  .epjs-plus-actions .epjs-plus-btn::before {
    font-size: 16px;
    line-height: 1;
  }

  #epjsPlusBack::before {
    content: "<";
  }

  #epjsPlusGallery::before {
    content: "";
    width: 15px;
    height: 12px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 3px;
    background:
      radial-gradient(circle at 70% 28%, currentColor 0 1px, transparent 2px),
      linear-gradient(135deg, transparent 49%, currentColor 50% 57%, transparent 58%);
  }

  .epjs-plus-capturebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    min-height: 66px;
    justify-items: center;
    gap: 6px;
    padding: 8px 10px;
  }

  .epjs-plus-capture {
    width: 54px;
    height: 54px;
    border-width: 3px;
  }

  .epjs-plus-capturebar .epjs-plus-btn {
    min-height: 34px;
    width: 100%;
    padding: 0 5px;
    font-size: 9px;
    border-radius: 999px;
  }

  .epjs-plus-capturebar .epjs-plus-btn::before {
    display: none;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="no"] .epjs-plus-capturebar {
    grid-template-columns: minmax(74px, 1fr) 64px minmax(74px, 1fr);
    min-height: 84px;
    padding: 10px 14px;
    column-gap: 12px;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="no"][data-has-queue="yes"] .epjs-plus-capturebar {
    grid-template-columns: minmax(74px, 1fr) 64px minmax(74px, 1fr);
    column-gap: 12px;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusCaptureExit,
  .epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusNext {
    width: min(100%, 104px);
    min-height: 32px;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="yes"] .epjs-plus-capturebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="yes"] #epjsPlusUsePreview {
    grid-column: 1 / -1;
    min-height: 40px;
    font-size: 12px;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .epjs-plus-sidepanel {
    padding: 4px 10px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools {
    display: block;
    gap: 0;
    align-items: end;
    padding: 4px 0 3px;
    border-bottom: 0;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-toolgrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(94px, 0.92fr);
    gap: 7px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools h3 {
    display: none;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools .epjs-plus-control {
    margin: 0;
    gap: 1px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools .epjs-plus-control label {
    font-size: 9px;
    line-height: 1;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper {
    grid-template-columns: 30px minmax(42px, 1fr) 30px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper button,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process {
    min-height: 32px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper output {
    font-size: 12px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools .epjs-plus-status {
    grid-column: 1 / -1;
    min-height: auto;
    margin: 0;
    padding-top: 2px;
    border-top: 0;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .epjs-plus-filter-grid {
    gap: 5px;
  }

  .epjs-plus-crop-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .epjs-plus-crop {
    min-height: 38px;
    font-size: 10px;
  }

  .epjs-storefront-plus .epjs-plus-input {
    max-width: none;
  }

  .epjs-plus-modal {
    align-items: end;
    padding: 10px;
  }

  .epjs-plus-modal-card {
    max-height: 90svh;
    padding: 12px;
  }

  .epjs-plus-media-actions {
    grid-template-columns: 1fr 1fr;
  }

  .epjs-plus-media-grid,
  .epjs-plus-existing-results {
    max-height: 54svh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epjs-plus-media-photo div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="select"] {
    display: block;
    overflow: hidden;
  }

  .epjs-plus-shell[data-phase="select"] .epjs-plus-sidebar {
    width: 100%;
    max-height: none;
    height: 100svh;
    border-left: 0;
    border-right: 0;
    display: flex;
  }

  .epjs-plus-shell[data-phase="select"] .epjs-plus-item-list {
    min-height: 0;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-main,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-main {
    min-height: 100svh;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel {
    border-top: 1px solid #ddd6ca;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap {
    height: calc(100svh - 178px);
    min-height: 360px;
  }

  .epjs-plus-selection-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
  }

  .epjs-plus-selection-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }

  .epjs-plus-selection-actions .epjs-plus-btn {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* Final cinematic camera overrides; keep at file end so mobile rules do not soften the mockup style. */
.epjs-plus-shell[data-phase="capture"],
.epjs-plus-shell[data-phase="capture"] .epjs-plus-main,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-stage,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools {
  background: #000000 !important;
  color: #f8f4eb;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stage,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools {
  border: 0 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  min-height: 104px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(22px, 5vw, 72px) !important;
  padding: 0 clamp(18px, 5vw, 68px) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.94) 72%, rgba(0, 0, 0, 0.62) 100%) !important;
  transform: none !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label::before {
  content: "";
  width: 2px;
  height: clamp(34px, 5vw, 52px);
  grid-column: 2;
  grid-row: 1;
  background: #d2a153;
  box-shadow: 0 0 16px rgba(210, 161, 83, 0.56);
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p {
  grid-row: 1 !important;
  margin: 0 !important;
  color: #f8f8f6 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: clamp(30px, 5vw, 52px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.09em !important;
  white-space: nowrap !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3 {
  grid-column: 1 !important;
  text-align: right !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p {
  grid-column: 3 !important;
  display: block !important;
  text-align: left !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-live-dot {
  display: none !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue small {
  color: #d2a153 !important;
  font-size: clamp(18px, 3vw, 32px) !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue strong {
  font-size: clamp(48px, 8vw, 86px) !important;
  font-weight: 400 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-cue span {
  font-size: clamp(26px, 5vw, 44px) !important;
  font-weight: 400 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar {
  min-height: 142px !important;
  padding: 22px clamp(18px, 5vw, 56px) 18px !important;
  background: #000000 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn.dark {
  min-height: 58px !important;
  border: 2px solid #d2a153 !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.12) !important;
  color: #f8f4eb !important;
  font-size: clamp(14px, 2.2vw, 22px) !important;
  font-weight: 400 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture {
  width: clamp(72px, 14vw, 96px) !important;
  height: clamp(72px, 14vw, 96px) !important;
  aspect-ratio: 1 !important;
  border: 4px solid #d2a153 !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at 50% 40%, #ffffff, #f4efe6 70%, #e0d2bd) !important;
  box-shadow: inset 0 0 0 6px #050505, inset 0 0 0 11px #f8f4eb, 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture span,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture span::before,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-capture span::after {
  border-color: #050505 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
  padding: 0 clamp(18px, 5vw, 56px) 26px !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-toolgrid {
  width: min(100%, 430px) !important;
  margin-inline: auto !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(12px, 3vw, 26px) !important;
  justify-content: center !important;
}

.epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-camera-toolgrid {
  width: min(100%, 720px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.9fr) !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper-control label {
  color: #d2a153 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
  font-size: clamp(12px, 2vw, 18px) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding-bottom: 4px !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper {
  grid-template-columns: 46px minmax(64px, 1fr) 46px !important;
  border: 1px solid rgba(210, 161, 83, 0.82) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper button,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper output {
  min-height: 48px !important;
  height: 48px !important;
  color: #ffffff !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper output {
  border-color: rgba(210, 161, 83, 0.46) !important;
  font-size: clamp(16px, 3vw, 24px) !important;
  font-weight: 400 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-queue-btn,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-process-btn,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process.primary {
  border-color: #e3c26f !important;
  background: linear-gradient(135deg, #f2d990, #c28c37) !important;
  color: #111111 !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process.primary {
  align-self: end !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 12px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.epjs-plus-shell[data-phase="capture"][data-has-queue="no"] .epjs-plus-tool-process.primary {
  display: none !important;
}

.epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-tool-process.primary {
  display: inline-flex !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-status {
  display: none !important;
}

.epjs-plus-shell[data-phase="capture"][data-preview="yes"] .epjs-plus-sidepanel {
  display: none !important;
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap {
    aspect-ratio: 9 / 13.2 !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label {
    min-height: 92px !important;
    gap: 18px !important;
    padding-inline: 18px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p {
    font-size: clamp(24px, 7.4vw, 34px) !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar {
    position: relative !important;
    min-height: 118px !important;
    padding: 18px 28px 16px !important;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="no"] .epjs-plus-capturebar,
  .epjs-plus-shell[data-phase="capture"][data-preview="no"][data-has-queue="yes"] .epjs-plus-capturebar {
    grid-template-columns: minmax(88px, 1fr) 78px minmax(88px, 1fr) !important;
    column-gap: 22px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn {
    min-height: 50px !important;
    font-size: 16px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capture {
    width: 74px !important;
    height: 74px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
    padding: 0 28px 24px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-toolgrid {
    width: min(100%, 280px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-camera-toolgrid {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(112px, 0.92fr) !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper {
    grid-template-columns: 40px minmax(52px, 1fr) 40px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper button,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper output,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process.primary {
    min-height: 45px !important;
    height: 45px !important;
  }
}

/* Post-processing mode aligned to the current mobile camera interface. */
.epjs-plus-shell[data-phase="review"] {
  background: #fffaf2;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-main,
.epjs-plus-shell[data-phase="review"] .epjs-plus-stage {
  background: #000000;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-stage {
  border: 0;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap {
  position: relative;
  min-height: 520px;
  background: #0a0d10;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap .epjs-plus-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0a0d10;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
  top: 12px;
  left: 50%;
  z-index: 6;
  width: min(86%, 430px);
  min-height: 78px;
  padding: 10px 18px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.76), rgba(8, 10, 12, 0.42));
  transform: translateX(-50%);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.78);
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3 {
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-live-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: #f0c76d;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
  min-height: 96px;
  padding: 16px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 1.45fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  background: #071018;
  color: #f8f4eb;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.8);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview {
  border-color: #d2a153;
  background: linear-gradient(135deg, rgba(210, 161, 83, 0.18), rgba(14, 12, 10, 0.88));
  color: #ffffff;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel {
  padding: 18px 10px 32px;
  border: 0;
  background: #fffaf2;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools {
  padding: 0 0 20px;
  border: 0;
  background: #fffaf2;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools h3 {
  margin: 0 0 10px;
  color: #17130f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter,
.epjs-plus-shell[data-phase="review"] .epjs-plus-crop {
  border: 1px solid #d8c7ad;
  border-radius: 8px;
  background: #fffdf8;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter.is-selected,
.epjs-plus-shell[data-phase="review"] .epjs-plus-crop.is-selected {
  border-color: #a87435;
  background: #fffdf8;
  color: #17130f;
  box-shadow: 0 0 0 3px rgba(168, 116, 53, 0.16);
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-crop-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-tag,
.epjs-plus-shell[data-phase="review"] .epjs-plus-input {
  border-color: #d8c7ad;
  background: #fffdf8;
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="review"] .epjs-plus-main {
    min-height: 100svh;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 9 / 13.2;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
    position: relative;
    min-height: 92px;
    padding: 14px 10px;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel {
    padding: 18px 10px 34px;
  }
}

/* Final review-mode cleanup: match camera header and keep editing focused. */
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  min-height: 104px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(22px, 5vw, 72px) !important;
  padding: 0 clamp(18px, 5vw, 68px) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.94) 72%, rgba(0, 0, 0, 0.62) 100%) !important;
  transform: none !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace !important;
  text-align: initial !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label::before {
  content: "";
  width: 2px;
  height: clamp(34px, 5vw, 52px);
  grid-column: 2;
  grid-row: 1;
  background: #d2a153;
  box-shadow: 0 0 16px rgba(210, 161, 83, 0.56);
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
  grid-row: 1 !important;
  margin: 0 !important;
  color: #f8f8f6 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: clamp(30px, 5vw, 52px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.09em !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3 {
  grid-column: 1 !important;
  text-align: right !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
  grid-column: 3 !important;
  display: block !important;
  text-align: left !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-live-dot {
  display: none !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-crop-tools,
.epjs-plus-shell[data-phase="review"] .epjs-plus-saved-tools,
.epjs-plus-shell[data-phase="review"] .epjs-plus-similar-tools,
.epjs-plus-shell[data-phase="review"] .epjs-plus-pending-section {
  display: none !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-crop-tools {
  display: block !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview:disabled {
  opacity: 1;
  border-color: #e3c26f;
  background: linear-gradient(135deg, #f2d990, #c28c37);
  color: #111111;
}

@media (max-width: 760px) {
  .epjs-plus-selection-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 6px 8px;
    padding: 7px 10px max(8px, env(safe-area-inset-bottom, 0px));
  }

  .epjs-plus-selection-summary {
    align-self: center;
    margin: 0;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .epjs-plus-selection-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 6px;
  }

  #epjsPlusSelectionCamera {
    grid-column: auto;
  }

  .epjs-plus-selection-actions .epjs-plus-btn {
    min-height: 38px;
    padding: 0 6px;
    font-size: 10px;
  }

  .epjs-plus-pending-sync {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 34px;
    margin: 0;
    padding: 5px 7px;
  }

  .epjs-plus-back-dashboard {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    width: 36px;
    min-width: 36px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    place-items: center;
    font-size: 0;
  }

  .epjs-plus-back-dashboard::before {
    content: "\2190";
    font-size: 17px;
    line-height: 1;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-crop-tools {
    padding: 12px 10px;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-crop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-crop {
    min-width: 0;
    padding: 8px 3px;
    font-size: 10px;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
    min-height: 92px !important;
    gap: 18px !important;
    padding-inline: 18px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
    font-size: clamp(24px, 7.4vw, 34px) !important;
  }
}

/* Final centered header and shutter feedback refinements. */
.epjs-plus-shutter-flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background: #ffffff;
  opacity: 0;
}

.epjs-plus-shutter-flash.is-visible {
  animation: epjsShutterFlash 260ms ease-out;
}

@keyframes epjsShutterFlash {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
  }
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(16px, 4vw, 48px) !important;
  text-align: center !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label::before,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label::before {
  order: 2 !important;
  flex: 0 0 2px !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3 {
  order: 1 !important;
  grid-column: auto !important;
  text-align: center !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
  order: 3 !important;
  grid-column: auto !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
    gap: 14px !important;
    padding-inline: 12px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
    font-size: clamp(22px, 7vw, 32px) !important;
  }
}

/* Non-destructive processing mode: black-and-gold, camera-congruent controls. */
.epjs-plus-shell[data-phase="review"],
.epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel,
.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools {
  background: #000000 !important;
  color: #f8f4eb !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
  min-height: 112px !important;
  padding: 18px clamp(14px, 4vw, 42px) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  background: #000000 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusCaptureExit,
.epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview,
.epjs-plus-shell[data-phase="review"] #epjsPlusRetake,
.epjs-plus-shell[data-phase="review"] #epjsPlusReview,
.epjs-plus-shell[data-phase="review"] #epjsPlusNext {
  display: inline-flex !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusCapture {
  display: none !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
  min-height: 54px !important;
  padding: 0 8px !important;
  border: 2px solid #d2a153 !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.16) !important;
  color: #f8f4eb !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: clamp(10px, 2.2vw, 15px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  text-align: center !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusRetake {
  border-color: rgba(255, 126, 126, 0.78) !important;
  color: #ffd0d0 !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview {
  border-color: #f0d88f !important;
  background: linear-gradient(135deg, rgba(242, 217, 144, 0.18), rgba(0, 0, 0, 0.12)) !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel {
  padding: 18px clamp(14px, 4vw, 42px) 32px !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools {
  padding: 0 0 24px !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools h3 {
  color: #d2a153 !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-size: 14px !important;
  letter-spacing: 0.06em !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter,
.epjs-plus-shell[data-phase="review"] .epjs-plus-tag,
.epjs-plus-shell[data-phase="review"] .epjs-plus-input {
  border-color: rgba(210, 161, 83, 0.7) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f8f4eb !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter.is-selected,
.epjs-plus-shell[data-phase="review"] .epjs-plus-tag.is-selected {
  border-color: #f0d88f !important;
  background: linear-gradient(135deg, #f2d990, #c28c37) !important;
  color: #111111 !important;
  box-shadow: 0 0 0 3px rgba(210, 161, 83, 0.22) !important;
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
    min-height: 94px !important;
    padding: 14px 10px !important;
    gap: 6px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
    min-height: 48px !important;
    font-size: 10px !important;
  }
}

/* Mobile media manager: one saved photo per row, with actions always visible. */
@media (max-width: 760px) {
  .epjs-plus-media-card {
    width: 100% !important;
  }

  .epjs-plus-media-grid {
    max-height: 62svh !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    padding: 2px 2px 10px !important;
  }

  .epjs-plus-media-photo {
    display: grid !important;
    grid-template-columns: 98px minmax(0, 1fr) !important;
    min-height: 112px !important;
  }

  .epjs-plus-media-photo img {
    width: 98px !important;
    height: 100% !important;
    min-height: 112px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }

  .epjs-plus-media-photo div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-content: center !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  .epjs-plus-media-photo span {
    grid-column: 1 / -1 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  .epjs-plus-media-photo .epjs-plus-mini-btn {
    min-height: 34px !important;
    width: 100% !important;
    padding: 0 6px !important;
    text-align: center !important;
    font-size: 10px !important;
  }

  .epjs-plus-media-photo [data-media-process] {
    border-color: #c28c37 !important;
    background: linear-gradient(135deg, #f2d990, #c28c37) !important;
    color: #17130f !important;
  }

  .epjs-plus-media-photo [data-media-delete] {
    grid-column: 1 / -1 !important;
  }
}

/* Mobile workflow hardening: isolate Photo Mode and keep every phase in the visible viewport. */
html.epjs-plus-active,
body.epjs-plus-active {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body.epjs-plus-active > #root {
  visibility: hidden !important;
  pointer-events: none !important;
}

.epjs-plus-shell {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  padding-top: env(safe-area-inset-top, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-left: env(safe-area-inset-left, 0);
  touch-action: manipulation;
}

.epjs-plus-shell button,
.epjs-plus-shell input,
.epjs-plus-shell select {
  max-width: 100%;
}

.epjs-plus-shell button {
  overflow: hidden;
  text-overflow: ellipsis;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-main,
.epjs-plus-shell[data-phase="review"] .epjs-plus-main {
  width: 100%;
  height: calc(100dvh - env(safe-area-inset-top, 0px));
  min-height: 0 !important;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px));
  overflow: hidden !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-stage,
.epjs-plus-shell[data-phase="review"] .epjs-plus-stage {
  min-height: 0;
  overflow: hidden;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap {
  min-width: 0;
  min-height: 0 !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  overflow: hidden;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap video,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-wrap .epjs-plus-preview,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-wrap .epjs-plus-preview {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
  min-width: 0;
  max-width: 100%;
}

.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
.epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3,
.epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epjs-plus-modal {
  height: 100dvh;
  max-height: 100dvh;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(10px, env(safe-area-inset-right, 0px))
    max(10px, env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  overscroll-behavior: contain;
}

.epjs-plus-media-card {
  max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px)) - max(20px, env(safe-area-inset-bottom, 0px)));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.epjs-plus-media-grid {
  min-height: 0;
  max-height: none !important;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  .epjs-plus-shell {
    display: block;
  }

  .epjs-plus-shell[data-phase="select"] .epjs-plus-sidebar {
    height: calc(100dvh - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    overflow: hidden;
  }

  .epjs-plus-shell[data-phase="select"] .epjs-plus-item-list {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stage {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-sidepanel {
    display: block;
    min-height: 0;
    padding: 0 12px max(10px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .epjs-plus-shell[data-phase="capture"][data-preview="yes"] .epjs-plus-sidepanel {
    display: none !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-tools {
    padding: 0 !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label {
    min-height: 66px !important;
    height: 66px;
    gap: 10px !important;
    padding: 0 12px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label::before,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label::before {
    height: 28px;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
    max-width: calc(50vw - 24px);
    font-size: clamp(16px, 5.4vw, 24px) !important;
    letter-spacing: 0.03em !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar {
    position: relative !important;
    width: 100%;
    min-height: 88px !important;
    padding: 8px 10px 10px !important;
    grid-template-columns: minmax(72px, 1fr) 68px minmax(72px, 1fr) !important;
    gap: 10px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capturebar .epjs-plus-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px !important;
    height: 44px;
    padding: 0 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-capture {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px;
    min-height: 62px;
    justify-self: center;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-toolgrid,
  .epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-camera-toolgrid {
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 142px)) !important;
    justify-content: center !important;
    gap: 8px 12px !important;
    padding-top: 7px;
  }

  .epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-camera-toolgrid {
    grid-template-columns: repeat(3, minmax(0, 132px)) !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper-control {
    min-width: 0;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper-control label {
    margin: 0 !important;
    padding: 0 0 3px !important;
    font-size: 10px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper {
    width: 100%;
    grid-template-columns: 36px minmax(46px, 1fr) 36px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper button,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-stepper output,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process.primary {
    min-height: 40px !important;
    height: 40px !important;
  }

  .epjs-plus-shell[data-phase="capture"] .epjs-plus-tool-process.primary {
    min-width: 0;
    padding: 0 8px !important;
    font-size: 10px;
    white-space: nowrap;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(300px, 62dvh) minmax(0, 1fr) !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-stage {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
    min-height: 76px !important;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 44px 44px 44px minmax(62px, 1fr) minmax(62px, 1fr) !important;
    gap: 6px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
    width: 100%;
    min-width: 0;
    min-height: 44px !important;
    height: 44px;
    padding: 0 5px !important;
    border-width: 1px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn::before {
    display: block;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusCaptureExit::before {
    content: "\00D7";
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview::before {
    content: "\21BB";
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusRetake::before {
    content: "DEL";
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusReview::before {
    content: "\2039";
    font-size: 29px;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusNext::before {
    content: "\203A";
    font-size: 29px;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusReview {
    grid-column: 4;
    grid-row: 1;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusNext {
    grid-column: 5;
    grid-row: 1;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel {
    min-height: 0;
    height: auto;
    padding: 12px 10px max(18px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools {
    padding-bottom: 16px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-filter-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-filter {
    min-width: 0;
    overflow: hidden;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-filter span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .epjs-plus-modal-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px)) - max(20px, env(safe-area-inset-bottom, 0px)));
    box-sizing: border-box;
    border-radius: 8px;
  }

  .epjs-plus-modal-head {
    gap: 8px;
  }

  .epjs-plus-modal-head > div {
    min-width: 0;
  }

  .epjs-plus-modal-head h3,
  .epjs-plus-modal-head p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #epjsPlusMediaClose,
  #epjsPlusExistingClose {
    display: grid;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    place-items: center;
    font-size: 0;
    line-height: 1;
    border-radius: 50%;
  }

  #epjsPlusMediaClose::before,
  #epjsPlusExistingClose::before {
    content: "\00D7";
    display: block;
    font-size: 24px;
    line-height: 1;
  }

  .epjs-plus-media-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .epjs-plus-media-actions .epjs-plus-btn {
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .epjs-plus-media-grid {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .epjs-plus-media-photo {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    min-height: 108px !important;
  }

  .epjs-plus-media-photo img {
    width: 92px !important;
    min-height: 108px !important;
  }

  .epjs-plus-media-photo div {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
  }

  .epjs-plus-media-photo .epjs-plus-mini-btn,
  .epjs-plus-media-photo [data-media-delete] {
    grid-column: auto !important;
    min-width: 0;
    min-height: 38px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
    line-height: 1.1;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Post-processing control hierarchy and stable, optically centered icons. */
.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
  border-top: 2px solid rgba(210, 161, 83, 0.68) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3) !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
  border-width: 2px !important;
  border-color: rgba(240, 216, 143, 0.86) !important;
  background: #101820 !important;
  color: #f8f4eb !important;
  box-shadow: none !important;
  font-weight: 750 !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn:hover {
  border-color: #f0d88f !important;
  background: #192630 !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn:active {
  transform: scale(0.96);
}

.epjs-plus-shell[data-phase="review"] #epjsPlusCaptureExit {
  border-color: #67c9b4 !important;
  background: #126454 !important;
  color: #ffffff !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusRetake {
  border-color: #d46d78 !important;
  background: #321921 !important;
  color: #ffd9dd !important;
}

.epjs-plus-shell[data-phase="review"] #epjsPlusNext {
  border-color: #67c9b4 !important;
  background: #126454 !important;
  color: #ffffff !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools {
  margin: 0 !important;
  padding: 20px 0 22px !important;
  border-top: 2px solid rgba(210, 161, 83, 0.3) !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools:first-of-type {
  border-top: 0 !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools h3 {
  margin: 0 0 12px !important;
  color: #e3bd68 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter,
.epjs-plus-shell[data-phase="review"] .epjs-plus-crop,
.epjs-plus-shell[data-phase="review"] .epjs-plus-tag,
.epjs-plus-shell[data-phase="review"] .epjs-plus-input {
  border-width: 2px !important;
  border-color: #42505a !important;
  background-color: #0f171d !important;
  color: #f8f4eb !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-filter.is-selected,
.epjs-plus-shell[data-phase="review"] .epjs-plus-crop.is-selected,
.epjs-plus-shell[data-phase="review"] .epjs-plus-tag.is-selected {
  border-color: #e3bd68 !important;
  background: #d6aa50 !important;
  color: #111820 !important;
  box-shadow: 0 0 0 2px rgba(214, 170, 80, 0.2) !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-input {
  min-height: 48px !important;
  border-radius: 8px !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-input:focus {
  border-color: #e3bd68 !important;
  box-shadow: 0 0 0 3px rgba(227, 189, 104, 0.18) !important;
}

.epjs-plus-shell[data-phase="review"] .epjs-plus-tag {
  min-height: 40px !important;
  border-radius: 8px !important;
}

@media (max-width: 760px) {
  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
    min-height: 72px !important;
    padding: 9px 10px max(9px, env(safe-area-inset-bottom, 0px)) !important;
    grid-template-columns: 48px 48px 48px minmax(76px, 1fr) minmax(76px, 1fr) !important;
    gap: 7px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    border-width: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusCaptureExit,
  .epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview,
  .epjs-plus-shell[data-phase="review"] #epjsPlusRetake {
    border-radius: 50% !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusReview,
  .epjs-plus-shell[data-phase="review"] #epjsPlusNext {
    border-radius: 999px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn::before {
    content: "" !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    position: relative !important;
    background: none !important;
    transform: none;
    box-sizing: border-box;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusCaptureExit::before {
    width: 19px !important;
    height: 11px !important;
    border-left: 4px solid currentColor !important;
    border-bottom: 4px solid currentColor !important;
    transform: translateY(-2px) rotate(-45deg) !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusUsePreview::before {
    content: "\21BB" !important;
    width: auto !important;
    height: auto !important;
    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusRetake::before {
    content: "DEL" !important;
    width: auto !important;
    height: auto !important;
    font-family: "SFMono-Regular", Consolas, monospace !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusReview::before,
  .epjs-plus-shell[data-phase="review"] #epjsPlusNext::before {
    width: 14px !important;
    height: 14px !important;
    border-right: 4px solid currentColor !important;
    border-bottom: 4px solid currentColor !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusReview::before {
    transform: translateX(2px) rotate(135deg) !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusNext::before {
    transform: translateX(-2px) rotate(-45deg) !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-sidepanel {
    padding: 4px 10px max(20px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-edit-tools {
    padding: 18px 0 20px !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-filter-grid,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-crop-grid {
    gap: 8px !important;
  }
}

@media (max-width: 380px) {
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="capture"] .epjs-plus-camera-label p,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label h3,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-camera-label p {
    font-size: 16px !important;
  }

  .epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-camera-toolgrid {
    grid-template-columns: repeat(2, minmax(0, 138px)) !important;
  }

  .epjs-plus-shell[data-phase="capture"][data-has-queue="yes"] .epjs-plus-tool-process.primary {
    grid-column: 1 / -1;
    width: min(100%, 138px);
    justify-self: center;
  }

  .epjs-plus-media-photo {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .epjs-plus-media-photo img {
    width: 78px !important;
  }
}

/* Compact item actions and optically centered workflow icons. */
.epjs-plus-item-actions {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.epjs-plus-item-actions .epjs-plus-mini-btn {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.epjs-plus-item-actions .epjs-plus-mini-btn::before {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.epjs-plus-item-edit::before {
  content: "\270E";
}

.epjs-plus-item-clear::before {
  content: "\00D7";
  font-size: 20px !important;
}

@media (max-width: 760px) {
  .epjs-plus-item {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .epjs-plus-item-actions {
    width: 70px;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar {
    align-items: center !important;
    justify-items: stretch !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn,
  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn.primary {
    display: grid !important;
    place-items: center !important;
    align-self: center !important;
    padding: 0 !important;
  }

  .epjs-plus-shell[data-phase="review"] .epjs-plus-capturebar .epjs-plus-btn::before {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    position: static !important;
    transform: none;
    line-height: 1 !important;
  }

  .epjs-plus-shell[data-phase="review"] #epjsPlusCaptureExit::before {
    content: "" !important;
    width: 19px !important;
    height: 11px !important;
    border: 0 !important;
    border-left: 4px solid currentColor !important;
    border-bottom: 4px solid currentColor !important;
    background: none !important;
    transform: translateY(-2px) rotate(-45deg) !important;
  }
}
