
:root {
  color-scheme: light;
  --ink: #21201d;
  --muted: #6a665d;
  --line: #d8d2c5;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --public: #3f6f63;
  --login: #6f4d93;
  --admin: #9b4036;
  --admin-dark: #653026;
  --admin-soft: #f7e8e3;
  --admin-line: #d9a096;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 45vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 650;
  padding: 0.42rem 0.6rem;
}

.link-button {
  background: transparent;
  color: inherit;
  display: inline;
  font-weight: inherit;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
}

.link-button:hover:not(:disabled) {
  filter: none;
}

button:hover:not(:disabled) {
  filter: brightness(0.96);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(63, 111, 99, 0.28);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.shell {
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1360px;
  padding: 1rem;
}

.topbar {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr auto;
}

.brand {
  font-size: 1.55rem;
  font-weight: 800;
}

.account {
  color: var(--muted);
  font-size: 0.93rem;
  text-align: right;
}

.topbar-right {
  align-items: end;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.topnav {
  display: flex;
  gap: 0.35rem;
}

.sidebar-nav {
  justify-content: flex-end;
}

.topnav a,
.quiet-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.topnav a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.toolbar {
  display: grid;
  gap: 0.75rem;
}

.toolbar-search {
  max-width: none;
}

.filter-row {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(13rem, 17rem) 12rem auto;
  justify-content: start;
}

.layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 20rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.admin-page {
  display: grid;
  gap: 1rem;
}

.page-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.page-head h1 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin: 0 0 0.25rem;
}

.main-column {
  display: grid;
  gap: 1rem;
}

.pre-list-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.button-icon {
  display: inline-block;
  font-weight: 850;
  margin-right: 0.35rem;
}

.add-offering-action {
  font-size: 1.05rem;
  min-height: 2.7rem;
  padding: 0.52rem 0.8rem;
}

.unavailable-action {
  color: var(--muted);
}

.listings {
  display: grid;
  gap: 0.85rem;
}

.listing {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  font-size: 0.92rem;
  gap: 0.85rem;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  overflow: visible;
  padding: 0.75rem;
  position: relative;
}

.listing-available {
  background: #fbfff9;
  border-color: #8ebd93;
}

.listing-claimed-mine {
  background: #f7f0fb;
  border-color: rgba(111, 77, 147, 0.68);
}

.listing-claimed-other {
  background: #f7fbff;
  border-color: rgba(47, 95, 159, 0.45);
}

.listing-claimed-other::after {
  background: repeating-linear-gradient(
    135deg,
    rgba(80, 86, 94, 0.08) 0,
    rgba(80, 86, 94, 0.08) 1px,
    transparent 1px,
    transparent 8px
  );
  border-radius: 8px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.listing-bookmarks {
  display: flex;
  gap: 0.28rem;
  position: absolute;
  right: 0.8rem;
  top: -1px;
  z-index: 4;
}

.listing-bookmark {
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 2px rgba(32, 32, 32, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  height: 1.55rem;
  width: 1.05rem;
}

.listing-bookmark-yellow {
  background: #f7d84d;
  color: #f7d84d;
}

.listing-bookmark-blue {
  background: #6aa0e8;
  color: #6aa0e8;
}

.listing-bookmark-red {
  background: #dd6961;
  color: #dd6961;
}

.listing-bookmark-green {
  background: #75b978;
  color: #75b978;
}

.media {
  aspect-ratio: 4 / 3;
  background: #ece7dc;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.add-media {
  display: grid;
  gap: 0.65rem;
  min-height: 12rem;
}

.image-composer {
  align-content: start;
  aspect-ratio: auto;
  overflow: visible;
  padding: 0.65rem;
}

.image-composer-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.image-composer-head > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.image-empty {
  color: var(--muted);
  display: grid;
  min-height: 0;
  place-items: center;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.image-tile,
.image-add-tile {
  aspect-ratio: 1 / 1;
  align-items: center;
  background: #f7f3ea;
  border: 1px solid rgba(33, 32, 29, 0.14);
  border-radius: 6px;
  display: grid;
  overflow: hidden;
  position: relative;
  width: 6.5rem;
}

.image-add-tile {
  border: 1px dashed rgba(111, 77, 147, 0.42);
  color: var(--login);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 800;
  justify-content: center;
  padding: 0;
}

.image-tile.drag-over {
  border-color: var(--login);
  box-shadow: 0 0 0 3px rgba(111, 77, 147, 0.18);
}

.image-tile img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-tile-index {
  background: rgba(33, 32, 29, 0.72);
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  left: 0.35rem;
  padding: 0.12rem 0.38rem;
  position: absolute;
  top: 0.35rem;
}

.image-tile-controls {
  background: rgba(255, 255, 255, 0.94);
  bottom: 0.25rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.22rem;
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
}

.image-tile-controls .icon-button {
  height: 1.55rem;
  width: 1.55rem;
}

.image-tile-controls .quiet-control {
  flex: 1;
  font-size: 0.75rem;
  min-height: 1.55rem;
  padding: 0 0.2rem;
}

.image-tile-controls .remove-image {
  color: #653026;
  font-size: 1rem;
  font-weight: 850;
}

.media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.no-image {
  align-content: center;
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  gap: 0.35rem;
  height: 100%;
  justify-items: center;
  place-content: center;
}

.no-image svg {
  fill: none;
  height: 2.65rem;
  stroke: rgba(106, 102, 93, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 2.65rem;
}

.visually-hidden {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.carousel {
  bottom: 0.45rem;
  display: flex;
  gap: 0.35rem;
  position: absolute;
  right: 0.45rem;
}

.image-count {
  background: rgba(33, 32, 29, 0.72);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  left: 0.45rem;
  padding: 0.22rem 0.45rem;
  position: absolute;
  top: 0.45rem;
}

.carousel button,
.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
}

.lightbox {
  align-items: center;
  background: rgba(33, 32, 29, 0.74);
  display: grid;
  inset: 0;
  padding: 1.25rem;
  place-items: center;
  position: fixed;
  z-index: 20;
}

.lightbox-frame {
  display: grid;
  padding: 3rem;
  max-height: calc(100vh - 2rem);
  max-width: calc(100vw - 2rem);
  place-items: center;
  position: relative;
}

.lightbox-frame img {
  background: #111;
  border-radius: 6px;
  height: auto;
  max-height: calc(100vh - 8rem);
  max-width: calc(100vw - 8rem);
  object-fit: contain;
  width: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-count {
  position: absolute;
  z-index: 21;
}

.lightbox-close {
  right: 0.75rem;
  top: 0.75rem;
}

.lightbox-prev {
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-count {
  background: rgba(33, 32, 29, 0.72);
  border-radius: 999px;
  bottom: 0.75rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.25rem 0.55rem;
}

.listing-main {
  align-content: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.listing-row {
  min-width: 0;
}

.listing-main > .listing-row:last-child {
  margin-top: auto;
}

.add-listing-main {
  align-content: start;
  gap: 0.85rem;
  padding: 0.65rem;
}

.body-input {
  min-height: 8rem;
}

.add-body {
  line-height: normal;
  white-space: normal;
}

.add-body .field {
  margin: 0;
}

.add-body textarea {
  display: block;
}

.add-body .field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.attribute-composer {
  display: grid;
  gap: 0.55rem;
}

.attribute-composer-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.attribute-composer-head > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.attribute-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.attrs-table {
  border-collapse: collapse;
  font-size: inherit;
  margin: 0;
  table-layout: auto;
  width: 100%;
}

.attrs-table th,
.attrs-table td {
  padding: 0.15rem 0.6rem 0.15rem 0;
  text-align: left;
  vertical-align: middle;
}

.attrs-table th:last-child,
.attrs-table td:last-child {
  padding-right: 0;
}

.attribute-editor-table th {
  font-weight: inherit;
}

.attribute-name {
  font-weight: 750;
  width: 1%;
  white-space: nowrap;
}

.attribute-value {
  min-width: 0;
}

.attribute-editor-table label {
  display: grid;
  gap: 0.25rem;
}

.attribute-editor-name {
  min-width: 8rem;
  width: 32%;
}

.attribute-editor-value {
  min-width: 9rem;
}

.attribute-editor-preview {
  min-width: 4.5rem;
  text-align: center;
  vertical-align: middle;
  width: 1%;
}

.attribute-editor-action {
  text-align: center;
  vertical-align: middle;
  width: 1%;
}

.attribute-editor-table input {
  min-width: 0;
  width: 100%;
}

.attribute-editor-table .delete-attribute {
  display: inline-flex;
  min-height: 2.1rem;
  vertical-align: middle;
}

.attribute-parse-preview {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  min-height: 2.55rem;
  white-space: nowrap;
}

.attribute-add-tile {
  aspect-ratio: auto;
  min-height: 2.45rem;
  width: 2.45rem;
}

.listing-head {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.offered {
  color: inherit;
  font-size: inherit;
  line-height: 1.45;
  margin-top: -0.35rem;
  white-space: pre-wrap;
}

.body {
  line-height: 1.45;
}

.listing-body {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.body-title {
  font-size: 1.5em;
  font-weight: 750;
  line-height: 1.3;
  margin: 0;
}

.body-line {
  overflow-wrap: anywhere;
}

.attributes-row {
  padding-top: 0.5rem;
}

.text-link {
  color: #245da7;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.attrs-table select {
  min-width: 0;
  padding: 0.2rem 0.35rem;
  width: auto;
}

.attr-value-cell {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.controls button:not(.claim-action) {
  font-size: inherit;
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
}

.public-control {
  background: var(--public);
  color: white;
}

.claim-action {
  border-radius: 999px;
  font-size: inherit;
  letter-spacing: 0;
  min-height: 1.35rem;
  padding: 0.08rem 0.5rem;
}

.login-control {
  background: var(--login);
  color: white;
}

.user-private-control {
  background: rgba(111, 77, 147, 0.08);
  border: 1px solid rgba(111, 77, 147, 0.22);
  border-radius: 8px;
  padding: 0.55rem;
}

.user-private-control .field > span,
.user-private-control > span {
  color: var(--login);
}

.admin-control {
  background: var(--admin);
  color: white;
}

.admin-danger-control {
  background: var(--admin-dark);
  border: 1px solid rgba(101, 48, 38, 0.32);
  color: white;
}

.danger {
  background: #292724;
  color: white;
}

.quiet-control {
  background: #ece7dc;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 2.55rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
}

.panel h2 {
  font-size: 1rem;
  margin: 0;
}

.panel h3 {
  font-size: 0.92rem;
  margin: 0;
}

.account-panel {
  background: #fbf8ff;
  border-color: rgba(111, 77, 147, 0.26);
  box-shadow: 0 12px 34px rgba(111, 77, 147, 0.08);
  font-size: 0.9rem;
  gap: 0.9rem;
}

.account-status {
  display: grid;
  gap: 0.15rem;
}

.account-line {
  color: var(--ink);
}

.account-subaction-line {
  color: var(--ink);
  line-height: 1.35;
}

.account-section {
  display: grid;
  font-size: 0.9rem;
  gap: 0.55rem;
}

.password-field {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}

.password-field .toggle-password {
  align-items: center;
  background: transparent;
  color: var(--login);
  display: inline-flex;
  font-size: 0.9rem;
  height: 1.8rem;
  justify-content: center;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 0.35rem;
  width: 1.8rem;
}

.toggle-password svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.05rem;
}

.password-field input {
  padding-right: 2.35rem;
}

.toggle-password.showing svg {
  color: var(--ink);
}

.account-cta,
.account-prompt {
  line-height: 1.35;
}

.account-separator {
  border: 0;
  border-top: 1px solid rgba(111, 77, 147, 0.22);
  margin: 0;
}

.admin-panel {
  background: var(--admin-soft);
  border-color: var(--admin-line);
}

.admin-panel h2,
.admin-panel .field > span {
  color: var(--admin-dark);
}

.admin-panel input {
  border-color: var(--admin-line);
}

.admin-controls {
  padding-top: 0.5rem;
}

.panel-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.muted-panel {
  background: #f5f2eb;
}

.form-grid {
  display: grid;
  gap: 0.55rem;
}

.split {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr 1fr;
}

.status {
  color: var(--muted);
  font-size: 0.9rem;
}

.status.error {
  background: #fff0ee;
  border: 1px solid #dd6961;
  border-radius: 6px;
  color: #8f2f27;
  padding: 0.4rem 0.5rem;
}

.progress-status {
  background: #f2ecf7;
  border: 1px solid rgba(111, 77, 147, 0.22);
  border-radius: 6px;
  color: var(--login);
  padding: 0.4rem 0.5rem;
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
}

.claim {
  align-items: center;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 999px;
  display: inline-flex;
  font-size: inherit;
  gap: 0.25em;
  font-weight: 700;
  min-height: 1.35rem;
  margin-top: 0.25rem;
  padding: 0.08rem 0.5rem;
}

.claim-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.claim-row .claim {
  margin-top: 0;
}

.claim-separator {
  color: var(--muted);
}

.claim-open {
  background: #dfeee4;
  color: #2f6250;
}

.claim-mine {
  background: #efe5f7;
  color: var(--login);
}

.claim-taken {
  background: #eef5ff;
  color: #2f5f9f;
}

.color-multiselect {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 2.55rem;
  position: relative;
}

.color-multiselect summary,
.listing-label-select summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 0.65rem;
}

.color-filter-menu,
.listing-label-menu {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 0.8rem 2rem rgba(33, 32, 29, 0.13);
  display: grid;
  gap: 0.25rem;
  left: 0;
  min-width: 100%;
  padding: 0.35rem;
  position: absolute;
  top: calc(100% + 0.25rem);
  z-index: 10;
}

.color-filter-option {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem 0.45rem;
}

.color-filter-option input {
  width: auto;
}

.color-filter-option .swatch {
  height: 1rem;
  width: 1rem;
}

.swatch-field {
  align-items: start;
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  min-width: 10rem;
  position: relative;
}

.swatch-field > span,
.field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.swatch {
  border: 2px solid transparent;
  border-radius: 999px;
  height: 1.65rem;
  width: 1.65rem;
}

.listing-label-select {
  background: var(--panel);
  border: 1px solid rgba(111, 77, 147, 0.22);
  border-radius: 6px;
  position: relative;
  width: min(100%, 16rem);
}

.listing-label-menu {
  right: 0;
}

.label-choice {
  align-items: center;
  background: transparent;
  color: var(--ink);
  display: flex;
  gap: 0.4rem;
  justify-content: flex-start;
  padding: 0.35rem 0.45rem;
  text-align: left;
  width: 100%;
}

.label-choice.active {
  background: rgba(111, 77, 147, 0.1);
}

.swatch.active {
  border-color: var(--login);
}

.swatch-none {
  background: #ffffff;
  border-color: var(--line);
}

.swatch-yellow {
  background: #f7d84d;
}

.swatch-blue {
  background: #6aa0e8;
}

.swatch-red {
  background: #dd6961;
}

.swatch-green {
  background: #75b978;
}

.admin-row {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  display: grid;
  flex: 1 1 16rem;
  gap: 0.4rem;
  max-width: 24rem;
  padding: 0.55rem;
}

.admin-card-head {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.admin-card-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.25rem 0.65rem;
}

.admin-checkbox {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
}

.admin-checkbox input {
  margin: 0;
}

.admin-account-group {
  border-top: 1px solid var(--admin-line);
  display: grid;
  gap: 0.55rem;
  padding-top: 0.7rem;
}

.admin-account-group h3 {
  color: var(--admin);
  font-size: 0.9rem;
  margin: 0;
  text-transform: uppercase;
}

.admin-account-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-account-group-nameless {
  background: transparent;
  border-radius: 0;
  padding: 0.7rem 0 0;
}

.admin-row-nameless {
  border-color: rgba(151, 82, 55, 0.24);
}

.field {
  display: grid;
  gap: 0.3rem;
}

.empty-state {
  min-height: 10rem;
  place-content: center;
  text-align: center;
}

.private-data {
  display: grid;
  font-size: 0.8em;
  gap: 0.45rem;
  position: relative;
  z-index: 8;
}

.private-data-grid {
  align-items: start;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(10rem, max-content) minmax(12rem, 1fr);
}

.private-data-section {
  display: grid;
  gap: 0.25rem;
}

.private-data-section > span {
  color: var(--login);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.private-data textarea {
  font-size: inherit;
  min-height: 2.6rem;
  padding-block: 0.42rem;
}

.private-data .listing-label-select {
  font-size: inherit;
  width: min(100%, 12rem);
}

.private-data .listing-label-select summary {
  font-weight: 400;
  min-height: 1.9rem;
  padding: 0.35rem 0.45rem;
}

.private-data .listing-label-menu {
  font-size: inherit;
  padding: 0.25rem;
}

.private-data .label-choice {
  font-size: inherit;
  font-weight: 400;
  gap: 0.3rem;
  padding: 0.26rem 0.35rem;
}

.private-data .swatch {
  height: 1.2rem;
  width: 1.2rem;
}

.listing-actions {
  padding-top: 0.65rem;
}

@media (min-width: 861px) {
  .sidebar {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 860px) {
  .layout,
  .listing,
  .filter-row,
  .topbar,
  .page-head,
  .private-data-grid {
    grid-template-columns: 1fr;
  }

  .account,
  .topbar-right {
    justify-items: start;
    text-align: left;
  }

  .sidebar {
    order: -1;
  }

  .swatch-field {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .lightbox {
    padding: 0.5rem;
  }

  .lightbox-frame {
    padding: 2.4rem;
  }

  .lightbox-frame img {
    max-height: calc(100vh - 5.8rem);
    max-width: calc(100vw - 5.8rem);
  }
}
