
@font-face {
  font-family:'Archivo Black';
  src:url('fonts/ArchivoBlack-Regular.ttf') format('truetype');
  font-weight:400;
  font-display:swap;
}
:root {
  --canvas:#d7ff4f;
  --ink:#171815;
  --muted:#63645b;
  --paper:#fffef8;
  --lavender:#d8c6ff;
  --pink:#ffc5df;
  --line:#deded5;
  --display:'Archivo Black',sans-serif;
  --body:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  --edge:1px solid var(--ink);
  --radius:14px;
  --ease:cubic-bezier(.16,1,.3,1);
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:100px;
  scrollbar-color:#9c9d91 #f8f8f2;
}
body {
  margin:0;
  background:#f8f8f2;
  color:var(--ink);
  font:14px/1.65 var(--body);
}
body:has(dialog[open]) {
  overflow:hidden;
}
::selection {
  background:var(--canvas);
  color:var(--ink);
}
button, input, select, textarea {
  font:inherit;
  color:inherit;
}
button, a, select {
  touch-action:manipulation;
}
button {
  cursor:pointer;
  background:transparent;
  border:0;
}
button:disabled {
  opacity:.45;
  cursor:default;
}
a {
  color:inherit;
  text-underline-offset:4px;
}
button, a, input, select, textarea, summary {
  outline-offset:4px;
}
:focus-visible {
  outline:3px solid #6645ac;
}
input, textarea {
  caret-color:var(--ink);
}
[hidden] {
  display:none!important;
}
.icon-defs {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}
.icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
  vertical-align:middle;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
.skip {
  position:fixed;
  top:-90px;
  left:20px;
  z-index:99;
  background:var(--paper);
  padding:12px;
}
.skip:focus {
  top:10px;
}
.primary-button, .secondary-button {
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  padding:11px 17px;
  min-height:44px;
  font-weight:650;
  font-size:13px;
}
.primary-button {
  background:var(--ink);
  color:var(--paper);
}
.primary-button:hover {
  background:#393b32;
}
.secondary-button {
  border:1px solid var(--ink);
  background:var(--paper);
}
.secondary-button:hover {
  background:var(--canvas);
}
.text-button {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 0;
  min-height:44px;
}
.text-button:hover {
  text-decoration:underline;
}
.masthead {
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  gap:32px;
  height:84px;
  padding:16px 30px;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width:205px;
}
.brand-logo {
  width:42px;
  height:42px;
  object-fit:contain;
}
.brand strong {
  font:19px/1 var(--display);
  letter-spacing:-.02em;
}
.brand small {
  display:block;
  font-size:10px;
  margin-top:6px;
  letter-spacing:.08em;
  color:var(--muted);
}
.search {
  display:flex;
  align-items:center;
  gap:12px;
  max-width:600px;
  flex:1;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f3f3ed;
}
.search input {
  width:100%;
  min-width:0;
  border:0;
  background:none;
  padding:12px 0;
  outline:none;
}
.search:focus-within {
  outline:2px solid var(--ink);
}
.search input::placeholder {
  color:#6a6b60;
}
.basket-trigger {
  margin-left:auto;
  white-space:nowrap;
}
.basket-count {
  display:inline-grid;
  place-items:center;
  background:var(--canvas);
  color:var(--ink);
  border-radius:5px;
  min-width:23px;
  height:23px;
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.workspace {
  display:grid;
  grid-template-columns:216px minmax(0,1fr);
  max-width:1920px;
  margin:auto;
}
.sidebar {
  position:sticky;
  top:84px;
  height:calc(100dvh - 84px);
  padding:25px 15px;
  overflow:auto;
  border-right:1px solid var(--line);
  background:var(--paper);
}
.nav-label {
  font-size:11px;
  color:var(--muted);
  margin:26px 13px 10px;
}
.nav-item {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  padding:12px;
  border-radius:8px;
  text-decoration:none;
  text-align:left;
  font-size:13px;
  min-height:45px;
}
.nav-item span {
  margin-left:auto;
  font-size:11px;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.nav-item:hover {
  background:#eeeee5;
}
.nav-item[aria-pressed=true] {
  background:var(--canvas);
  font-weight:750;
}
.nav-item[aria-pressed=true] span {
  color:var(--ink);
}
main {
  min-width:0;
  padding:28px 34px 0;
}
.collection {
  padding-bottom:40px;
}
.breadcrumbs {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  font-size:12px;
  margin-bottom:12px;
  color:var(--muted);
}
.breadcrumbs button {
  padding:4px 0;
}
.breadcrumbs button:hover {
  text-decoration:underline;
}
.breadcrumbs .icon {
  width:13px;
  height:13px;
}
.collection-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.collection-title-row h1 {
  font-size:25px;
  margin:0;
  font-weight:750;
}
#result-count {
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.subcategories {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:20px;
}
.subcategories:empty {
  display:none;
}
.subcategories button {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--paper);
  padding:10px 13px;
  min-height:44px;
  font-size:12px;
}
.subcategories span {
  color:var(--muted);
  font-size:11px;
}
.subcategories button:hover {
  border-color:var(--ink);
  background:var(--canvas);
}
.gallery {
  columns:3;
  column-gap:20px;
}
.card {
  display:inline-block;
  width:100%;
  break-inside:avoid;
  margin-bottom:22px;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:var(--paper);
}
.art-button {
  position:relative;
  display:block;
  width:100%;
  padding:0;
  background:#eee;
}
.art-button img {
  display:block;
  width:100%;
  height:auto;
  max-height:360px;
  object-fit:cover;
}
.view-label {
  position:absolute;
  bottom:12px;
  right:12px;
  padding:6px 9px;
  background:var(--paper);
  border-radius:6px;
  font-size:11px;
  opacity:0;
  transition:opacity .2s;
}
.art-button:hover .view-label, .art-button:focus-visible .view-label {
  opacity:1;
}
.view-label .icon {
  width:14px;
  height:14px;
}
.card-caption {
  padding:14px;
}
.card-title {
  font-size:14px;
  font-weight:700;
  margin:0;
  line-height:1.5;
}
.card-format {
  font-size:10px;
  color:var(--muted);
  margin:7px 0 12px;
}
.card-actions {
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:space-between;
}
.add-button {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:9px 10px;
  background:#efefe6;
  border-radius:7px;
  font-size:11px;
  min-height:40px;
}
.add-button[aria-pressed=true] {
  background:var(--canvas);
}
.add-button .icon, .quick-copy .icon {
  width:16px;
  height:16px;
}
.quick-copy {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  padding:9px 6px;
  min-height:40px;
}
.quick-copy:hover {
  background:#efefe6;
  border-radius:7px;
}
.empty {
  padding:65px 20px;
  text-align:center;
  border:1px dashed #b7b9aa;
  border-radius:14px;
  margin-top:25px;
}
.empty>.icon {
  width:40px;
  height:40px;
  color:#757769;
}
.empty h3, .empty h2 {
  font-size:20px;
  margin:18px 0 8px;
}
.empty p {
  color:var(--muted);
  margin-bottom:22px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  width: min(1280px, 95vw);
  max-width: none;
  max-height: 94dvh;
  padding: 0;
  border: var(--edge);
  border-radius: var(--radius);
  box-shadow: 9px 9px 0 var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #15180bba;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--canvas);
  border-bottom: var(--edge);
  padding: 8px 16px;
}
#detail-index {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.modal-head > div {
  display: flex;
  gap: 5px;
}
.modal-head button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 6px;
}
.modal-head button:hover {
  background: var(--lavender);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.detail-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 54px;
  height: calc(94dvh - 54px);
  gap: 18px;
  padding: 24px;
  background: #ede3ff;
  border-right: var(--edge);
}
.zoom-image {
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  display: block;
}
.zoom-image > img {
  display: block;
  max-width: 100%;
  max-height: calc(94dvh - 148px);
  object-fit: contain;
}
.zoom-image > span {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.zoom-image > span .icon {
  width: 14px;
  height: 14px;
}
.download {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
.download .icon {
  width: 16px;
  height: 16px;
}
.detail-content {
  padding: 27px 30px 36px;
}
.detail-content h2 {
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 850;
}
.prompt-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}
.prompt-heading h3 {
  font-size: 14px;
  margin: 0;
}
.prompt-heading button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--canvas);
  padding: 7px 10px;
  font-size: 12px;
}
.prompt-heading .icon {
  width: 16px;
  height: 16px;
}
.prompt {
  font-size: 12px;
  line-height: 1.95;
  padding: 16px;
  background: #f0f0e9;
  border: 1px solid #17181545;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
#image-viewer {
  width: 96vw;
  height: 96dvh;
  max-height: 96dvh;
  background: #10120e;
  color: var(--paper);
}
.viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  font-size: 13px;
}
.viewer-head button {
  color: var(--paper);
  border: 1px solid #fff8;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: transparent;
}
.viewer-canvas {
  height: calc(96dvh - 62px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px 16px;
  overflow: auto;
}
.viewer-canvas img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%,15px);
  padding: 12px 20px;
  border: var(--edge);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: 90vw;
  font-size: 13px;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}
.board-page {
  padding:4px 0 50px;
}
.board-heading {
  margin:24px 0 32px;
}
.board-heading h1 {
  font-size:clamp(28px,3vw,42px);
  letter-spacing:-.03em;
  line-height:1.4;
  margin:0 0 8px;
}
.board-heading p {
  color:var(--muted);
}
.board-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:28px;
  align-items:start;
}
.brief-label {
  display:block;
  font-weight:650;
  margin-bottom:10px;
}
textarea {
  width:100%;
  resize:vertical;
  background:var(--paper);
  border:1px solid #bfc0b4;
  border-radius:9px;
  padding:12px;
  font-size:13px;
  line-height:1.7;
}
.board-items {
  display:grid;
  gap:18px;
  margin-top:25px;
}
.board-item {
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:18px;
  padding:15px;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:14px;
}
.board-item.is-primary {
  border-color:var(--ink);
  box-shadow:3px 3px 0 var(--canvas);
}
.board-image {
  padding:0;
  align-self:start;
}
.board-image img {
  width:100%;
  height:165px;
  object-fit:cover;
  border-radius:8px;
  display:block;
}
.board-item-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.board-item h2 {
  font-size:15px;
  line-height:1.5;
  margin:0;
}
.remove-button {
  width:44px;
  height:44px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  border-radius:6px;
}
.remove-button:hover {
  background:#f4e5e2;
}
.board-item .card-format {
  margin:0 0 8px;
}
.role-row {
  display:flex;
  gap:8px;
  align-items:center;
  margin-bottom:10px;
  font-size:11px;
  flex-wrap:wrap;
}
.role-row select {
  min-width:0;
  max-width:140px;
  min-height:44px;
  background:#f3f3ec;
  border:0;
  border-radius:6px;
  padding:6px;
}
.primary-choice {
  min-height:44px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:6px;
}
.primary-choice[aria-pressed=true] {
  background:var(--canvas);
  border-color:var(--ink);
}
.board-item textarea {
  font-size:12px;
}
.export-panel {
  position:sticky;
  top:110px;
  background:#eeefdf;
  padding:22px;
  border:1px solid #d4d6c2;
  border-radius:14px;
}
.export-panel h2 {
  font-size:20px;
  margin:0 0 15px;
}
.export-panel p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
}
.export-panel #board-summary {
  font-weight:650;
  color:var(--ink);
}
.export-panel>button {
  width:100%;
  margin-top:10px;
}
.export-panel .export-hint {
  font-size:11px;
}
.export-panel details {
  border-top:1px solid #caccb7;
  padding-top:14px;
  margin-top:20px;
  font-size:12px;
}
.export-panel summary {
  cursor:pointer;
  min-height:44px;
}
.export-panel pre {
  font:11px/1.8 var(--body);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:380px;
  overflow:auto;
}
.export-panel .storage-note {
  font-size:10px;
  margin-bottom:0;
}
.selection-dock {
  position:fixed;
  bottom:24px;
  left:calc(50% + 108px);
  transform:translateX(-50%);
  z-index:9;
  display:flex;
  align-items:center;
  gap:18px;
  padding:10px 12px 10px 16px;
  background:var(--paper);
  border:1px solid var(--ink);
  border-radius:14px;
  box-shadow:4px 4px 0 var(--ink);
  white-space:nowrap;
  font-size:12px;
}
#dock-thumbnails {
  display:flex;
  padding-right:5px;
}
#dock-thumbnails img {
  width:36px;
  height:40px;
  border-radius:5px;
  object-fit:cover;
  border:2px solid var(--paper);
  margin-right:-8px;
  transform:rotate(-5deg);
}
#dock-thumbnails img:nth-child(2) {
  transform:rotate(4deg);
}
.selection-dock .basket-count {
  background:none;
}
.detail-add {
  width:100%;
  margin-top:12px;
}
.asset-format {
  font-size:11px;
  color:var(--muted);
  margin:0 0 10px;
}
footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:26px 0 115px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}
footer>[data-brand] {
  font:14px var(--display);
  color:var(--ink);
}
footer p {
  margin:0;
}
.modal-head button, .viewer-head button {
  width:44px;
  height:44px;
}
.prompt-heading button, .quick-copy, .add-button {
  min-height:44px;
}
.toast {
  bottom:105px;
}
@media(min-width:1600px) {
.gallery {
    columns:4;
  }
}
@media(max-width:1200px) {
main {
    padding:24px 24px 0;
  }
.masthead {
    gap:20px;
    padding:16px 22px;
  }
.workspace {
    grid-template-columns:195px minmax(0,1fr);
  }
.sidebar {
    padding:22px 10px;
  }
.brand {
    min-width:175px;
  }
.brand strong {
    font-size:17px;
  }
.gallery {
    columns:2;
  }
.board-workspace {
    grid-template-columns:minmax(0,1fr);
  }
.export-panel {
    position:static;
  }
.selection-dock {
    left:calc(50% + 97px);
  }
}
@media(max-width:800px) {
html {
    scroll-padding-top:140px;
  }
.masthead {
    height:auto;
    min-height:120px;
    flex-wrap:wrap;
    gap:10px 16px;
    padding:12px 18px;
  }
.brand {
    flex:1;
    min-width:0;
  }
.brand strong {
    font-size:17px;
  }
.brand-logo {
    width:36px;
    height:36px;
  }
.brand small {
    font-size:9px;
    margin-top:4px;
  }
.search {
    order:3;
    flex-basis:100%;
    max-width:none;
  }
.search input {
    padding:9px 0;
    font-size:12px;
  }
.basket-trigger {
    padding:9px 11px;
    font-size:11px;
  }
.basket-trigger>.icon {
    display:none;
  }
.workspace {
    display:block;
  }
.sidebar {
    height:auto;
    position:static;
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:10px 18px;
    display:flex;
    flex-wrap:wrap;
    gap:4px;
  }
.sidebar>.nav-item {
    width:auto;
    white-space:nowrap;
  }
.sidebar .nav-label {
    display:none;
  }
#category-nav {
    display:contents;
  }
.sidebar .nav-item {
    width:auto;
    min-height:44px;
    font-size:12px;
    padding:9px 10px;
    gap:6px;
  }
.sidebar .nav-item .icon {
    width:16px;
    height:16px;
  }
.sidebar .nav-item span {
    font-size:10px;
  }
main {
    padding:20px 18px 0;
  }
.selection-dock {
    left:50%;
    bottom:16px;
    max-width:calc(100vw - 32px);
    gap:10px;
    padding:8px 10px;
  }
.selection-dock .primary-button {
    font-size:11px;
    padding:9px 12px;
  }
.gallery {
    column-gap:14px;
  }
.card {
    margin-bottom:16px;
  }
.card-caption {
    padding:12px;
  }
.card-title {
    font-size:13px;
  }
.card-format {
    font-size:10px;
  }
.collection-title-row h1 {
    font-size:23px;
  }
.collection-title-row {
    gap:10px;
  }
.detail-grid {
    grid-template-columns:1fr;
  }
.detail-art {
    position:static;
    height:auto;
    border-right:0;
    border-bottom:var(--edge);
    padding:20px;
  }
.zoom-image>img {
    max-height:55dvh;
  }
.detail-content {
    padding:22px;
  }
footer {
    flex-wrap:wrap;
    gap:12px;
  }
footer p {
    order:3;
    width:100%;
  }
}
@media(max-width:480px) {
.gallery {
    columns:2;
    column-gap:10px;
  }
.card-caption {
    padding:10px;
  }
.card-title {
    font-size:12px;
  }
.card-actions {
    gap:2px;
    flex-wrap:wrap;
  }
.add-button {
    padding:7px;
    font-size:10px;
  }
.quick-copy {
    padding:7px 3px;
    font-size:10px;
  }
.card-format {
    line-height:1.7;
    min-height:34px;
  }
.collection-title-row {
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
.subcategories {
    gap:6px;
  }
.subcategories button {
    padding:8px 10px;
    font-size:11px;
  }
.board-item {
    grid-template-columns:80px minmax(0,1fr);
    padding:10px;
    gap:12px;
  }
.board-image img {
    height:105px;
  }
.board-item h2 {
    font-size:13px;
  }
.board-item .card-format {
    min-height:0;
    font-size:9px;
  }
.board-item .remove-button {
    width:34px;
  }
.role-row {
    gap:6px;
  }
.role-row select {
    max-width:116px;
    font-size:11px;
  }
.primary-choice {
    font-size:10px;
    padding:5px 8px;
  }
.role-row>label {
    display:none;
  }
.board-item textarea {
    font-size:11px;
  }
.board-heading h1 {
    font-size:27px;
  }
.board-heading {
    margin:20px 0 25px;
  }
.board-heading p {
    font-size:12px;
  }
.selection-dock {
    font-size:11px;
  }
#dock-thumbnails img {
    width:29px;
    height:33px;
  }
.empty {
    padding:40px 14px;
  }
.empty h2, .empty h3 {
    font-size:18px;
  }
.modal-head {
    padding:8px;
  }
.modal-head>div {
    gap:4px;
  }
#detail-index {
    max-width:145px;
    font-size:10px;
  }
}
@media(prefers-reduced-motion:reduce) {
html {
    scroll-behavior:auto;
  }
*, *::before, *::after {
    transition:none!important;
    animation:none!important;
  }
}

.gallery { margin-top: 24px; }
.asset-format { margin: 12px 0 0; }
.detail-art { background: #f0f0e9; }
@media (max-width: 800px) {
  .sidebar { flex-wrap: nowrap; overflow-x: auto; gap: 6px; align-items: center; }
  .sidebar > .nav-item, .sidebar .nav-item { flex-shrink: 0; }
  #category-nav { display: flex; gap: 6px; }
}
