:root {
  --bg: #0b0d09;
  --panel: #151811;
  --panel-2: #1b1f17;
  --ink: #f7f7ee;
  --muted: #aeb2a3;
  --line: rgba(255, 255, 255, 0.12);
  --lime: #e8ff47;
  --lime-ink: #141700;
  --danger: #ff8b86;
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.login {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 92px 16px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.login__image,
.login__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login__shade {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 6, 0.18),
    rgba(7, 9, 6, 0.94) 82%
  );
}
.login__brand {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: 20px;
  color: var(--ink);
  font: 400 1.65rem/1 "Bebas Neue";
  letter-spacing: 0.05em;
  text-decoration: none;
}
.login__brand span,
.brand span {
  color: var(--lime);
}
.login__card {
  width: calc(100vw - 32px);
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(11, 13, 9, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.login h1,
.view-heading h2,
.editor h2,
.gallery h2 {
  margin: 0;
  font: 400 clamp(2.8rem, 13vw, 4.7rem) / 0.92 "Bebas Neue";
}
.login h1 em {
  color: var(--lime);
  font-style: normal;
}
.login__card > p:not(.eyebrow) {
  color: #d9dbd1;
  line-height: 1.55;
}
.login__message {
  min-height: 20px;
  margin: 14px 0 0 !important;
  color: var(--muted) !important;
  font-size: 0.78rem;
  text-align: center;
}
.button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--panel-2);
  font-weight: 800;
}
.button--primary {
  border-color: var(--lime);
  color: var(--lime-ink);
  background: var(--lime);
}
.button--small {
  min-height: 42px;
}
.login .button {
  width: 100%;
  margin-top: 10px;
}
.app {
  min-height: 100svh;
  padding-bottom: 84px;
}
.app-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 9, 0.92);
  backdrop-filter: blur(14px);
}
.brand {
  color: var(--ink);
  font: 400 1.5rem/1 "Bebas Neue";
  letter-spacing: 0.05em;
  text-decoration: none;
}
.account-button {
  max-width: 55%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.78rem;
}
.account-button img {
  border-radius: 50%;
  object-fit: cover;
}
.account-button span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main {
  width: min(100%, 760px);
  margin: 0 auto;
}
.view {
  padding: 24px 14px;
}
.view-heading {
  margin-bottom: 22px;
}
.view-heading h2 {
  font-size: clamp(2.6rem, 12vw, 4.5rem);
}
.view-heading > p:last-child,
.listings-heading p:last-child {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.listings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.photo-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition:
    border-color 0.16s,
    background 0.16s;
}
.photo-panel.is-dragging {
  border-color: var(--lime);
  background: rgba(232, 255, 71, 0.08);
}
.photo-panel__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.photo-panel__top span {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
}
.photo-grid {
  display: grid;
  gap: 10px;
}
.photo-action {
  min-height: 148px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel-2);
  text-align: center;
}
.photo-action--main {
  border-color: rgba(232, 255, 71, 0.34);
  background:
    radial-gradient(circle at 50% 0, rgba(232, 255, 71, 0.11), transparent 55%),
    var(--panel-2);
}
.photo-action__step {
  position: absolute;
  top: 10px;
  left: 11px;
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.photo-action__icon {
  color: var(--lime);
  font-size: 1.8rem;
}
.photo-action small {
  color: var(--muted);
}
.previews {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  padding-bottom: 3px;
  overflow: auto;
}
.preview {
  position: relative;
  flex: 0 0 96px;
  height: 96px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
}
.preview__role {
  position: absolute;
  inset: auto 4px 4px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}
.photo-guide {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #dfe2d5;
  background: rgba(232, 255, 71, 0.07);
  font-size: 0.82rem;
  line-height: 1.45;
}
.create-button {
  width: 100%;
  margin-top: 14px;
}
.action-message {
  min-height: 22px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.action-message.is-error {
  color: var(--danger);
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 9, 0.96);
  backdrop-filter: blur(14px);
}
.bottom-nav button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}
.bottom-nav button.is-active {
  color: var(--lime);
  background: rgba(232, 255, 71, 0.07);
}
.bottom-nav b {
  min-width: 19px;
  padding: 2px 5px;
  border-radius: 999px;
  color: var(--lime-ink);
  background: var(--lime);
  font-size: 0.68rem;
}
.filters {
  display: flex;
  gap: 7px;
  margin: 18px 0;
}
.filters button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
}
.filters button.is-active {
  border-color: var(--lime);
  color: var(--lime);
}
.filters span {
  font-weight: 800;
}
.listing-grid {
  display: grid;
  gap: 12px;
}
.listing-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  cursor: pointer;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.listing-card:hover {
  border-color: rgba(232, 255, 71, 0.42);
}
.listing-card:active {
  transform: scale(0.99);
}
.listing-card__top {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
}
.listing-card__image {
  width: 74px;
  height: 74px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--panel-2);
}
.listing-card__status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.listing-card h3 {
  margin: 6px 0 3px;
  font-size: 1.08rem;
}
.listing-card__category {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.listing-card__description {
  display: -webkit-box;
  margin: 12px 0;
  overflow: hidden;
  color: #d8dacd;
  font-size: 0.88rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.prices div {
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.prices div:nth-child(2) {
  border-color: rgba(232, 255, 71, 0.4);
  background: rgba(232, 255, 71, 0.06);
}
.prices span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}
.prices strong {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
}
.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.card-actions button {
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel-2);
  font-size: 0.76rem;
  font-weight: 800;
}
.card-actions button:last-child {
  color: var(--lime);
}
.empty {
  padding: 42px 18px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.editor {
  width: min(94%, 620px);
  max-height: 92svh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--panel);
}
.editor::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.editor__card {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.editor__header {
  display: flex;
  justify-content: space-between;
}
.editor h2 {
  font-size: 2.5rem;
}
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel-2);
  font-size: 1.4rem;
}
.editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.editor input,
.editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  color: var(--ink);
  background: #0f110d;
  resize: vertical;
}
.price-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.editor__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.gallery {
  width: min(96%, 820px);
  max-height: 94svh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--panel);
}
.gallery::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.gallery__card {
  padding: 18px;
}
.gallery h2 {
  max-width: 62vw;
  overflow: hidden;
  font-size: 2.3rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery__hint {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}
.gallery__grid {
  display: grid;
  gap: 12px;
}
.gallery-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f110d;
}
.gallery-photo > a {
  display: block;
  aspect-ratio: 4 / 3;
  background: #090a08;
}
.gallery-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
}
.gallery-photo figcaption strong {
  font-size: 0.78rem;
}
.gallery-photo figcaption span {
  display: flex;
  gap: 6px;
}
.gallery-photo button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel-2);
  font-size: 0.72rem;
  font-weight: 800;
}
.gallery__footer {
  position: sticky;
  bottom: 0;
  margin: 14px -18px -18px;
  padding: 12px 18px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(21, 24, 17, 0.96);
}
.gallery__footer .button {
  width: 100%;
}
.gallery__footer .action-message {
  margin-bottom: 0;
  text-align: center;
}
@media (min-width: 700px) {
  .login {
    align-items: center;
    padding: 90px 32px;
  }
  .login__shade {
    background: linear-gradient(90deg, rgba(7, 9, 6, 0.9), rgba(7, 9, 6, 0.25));
  }
  .login__card {
    margin-left: max(0px, calc((100vw - 1120px) / 2));
    margin-right: auto;
  }
  .photo-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }
  .view {
    padding: 38px 24px;
  }
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-nav {
    left: 50%;
    width: 440px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hint-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.hint-field input,
.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #0f110d;
  font: inherit;
}

.hint-field small {
  color: var(--muted);
  font-weight: 400;
}

.upload-queue {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.uploads-empty {
  margin: 22px 0;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.processing-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.processing-summary[hidden] {
  display: none;
}

.processing-summary__dot {
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
  animation: processingPulse 1.8s ease-in-out infinite;
}

.processing-summary strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.processing-summary span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
}

.processing-summary.has-error {
  border-color: color-mix(in srgb, #b84b42 55%, var(--line));
}

.processing-summary.has-error .processing-summary__dot {
  background: #b84b42;
  box-shadow: 0 0 0 5px color-mix(in srgb, #b84b42 14%, transparent);
  animation: none;
}

@keyframes processingPulse {
  50% { opacity: 0.45; transform: scale(0.82); }
}

.queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.queue-row:has(.queue-actions) {
  grid-template-columns: minmax(0, 1fr);
}

.queue-row .queue-actions {
  display: flex;
  gap: 8px;
}

.queue-actions button {
  flex: 1;
}

.queue-row div,
.queue-row small {
  display: block;
  min-width: 0;
}

.queue-row small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-row progress {
  width: 76px;
  accent-color: var(--accent);
}

.queue-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--panel-2);
  font-weight: 700;
}

.queue-row .queue-delete {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
}

.search-field {
  display: block;
  margin: 12px 0 4px;
}

.filters {
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.details {
  width: min(100% - 18px, 760px);
  max-width: 760px;
  max-height: calc(100dvh - 18px);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--panel);
}

.details::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.details__card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--panel-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.details .editor__header {
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 14px;
}

.details .editor__header > div,
.details h2 {
  width: 100%;
  max-width: 100%;
}

.details h2 {
  max-width: 68vw;
  overflow: hidden;
  font-size: clamp(2rem, 10vw, 3rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.details label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.details input,
.details textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #0d0f0b;
  font: inherit;
}

.details input:disabled,
.details textarea:disabled {
  opacity: 0.55;
}

.details__notice {
  padding: 12px;
  border: 1px solid rgba(239, 189, 62, 0.35);
  border-radius: 11px;
  color: #f5d87f;
  background: rgba(239, 189, 62, 0.08);
  font-size: 0.84rem;
}

.details__photo-actions {
  display: grid;
  gap: 4px;
}

.details__photo-actions .button {
  width: 100%;
}

.details__photo-actions .action-message {
  margin: 2px 0 0;
}

.details__management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.text-button {
  min-height: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.text-button--danger {
  grid-column: 1 / -1;
  color: #ef8989;
}

@media (min-width: 700px) {
  .details__card {
    padding: 24px;
  }

  .details .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
