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

.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;
}

#epjsPlusSelectionCamera,
#epjsPlusSelectionReview {
  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;
  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: 18px;
  left: 50%;
  z-index: 5;
  width: min(82%, 420px);
  padding: 8px 14px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(5, 8, 12, 0.54), rgba(5, 8, 12, 0.16));
  text-align: center;
  color: #ffffff;
  transform: translateX(-50%);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.epjs-plus-camera-label h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 950;
  color: #ffffff !important;
}

.epjs-plus-camera-label p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0;
}

.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-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-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"] #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"] #epjsPlusReview {
  grid-column: 4;
  grid-row: 1;
}

.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusCaptureExit,
.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusNext,
.epjs-plus-shell[data-phase="capture"][data-preview="no"] #epjsPlusReview {
  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(70px, 1fr) 80px minmax(70px, 1fr) minmax(70px, 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(4, 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 {
  grid-column: 4;
  grid-row: 2;
}

.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-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-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;
}

.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 {
  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: 74%;
    padding: 7px 12px 8px;
  }

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

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

  .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(58px, 1fr) 58px minmax(58px, 1fr) minmax(58px, 1fr);
    column-gap: 7px;
  }

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

  .epjs-plus-shell[data-phase="capture"][data-preview="yes"] .epjs-plus-capturebar {
    grid-template-columns: repeat(4, 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: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 12px;
    align-items: end;
    padding: 4px 0 3px;
    border-bottom: 0;
  }

  .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-camera-tools .epjs-plus-range {
    height: 18px;
  }

  .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;
  }
}
