:root {
  color-scheme: dark;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  background: #120d1f;
  color: #eee8f5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #75d6f7;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-block;
  border: 1px solid #694679;
  border-radius: 9px;
  background: #332040;
  color: white;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #633066;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #ac0878;
  border-color: #e039a4;
}
.danger {
  border-color: #e98696;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #3e2c50;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.brand span {
  font-size: 11px;
  letter-spacing: 2px;
  color: #69d4f4;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 44px 24px 70px;
}
h1 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -1.8px;
  margin: 14px 0;
}
h2 {
  font-size: 24px;
}
p {
  line-height: 1.65;
}
small,
.muted {
  color: #c1b4cd;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #ff72cb;
  font-weight: 700;
}
.intro {
  max-width: 660px;
  font-size: 18px;
  color: #c5b7d2;
}
.toolbar,
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 22px 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 20px;
  background: #20152f;
  border-radius: 12px;
  margin: 24px 0;
}
.filters label {
  flex: 1;
  min-width: 130px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 22px;
}
.card,
.panel {
  background: #21162e;
  border: 1px solid #42304f;
  border-radius: 14px;
  overflow: hidden;
}
.panel {
  padding: 24px;
  margin: 20px 0;
}
.card-body {
  padding: 20px;
}
.card h2 {
  margin: 10px 0;
  font-size: 22px;
}
.photo,
.placeholder {
  width: 100%;
  height: 225px;
  object-fit: cover;
  background: #30213f;
}
.placeholder {
  display: grid;
  place-items: center;
  font-size: 50px;
  color: #a279b7;
}
.ref {
  font-family: monospace;
  font-size: 14px;
  color: #8bdcf5;
}
.photos {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0;
}
.photos img {
  max-width: 100%;
  width: 330px;
  height: 280px;
  object-fit: contain;
  border-radius: 12px;
  background: #281a36;
}
.badge {
  display: inline-block;
  border: 1px solid #765288;
  border-radius: 40px;
  padding: 5px 12px;
  font-size: 12px;
  color: #ead6f7;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 14px;
  color: #ded0e8;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  background: #130e1b;
  border: 1px solid #765786;
  border-radius: 8px;
  color: #fff;
  padding: 11px;
  margin-top: 7px;
}
textarea {
  min-height: 108px;
  resize: vertical;
}
input[type="checkbox"] {
  display: inline;
  width: auto;
  margin-right: 8px;
}
.wide {
  grid-column: 1/-1;
}
.notice {
  padding: 15px;
  border-left: 3px solid #65d1f5;
  background: #192b38;
  line-height: 1.6;
}
.error {
  color: #ffb2bd;
  white-space: pre-wrap;
}
.success {
  color: #91e8bd;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  padding: 18px;
  min-width: 130px;
  flex: 1;
  background: #241832;
  border-radius: 12px;
}
.stat strong {
  display: block;
  font-size: 30px;
  color: #81dafa;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #473253;
}
.table-wrap {
  overflow: auto;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.photo-edit {
  padding: 14px;
  border: 1px solid #60436e;
  border-radius: 12px;
  max-width: 350px;
}
.photo-edit img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  padding: 12px;
  background: #30213f;
  border-radius: 7px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
footer {
  padding: 30px 24px;
  text-align: center;
  color: #b5a4c3;
}
nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.empty {
  padding: 45px;
  text-align: center;
  background: #21162e;
  border-radius: 12px;
}
#message:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #77d4f3;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .split,
  .fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  header {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
  main {
    padding: 26px 18px;
  }
  .panel {
    padding: 18px;
  }
  .photos img {
    width: 260px;
  }
  .filters {
    padding: 15px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    letter-spacing: -1px;
  }
  .actions button {
    flex-grow: 1;
  }
}
