:root {
  --bg: #18191b;
  --panel: #202123;
  --card: #222326;
  --line: #343438;
  --muted: #a5a1aa;
  --accent: #601848;
  --light: #e8a9d1;
  --col: 300px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #eeeaf0;
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  background: #292a2f;
  color: inherit;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
button:hover {
  border-color: #9f6a91;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: var(--light);
}
button.primary,
.pin.pinned {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
input,
select,
textarea {
  background: #25262a;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  padding: 9px 11px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 2px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 23px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 14px;
}
.app {
  height: 100vh;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 300px;
  grid-template-rows: 64px minmax(0, 1fr);
}
.brand {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px;
  font-size: 19px;
  font-weight: 700;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brandmark {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.strlogo {
  height: 28px;
  width: auto;
  display: block;
}
.login .strlogo {
  height: 56px;
  margin: 0 auto 18px;
}
.share-page .strlogo {
  height: 30px;
}
.topbar {
  grid-column: 2/4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.spacer {
  flex: 1;
}
.crumb {
  color: #d1cbd4;
  font-weight: 600;
}
.iconbutton {
  padding: 7px;
  min-width: 33px;
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.sidebar {
  grid-column: 1;
  grid-row: 2;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 18px 14px;
}
.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sidebar .nav button {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  padding: 11px 12px;
  font-size: 15px;
}
.sidebar .nav button.active {
  background: #482d40;
  color: #f1c4df;
}
.sidebar .nav button span.count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.filter-section {
  margin-top: 12px;
}
.caption-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 4px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.7px;
  justify-content: flex-start;
}
.caption-toggle:hover {
  color: #eeeaf0;
  background: #ffffff0d;
  border-color: transparent;
}
.caption-toggle svg {
  flex: none;
  opacity: 0.85;
}
.caption-toggle .chev {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.7;
}
.section-body {
  padding: 2px 2px 4px 8px;
}
.section-body .checkrow {
  margin: 7px 2px;
}
.caption {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.7px;
  margin: 24px 9px 10px;
}
.sidebar select {
  width: 100%;
}
.checkrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 6px;
  font-size: 13px;
}
.support-filters {
  border-left: 1px solid #704461;
  margin-left: 10px;
  padding-left: 8px;
}
.collection-label {
  margin: 9px 7px;
  color: var(--light);
  font-weight: 600;
  word-break: break-word;
}
.sidebar hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.main {
  grid-column: 2;
  grid-row: 2;
  overflow: auto;
  padding: 25px 24px;
}
.inspector {
  grid-column: 3;
  grid-row: 2;
  overflow: auto;
  border-left: 1px solid var(--line);
  padding: 22px 18px;
  background: var(--panel);
}
.inspector h2 {
  margin: 12px 0 5px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.heading h1 {
  margin: 0;
}
.heading .muted {
  margin-left: auto;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--col), 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}
.card {
  border-radius: 8px;
  background: var(--card);
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s;
}
.card:hover {
  border-color: #70616c;
}
.card.selected {
  border-color: #c778aa;
  box-shadow: 0 0 0 1px #c778aa;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #eeedeb;
  aspect-ratio: 1.12;
}
.pair img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
}
.image-empty {
  display: grid;
  place-items: center;
  color: #aaa;
  background: #292a2e;
  height: 100%;
  min-height: 150px;
}
.card-body {
  padding: 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  min-height: 20px;
}
.swatch {
  padding: 0;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  overflow: hidden;
  border: 1px solid #aaa;
  position: relative;
}
.swatch span {
  flex: 1;
  height: 100%;
}
.swatch.active {
  outline: 2px solid var(--light);
  outline-offset: 3px;
}
.type-line {
  font-size: 11px;
  color: var(--muted);
  margin: -6px 0 10px;
}
.color-meta {
  font-size: 11px;
  margin: -4px 0 10px;
  letter-spacing: 0.2px;
  word-break: break-word;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.card h3 {
  font-size: 15px;
  min-height: 46px;
  margin: 8px 0 12px;
  font-weight: 600;
}
.thumbs {
  display: flex;
  gap: 5px;
  overflow: auto;
  margin: 6px 0 12px;
  padding: 2px 0;
}
.thumbs img {
  width: 43px;
  height: 58px;
  object-fit: cover;
  background: #efeeeb;
  border-radius: 3px;
  flex: none;
  cursor: zoom-in;
}
.badge {
  color: #dfb5d0;
  background: #3b2b36;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  align-self: flex-start;
  margin: 5px 0;
}
.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 9px 0;
  color: #c5bec8;
  font-size: 12px;
}
.price-missing {
  color: #918894;
  font-size: 11px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.pin {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: 30px;
  padding: 9px 15px;
  min-height: 39px;
  color: #fff;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px #60184888;
}
.pin:active {
  transform: scale(0.91);
}
.pin.pop {
  animation: pin-pop 0.3s;
}
@keyframes pin-pop {
  50% {
    transform: scale(1.17);
  }
  100% {
    transform: scale(1);
  }
}
.fact {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.fact-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}
.description {
  white-space: pre-wrap;
  font-size: 12px;
  color: #c8c1cb;
}
.inspector .thumbs {
  flex-wrap: wrap;
  overflow: visible;
}
.inspector .thumbs img {
  width: 70px;
  height: 90px;
}
.inspector .pair {
  margin: 18px 0;
}
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.sizechip {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}
.sizechip.unavailable {
  color: #8e8793;
  text-decoration: line-through;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}
.field label {
  font-size: 12px;
  color: #bbb2c0;
}
.field input,
.field select {
  width: 100%;
}
.buttonrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.empty {
  padding: 70px 25px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.empty h2 {
  color: #ddd;
}
.load-more {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.profile-link {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--muted);
}
.profile-link:hover {
  color: inherit;
}
.access-row {
  align-items: flex-start;
  gap: 12px;
}
.access-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.access-controls select {
  width: auto;
  padding: 5px 8px;
}
.login {
  max-width: 420px;
  margin: 18vh auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.login h1 {
  font-size: 30px;
}
.login button {
  margin-top: 15px;
  width: 100%;
}
.error {
  padding: 12px 14px;
  background: #44262b;
  color: #ffc2cc;
  border: 1px solid #79434c;
  border-radius: 7px;
  white-space: pre-wrap;
}
.notice {
  padding: 12px 14px;
  background: #342d23;
  color: #e2c994;
  border: 1px solid #655a42;
  border-radius: 7px;
  margin-bottom: 15px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.listrow {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
}
.listrow b {
  display: block;
}
.listrow button {
  margin-left: auto;
}
.board-title {
  border: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 650;
  width: 100%;
  padding: 0;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.board-card {
  background: var(--card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.board-card .pair {
  aspect-ratio: 1.1;
}
.board-card h3 {
  margin: 12px 0 5px;
}
.board-card textarea {
  min-height: 72px;
  margin-top: 10px;
}
.board-card .reorder {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 7px;
}
.board-cover {
  background: #2a2028;
  border: 1px solid #62394f;
  padding: 24px;
  border-radius: 9px;
  margin-bottom: 23px;
}
.board-cover input {
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 23px;
  font-weight: 650;
}
.board-cover textarea {
  background: transparent;
  border: 0;
  min-height: 60px;
}
.board-dirty {
  color: #e9c89b;
}
.share-page {
  max-width: 1350px;
  margin: auto;
  padding: 30px;
}
.share-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.comments {
  max-width: 850px;
  margin: 30px auto;
}
.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.comment p {
  white-space: pre-wrap;
  margin: 8px 0;
}
.comment-head {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.tasks {
  margin-top: 22px;
}
dialog {
  background: #252329;
  color: #eeeaf0;
  border: 1px solid #5a3c50;
  border-radius: 12px;
  padding: 24px;
  max-width: min(620px, calc(100vw - 40px));
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
}
#form-dialog {
  width: 560px;
}
#image-viewer {
  --viewer-gutter: 52px;
  --viewer-tools: 46px;
  padding: 0;
  width: fit-content;
  max-width: calc(100vw - 40px);
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  outline: none;
}
#image-viewer::backdrop {
  background: #000d;
}
.viewer-tools {
  height: var(--viewer-tools);
  min-width: min(320px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: #221f24;
  border-bottom: 1px solid var(--line);
}
.viewer-gap {
  flex: 1;
}
.viewer-icon,
.viewer-action {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 6px 8px;
  color: #a5a1aa;
  font-size: 12px;
}
.viewer-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 13px;
}
.viewer-icon:hover,
.viewer-action:hover {
  background: #ffffff14;
  color: #fff;
  border-color: transparent;
}
.viewer-count {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}
.viewer-scroll {
  width: fit-content;
  height: auto;
  padding: 0 var(--viewer-gutter);
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 86px);
  overflow: auto;
  text-align: center;
}
.viewer-scroll img {
  display: block;
  max-width: none;
  max-height: none;
  margin: 0 auto;
}
.viewer-nav[hidden] {
  display: none;
}
.viewer-nav button {
  position: absolute;
  top: calc(50% + var(--viewer-tools) / 2);
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #ffffff1f;
  background: #2b2830;
  color: #e7e2ea;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}
.viewer-nav button:hover {
  background: #3a3540;
  border-color: #ffffff40;
  color: #fff;
}
#viewer-prev {
  left: 7px;
}
#viewer-next {
  right: 7px;
}
@media (max-width: 600px) {
  #image-viewer {
    --viewer-gutter: 42px;
  }
}
#hover-preview {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  width: auto;
  min-width: 0;
  max-width: min(800px, calc(100vw - 20px));
  background: #252329;
  border: 1px solid #775267;
  border-radius: 9px;
  box-shadow: 0 20px 80px #0009;
  padding: 7px;
}
#hover-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 36px);
  object-fit: contain;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #41303d;
  border: 1px solid #986887;
  padding: 12px 20px;
  border-radius: 9px;
  z-index: 100;
  max-width: 80vw;
  box-shadow: 0 10px 40px #0008;
}
.app.left-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) 300px;
}
.app.left-collapsed .brand,
.app.left-collapsed .sidebar {
  display: none;
}
.app.right-collapsed {
  grid-template-columns: 235px minmax(0, 1fr) 0;
}
.app.right-collapsed .inspector {
  display: none;
}
.app.left-collapsed.right-collapsed {
  grid-template-columns: 0 minmax(0, 1fr) 0;
}
.boot {
  text-align: center;
  margin-top: 20vh;
  color: var(--muted);
}
.separator {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.color-setting {
  width: 50px;
  height: 40px;
  padding: 3px;
}
.source-link {
  word-break: break-all;
  font-size: 11px;
}
.loading {
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 200px minmax(0, 1fr) 270px;
  }
  .topbar {
    padding: 10px;
  }
  .main {
    padding: 20px 16px;
  }
  .topbar .crumb {
    display: none;
  }
}
@media (max-width: 850px) {
  .app,
  .app.right-collapsed {
    grid-template-columns: 180px minmax(0, 1fr) 0;
  }
  .inspector {
    display: none;
  }
  .app.left-collapsed {
    grid-template-columns: 0 minmax(0, 1fr) 0;
  }
  .topbar .density {
    display: none;
  }
}
@media print {
  .sidebar,
  .topbar,
  .inspector,
  .brand,
  .toolbar,
  .heading button,
  .board-card .reorder {
    display: none !important;
  }
  .app {
    display: block;
    height: auto;
  }
  .main {
    overflow: visible;
  }
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .board-card {
    break-inside: avoid;
  }
  body {
    background: white;
    color: #222;
  }
  .board-card,
  .board-cover {
    background: white;
    color: #222;
    border-color: #ddd;
  }
  textarea,
  input {
    color: #222 !important;
  }
  .board-cover {
    background: white;
  }
}
input[type="range"] {
  accent-color: var(--light);
}
.support-filters .checkrow {
  font-size: 12px;
  gap: 6px;
}
.support-filters input[type="checkbox"] {
  flex: none;
}
