:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #111827;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  background: var(--primary);
}

.skip-link:focus {
  top: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 11px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-current {
  color: var(--text);
  background: var(--surface-muted);
}

.submit-button,
.primary-button,
.ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  color: #fff;
  background: var(--primary);
  font-weight: 600;
}

.submit-button:hover,
.submit-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.ink-button:hover,
.ink-button:focus-visible {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
}

.page-shell {
  padding-top: 38px;
  padding-bottom: 72px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-heading p {
  margin: 7px 0 0;
  color: var(--text-secondary);
}

.page-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.control-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.search-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.search-icon {
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
}

.search-control input {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-control input::placeholder {
  color: #94a3b8;
}

kbd {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  border-radius: 5px;
  color: var(--text-secondary);
  background: var(--surface-muted);
  font-size: 10px;
  line-height: 1.4;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 12px 16px;
}

.filter-block,
.chip-group,
.select-pair,
.select-pair label {
  display: flex;
  align-items: center;
}

.filter-block {
  gap: 12px;
}

.filter-label,
.select-pair label > span {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 12px;
}

.chip-group {
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 13px;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--text);
  background: var(--surface-muted);
}

.filter-chip.is-active {
  color: var(--primary);
  border-color: #bfdbfe;
  background: var(--primary-soft);
  font-weight: 600;
}

.select-pair {
  gap: 14px;
}

.select-pair label {
  gap: 7px;
}

select,
.form-field input,
.form-field textarea {
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  outline: 0;
}

select {
  min-height: 36px;
  padding: 0 30px 0 10px;
  font-size: 13px;
}

select:focus,
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.result-bar p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.result-bar strong {
  color: var(--text);
}

.quiet-button,
.icon-button {
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: #475569;
  background: var(--surface);
}

.quiet-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.quiet-button:hover,
.quiet-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  color: var(--text);
  border-color: #94a3b8;
  background: var(--surface-muted);
}

.quiet-button.is-active,
.icon-button.is-active {
  color: var(--primary);
  border-color: #93c5fd;
  background: var(--primary-soft);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prompt-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 310px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.prompt-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 11px;
}

.card-index {
  color: var(--primary);
  font-weight: 600;
}

.card-media {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-open {
  width: 100%;
  padding: 18px 0 14px;
  border: 0;
  text-align: left;
  background: transparent;
}

.card-open h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 650;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-card .tag-list {
  margin-top: auto;
}

.tag {
  padding: 3px 8px;
  border-radius: 5px;
  color: #475569;
  background: #f1f5f9;
  font-size: 11px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.card-author {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 11px;
}

.empty-state {
  padding: 80px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  background: var(--surface);
}

.empty-state > span {
  display: block;
  color: #94a3b8;
  font-size: 38px;
}

.empty-state h2 {
  margin: 12px 0 4px;
  font-size: 17px;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--text-secondary);
}

.empty-state > div {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 12px;
}

dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

dialog[open] {
  display: flex;
  justify-content: flex-end;
}

.dialog-sheet {
  width: min(720px, 100%);
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
  animation: sheet-in 180ms ease-out both;
}

.submit-sheet {
  width: min(780px, 100%);
}

.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.dialog-header strong {
  font-size: 16px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--text);
  background: var(--surface-muted);
}

.dialog-body {
  padding: 26px 28px 40px;
}

.detail-index {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.detail-heading {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.detail-summary {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-muted);
}

.detail-meta small,
.detail-meta strong {
  display: block;
}

.detail-meta small {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 10px;
}

.detail-meta strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-paper {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.prompt-paper::before {
  content: "提示词正文";
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
}

.prompt-paper pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.detail-actions > * {
  flex: 1;
}

.submit-intro {
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  color: #1e40af;
  background: var(--primary-soft);
  font-size: 13px;
}

.submit-intro p {
  margin: 0;
}

#submitForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
}

.form-field label b {
  color: var(--danger);
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
}

.form-field textarea {
  width: 100%;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.6;
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 11px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 44px));
  padding: 11px 14px;
  border-radius: 7px;
  color: #fff;
  background: #0f172a;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 150ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .select-pair {
    width: 100%;
  }

  .select-pair label {
    flex: 1;
  }

  .select-pair select {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 58px;
  }

  .brand-copy small,
  .header-nav .nav-link,
  .page-status,
  kbd {
    display: none;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .submit-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .page-shell {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .search-control {
    min-height: 52px;
  }

  .filter-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .select-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .select-pair label {
    align-items: flex-start;
    flex-direction: column;
  }

  .select-pair select {
    width: 100%;
  }

  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    min-height: 280px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .dialog-header {
    padding: 0 16px;
  }

  .dialog-body {
    padding: 20px 16px 30px;
  }

  .detail-meta,
  #submitForm {
    grid-template-columns: 1fr;
  }

  .form-field,
  .form-field-wide {
    grid-column: 1;
  }

  .detail-actions,
  .form-actions {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Pixel station theme ----------------------------------------------------- */

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080a10;
  --surface: #11141d;
  --surface-muted: #171b26;
  --text: #f3f0e8;
  --text-secondary: #9aa2b7;
  --border: #2b3141;
  --border-strong: #485067;
  --primary: #f05d9d;
  --primary-hover: #ff75b3;
  --primary-soft: #2b1726;
  --danger: #ff6b6b;
  --success: #8fdf70;
  --pixel-shadow: #00030a;
  --grid-line: rgba(138, 151, 183, 0.055);
  --lamp-a: #ffd166;
  --lamp-b: #f05d9d;
  --flower: #fff3bd;
  --flower-core: #ffd166;
  --stem: #70ad68;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f1e8;
  --surface: #fffdf7;
  --surface-muted: #eee9de;
  --text: #171717;
  --text-secondary: #5f5a55;
  --border: #b7afa3;
  --border-strong: #282522;
  --primary: #c52f70;
  --primary-hover: #991e53;
  --primary-soft: #ffe3ef;
  --danger: #b91c1c;
  --success: #3b7f31;
  --pixel-shadow: #26211e;
  --grid-line: rgba(38, 33, 30, 0.055);
  --lamp-a: #d69b20;
  --lamp-b: #c52f70;
  --flower: #fff4b7;
  --flower-core: #cc8a00;
  --stem: #4d7a45;
}

body {
  position: relative;
  isolation: isolate;
  font-family: "Courier New", "Microsoft YaHei", monospace;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  image-rendering: pixelated;
  transition: color 120ms steps(2), background-color 120ms steps(2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(var(--lamp-a), var(--lamp-a)) 7% 22% / 3px 3px no-repeat,
    linear-gradient(var(--lamp-b), var(--lamp-b)) 14% 66% / 4px 4px no-repeat,
    linear-gradient(var(--lamp-a), var(--lamp-a)) 87% 18% / 4px 4px no-repeat,
    linear-gradient(var(--lamp-b), var(--lamp-b)) 94% 47% / 3px 3px no-repeat,
    linear-gradient(var(--lamp-a), var(--lamp-a)) 78% 81% / 4px 4px no-repeat,
    linear-gradient(var(--lamp-b), var(--lamp-b)) 4% 88% / 3px 3px no-repeat;
  opacity: 0.7;
}

[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 84px;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 8%, #273047 8% 13%, transparent 13% 17%, #273047 17% 26%, transparent 26% 31%, #273047 31% 36%, transparent 36% 45%, #273047 45% 57%, transparent 57% 63%, #273047 63% 70%, transparent 70% 78%, #273047 78% 91%, transparent 91%),
    linear-gradient(90deg, transparent 0 10%, var(--lamp-a) 10% 10.5%, transparent 10.5% 19%, var(--lamp-b) 19% 19.5%, transparent 19.5% 48%, var(--lamp-a) 48% 48.5%, transparent 48.5% 66%, var(--lamp-b) 66% 66.5%, transparent 66.5% 83%, var(--lamp-a) 83% 83.5%, transparent 83.5%);
  background-size: 100% 100%, 100% 38px;
  background-position: bottom, bottom 20px left;
  background-repeat: no-repeat;
}

button,
input,
select,
textarea,
.brand-mark,
.submit-button,
.primary-button,
.ink-button,
.nav-link,
.theme-switch,
.theme-switch button,
.control-panel,
.filter-chip,
.quiet-button,
.icon-button,
.prompt-card,
.tag,
.empty-state,
.dialog-sheet,
.dialog-close,
.detail-meta div,
.prompt-paper,
.submit-intro,
.toast,
kbd {
  border-radius: 0 !important;
}

.site-header {
  height: 70px;
  border-bottom: 2px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 3px 0 var(--pixel-shadow);
}

.brand {
  min-width: 290px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--text);
  color: var(--surface);
  background: var(--primary);
  box-shadow: 3px 3px 0 var(--flower-core);
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--text-secondary);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.header-nav {
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-current {
  color: var(--text);
  background: var(--surface-muted);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.theme-switch {
  display: flex;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  color: var(--text-secondary);
  background: transparent;
  font-size: 11px;
}

.theme-switch button + button {
  border-left: 1px solid var(--border-strong);
}

.theme-switch button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--text);
}

.theme-pixel {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
}

.theme-pixel-dark {
  background: #080a10;
}

.theme-pixel-light {
  background: #fffdf7;
}

.submit-button,
.primary-button,
.ink-button {
  border-width: 2px;
  color: #fff;
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.submit-button:active,
.primary-button:active,
.ink-button:active,
.quiet-button:active,
.icon-button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--pixel-shadow);
}

.page-shell {
  padding-top: 42px;
}

.page-heading {
  position: relative;
  min-height: 150px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--pixel-shadow);
  overflow: hidden;
}

.page-heading::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px dashed var(--border);
}

.heading-copy,
.heading-side {
  position: relative;
  z-index: 1;
}

.page-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.page-heading h1 {
  color: var(--text);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.06em;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--primary) 40%, transparent);
}

.page-heading p {
  color: var(--text-secondary);
}

.heading-side {
  display: flex;
  align-items: center;
  gap: 28px;
}

.page-status {
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot {
  border-radius: 0;
  background: var(--success);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--success) 26%, transparent);
  animation: pixel-blink 1.8s steps(2, end) infinite;
}

.pixel-jasmine {
  width: 176px;
  height: 96px;
  filter: drop-shadow(4px 4px 0 var(--pixel-shadow));
  shape-rendering: crispEdges;
}

.jasmine-stem {
  fill: var(--stem);
}

.jasmine-petal {
  fill: var(--flower);
}

.jasmine-core {
  fill: var(--flower-core);
}

.control-panel {
  border-width: 2px;
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--pixel-shadow);
}

.search-control {
  border-bottom: 2px solid var(--border-strong);
}

.search-icon {
  color: var(--primary);
}

.search-control input,
select,
.form-field input,
.form-field textarea {
  color: var(--text);
  background-color: var(--surface);
}

.search-control input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.72;
}

kbd {
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  background: var(--surface-muted);
  box-shadow: 2px 2px 0 var(--pixel-shadow);
}

.filter-chip.is-active {
  color: var(--surface);
  border-color: var(--text);
  background: var(--text);
  box-shadow: 2px 2px 0 var(--primary);
}

.filter-chip:hover,
.filter-chip:focus-visible,
.quiet-button:hover,
.quiet-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.result-bar {
  margin-top: 8px;
}

.prompt-grid {
  gap: 18px;
}

.prompt-card {
  position: relative;
  min-height: 326px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  transition: transform 100ms steps(2), box-shadow 100ms steps(2), border-color 100ms steps(2);
}

.prompt-card::before,
.prompt-card::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--primary);
}

.prompt-card::before {
  top: -2px;
  left: -2px;
}

.prompt-card::after {
  right: -2px;
  bottom: -2px;
}

.prompt-card:hover {
  border-color: var(--primary);
  box-shadow: 7px 7px 0 var(--pixel-shadow);
  transform: translate(-2px, -2px);
}

.card-index {
  color: var(--primary);
  font-weight: 700;
}

.card-open h3 {
  color: var(--text);
  font-size: 17px;
}

.card-summary,
.card-author,
.card-media,
.result-bar p,
.filter-label,
.select-pair label > span {
  color: var(--text-secondary);
}

.tag {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface-muted);
}

.card-footer {
  border-top-color: var(--border);
}

.quiet-button,
.icon-button {
  border-width: 1px;
  color: var(--text-secondary);
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--pixel-shadow);
}

.quiet-button.is-active,
.icon-button.is-active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.empty-state {
  border-width: 2px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--pixel-shadow);
}

.site-footer {
  border-top: 2px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 -3px 0 var(--pixel-shadow);
}

.footer-inner {
  color: var(--text-secondary);
}

dialog::backdrop {
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: none;
}

.dialog-sheet {
  border-left: 2px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
  box-shadow: -7px 0 0 var(--pixel-shadow);
}

.dialog-header {
  border-bottom: 2px solid var(--border-strong);
  background: var(--surface);
}

.dialog-close {
  color: var(--text-secondary);
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--surface);
  background: var(--text);
}

.detail-heading {
  color: var(--text);
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--primary) 32%, transparent);
}

.detail-meta div,
.prompt-paper {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-muted);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
}

.prompt-paper pre {
  color: var(--text);
  font-family: "Courier New", "Microsoft YaHei", monospace;
}

.submit-intro {
  border: 2px solid var(--primary);
  color: var(--text);
  background: var(--primary-soft);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
}

.toast {
  border: 2px solid var(--text);
  color: var(--surface);
  background: var(--text);
  box-shadow: 4px 4px 0 var(--primary);
}

@keyframes pixel-blink {
  0%, 72% { opacity: 1; }
  73%, 100% { opacity: 0.36; }
}

@media (max-width: 980px) {
  .brand {
    min-width: auto;
  }

  .nav-link {
    display: none;
  }

  .heading-side {
    gap: 12px;
  }

  .pixel-jasmine {
    width: 140px;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 62px;
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 13px;
  }

  .brand-copy strong {
    max-width: 138px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy small {
    display: none;
  }

  .header-nav {
    gap: 5px;
  }

  .theme-switch button {
    width: 31px;
    padding: 4px;
    justify-content: center;
    font-size: 0;
  }

  .theme-pixel {
    width: 10px;
    height: 10px;
  }

  .submit-button {
    padding: 6px 8px;
    font-size: 11px;
  }

  .page-heading {
    min-height: 190px;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .heading-side {
    width: 100%;
    justify-content: space-between;
  }

  .pixel-jasmine {
    width: 128px;
    height: 70px;
  }

  .prompt-card {
    min-height: 292px;
  }
}

/* v0.5 — public prompt commons */
:root {
  color-scheme: dark;
  --bg: #090a11; --surface: #11131c; --surface-muted: #151824; --text: #f2f1ec;
  --text-secondary: #9699aa; --border: #292c3a; --border-strong: #414656;
  --primary: #d8ff65; --primary-hover: #edffad; --primary-soft: #1c2616;
  --accent: #8d7cff; --cyan: #6ee7ef; --danger: #ff6e91; --shadow: 8px 8px 0 rgba(0,0,0,.28);
  --radius: 0; font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
}

:root[data-theme="light"] {
  color-scheme: light; --bg: #f0efe9; --surface: #faf9f4; --surface-muted: #e9e7df; --text: #15151b;
  --text-secondary: #60616a; --border: #c9c6bc; --border-strong: #8b897f; --primary: #5b4fd6;
  --primary-hover: #4438bd; --primary-soft: #e6e2ff; --accent: #5b4fd6; --cyan: #087c83; --shadow: 7px 7px 0 rgba(21,21,27,.14);
}

body { background-color: var(--bg); background-image: linear-gradient(rgba(141,124,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(141,124,255,.035) 1px, transparent 1px); background-size: 24px 24px; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.42; background:radial-gradient(circle at 82% 12%, rgba(89,70,203,.18), transparent 24%),radial-gradient(circle at 14% 80%, rgba(81,196,203,.08), transparent 25%); }
button, input, select, textarea { border-radius:0; }
.site-shell { position:relative; z-index:1; min-height:100vh; }
.site-header { display:flex; align-items:center; justify-content:space-between; width:min(1320px, calc(100% - 40px)); height:72px; margin:0 auto; border-bottom:1px solid var(--border); background:color-mix(in srgb, var(--bg) 88%, transparent); }
.brand { gap:12px; }
.brand-pixel { display:grid; place-items:center; width:38px; height:38px; color:var(--bg); background:var(--primary); border:1px solid var(--primary); box-shadow:3px 3px 0 color-mix(in srgb, var(--primary) 30%, transparent); font-size:21px; }
.brand strong,.brand small { display:block; }.brand strong{font-size:15px;letter-spacing:.03em}.brand small{margin-top:2px;color:var(--text-secondary);font-size:9px;letter-spacing:.16em}
.header-actions{display:flex;align-items:center;gap:9px}.nav-link{font-size:12px;text-decoration:none;color:var(--text-secondary)}
.segmented{display:flex;border:1px solid var(--border)}.segmented button{min-width:34px;padding:6px 8px;border:0;border-right:1px solid var(--border);color:var(--text-secondary);background:transparent;font-size:10px}.segmented button:last-child{border-right:0}.segmented button.active{color:var(--bg);background:var(--primary)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border:1px solid var(--border-strong);color:var(--text);background:var(--surface);font-size:11px;font-weight:700;text-decoration:none;letter-spacing:.02em}.button:hover{transform:translate(-1px,-1px);box-shadow:3px 3px 0 rgba(0,0,0,.25)}.button-primary{color:var(--bg);border-color:var(--primary);background:var(--primary)}.button-ghost{background:transparent}
main,.site-footer{width:min(1320px, calc(100% - 40px));margin:0 auto}
.hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:64px;align-items:center;min-height:540px;padding:80px 5vw;border-bottom:1px solid var(--border)}
.hero-copy{max-width:760px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--primary);font-size:10px;font-weight:700;letter-spacing:.14em}.live-dot{width:7px;height:7px;background:var(--primary);box-shadow:0 0 12px var(--primary)}
.hero h1{max-width:820px;margin:24px 0 22px;font-family:"Microsoft YaHei",sans-serif;font-size:clamp(38px,4.2vw,67px);font-weight:800;line-height:1.12;letter-spacing:-.045em}.hero-copy>p{max-width:710px;color:var(--text-secondary);font-size:15px;line-height:1.9}.hero-actions{display:flex;gap:10px;margin-top:30px}.status-strip{display:flex;flex-wrap:wrap;gap:0;margin-top:38px;border:1px solid var(--border);width:max-content;max-width:100%}.status-strip span{padding:7px 10px;border-right:1px solid var(--border);color:var(--text-secondary);font-size:9px}.status-strip span:last-child{border:0}.status-strip b{color:var(--primary)}
.hero-terminal{border:1px solid var(--border-strong);background:var(--surface);box-shadow:var(--shadow)}.terminal-bar{display:flex;align-items:center;gap:6px;padding:9px 12px;border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:9px}.terminal-bar i{width:7px;height:7px;background:var(--border-strong)}.terminal-bar i:first-child{background:var(--danger)}.terminal-bar span{margin-left:auto}.terminal-art{position:relative;min-height:250px;padding:44px 24px;color:var(--cyan);overflow:hidden;background:linear-gradient(135deg,rgba(141,124,255,.08),transparent)}.terminal-art pre{font:13px/1.9 "Cascadia Code",monospace;white-space:pre}.moon{position:absolute;right:26px;top:20px;color:var(--primary);font-size:44px}.terminal-line{padding:10px 14px;border-top:1px solid var(--border);color:var(--text-secondary);font-size:9px}.terminal-line b{color:var(--primary)}.cursor{animation:blink 1s steps(1) infinite}@keyframes blink{50%{opacity:0}}
.archive{padding:72px 0 100px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.section-heading>div{display:flex;align-items:center;gap:12px}.section-index{color:var(--primary);font-size:10px}.section-heading h2{margin:0;font-size:20px;letter-spacing:.06em}.section-heading output{color:var(--text-secondary);font-size:11px}
.media-tabs{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--border-strong);margin-bottom:12px}.media-tabs button{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;border:0;border-right:1px solid var(--border);color:var(--text-secondary);background:var(--surface);font-weight:700}.media-tabs button:last-child{border:0}.media-tabs button.active{color:var(--bg);background:var(--primary)}.tab-icon{font-size:14px}
.filter-panel{display:grid;grid-template-columns:minmax(230px,1fr) 150px 150px 135px auto auto;gap:8px;align-items:end;padding:13px;border:1px solid var(--border);background:var(--surface)}.filter-panel label>span{display:block;margin-bottom:5px;color:var(--text-secondary);font-size:8px;text-transform:uppercase}.filter-panel input,.filter-panel select,.submit-panel input,.submit-panel select,.submit-panel textarea{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--border);outline:none;color:var(--text);background:var(--bg)}.filter-panel input:focus,.filter-panel select:focus,.submit-panel input:focus,.submit-panel select:focus,.submit-panel textarea:focus{border-color:var(--primary)}.search-field{position:relative}.search-field>span{position:absolute;left:11px;bottom:7px;font-size:16px}.search-field input{padding-left:34px}.button-filter.active{color:var(--bg);border-color:var(--primary);background:var(--primary)}
.prompt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.prompt-card{display:flex;flex-direction:column;min-height:0;border:1px solid var(--border);background:var(--surface);box-shadow:none;overflow:hidden}.prompt-card:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:5px 5px 0 rgba(0,0,0,.18)}
.prompt-visual{position:relative;display:grid;place-items:center;height:148px;overflow:hidden;border-bottom:1px solid var(--border);background:#161827}.prompt-visual::before,.prompt-visual::after{content:"";position:absolute}.prompt-visual::before{inset:20% 10%;border:1px solid currentColor;opacity:.28;transform:skew(-12deg)}.prompt-visual::after{width:120px;height:120px;border:14px solid currentColor;opacity:.12;transform:rotate(45deg)}.tone-violet{color:#9d8cff;background:linear-gradient(135deg,#12121d,#251b3b)}.tone-cyan{color:#72eaf0;background:linear-gradient(135deg,#0e1820,#15323a)}.tone-jasmine{color:#d8ff65;background:linear-gradient(135deg,#121711,#28311c)}.tone-amber{color:#ffc76e;background:linear-gradient(135deg,#1c1511,#3d2815)}.tone-magenta{color:#ff79bd;background:linear-gradient(135deg,#1e111b,#3b1931)}.tone-blue{color:#79a8ff;background:linear-gradient(135deg,#101522,#182a4d)}.tone-silver{color:#d3d3cf;background:linear-gradient(135deg,#16171b,#343641)}.tone-indigo{color:#9ba8ff;background:linear-gradient(135deg,#111529,#242954)}.tone-local{color:var(--primary);background:linear-gradient(135deg,var(--surface),var(--primary-soft))}.visual-type,.visual-code{position:absolute;z-index:2;padding:4px 6px;color:currentColor;background:rgba(0,0,0,.45);font-size:8px;letter-spacing:.12em}.visual-type{left:10px;top:10px}.visual-code{right:10px;bottom:9px}.pixel-flower{position:relative;z-index:1;color:currentColor;font-size:48px;text-shadow:13px 9px 0 color-mix(in srgb,currentColor 20%,transparent),-15px 15px 0 color-mix(in srgb,currentColor 12%,transparent)}
.card-body{flex:1;padding:16px}.card-meta{display:flex;align-items:center;gap:7px;color:var(--text-secondary);font-size:8px;text-transform:uppercase}.type-chip{padding:3px 6px;color:var(--cyan);border:1px solid currentColor}.type-chip.video{color:#ff9ecb}.card-body h3{margin:13px 0 8px;font-family:"Microsoft YaHei",sans-serif;font-size:18px;line-height:1.35}.card-body p{display:-webkit-box;min-height:43px;margin:0;color:var(--text-secondary);font-size:11px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.tag-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:13px}.tag-row span{padding:3px 5px;color:var(--text-secondary);background:var(--surface-muted);font-size:8px}.card-spec{display:flex;justify-content:space-between;margin-top:15px;padding-top:10px;border-top:1px dashed var(--border);color:var(--text-secondary);font-size:8px}.card-actions{display:grid;grid-template-columns:34px 34px 90px 1fr;border-top:1px solid var(--border)}.card-actions button{min-height:38px;border:0;border-right:1px solid var(--border);background:transparent}.card-actions button:last-child{border:0}.icon-button.active{color:var(--danger)}.button-copy,.button-details{font-size:9px}.button-details{color:var(--primary)}
.empty-state{grid-column:1/-1;padding:70px 20px;text-align:center;border:1px dashed var(--border)}.empty-state b{color:var(--danger);font-size:10px}.empty-state h3{margin:12px 0 5px}.empty-state p{color:var(--text-secondary)}
.site-footer{display:flex;align-items:center;justify-content:space-between;padding:30px 0;border-top:1px solid var(--border);font-size:10px}.site-footer p{margin:5px 0;color:var(--text-secondary)}.footer-actions{display:flex;align-items:center;gap:16px}.footer-actions button{padding:0;border:0;color:var(--text-secondary);background:transparent}.footer-actions span{padding:5px 7px;color:var(--primary);border:1px solid var(--primary)}
.pixel-dialog,.age-dialog{max-width:none;width:100%;height:100%;padding:20px;border:0;background:transparent}.pixel-dialog::backdrop,.age-dialog::backdrop{background:rgba(3,4,8,.82);backdrop-filter:blur(7px)}.dialog-panel{position:relative;width:min(900px,100%);max-height:calc(100vh - 40px);margin:auto;padding:30px;border:1px solid var(--border-strong);background:var(--surface);box-shadow:10px 10px 0 rgba(0,0,0,.35);overflow:auto}.dialog-close{position:absolute;z-index:5;right:12px;top:12px;width:34px;height:34px;border:1px solid var(--border);color:var(--text);background:var(--bg);font-size:20px}.detail-panel{padding:0}.detail-visual{height:220px}.detail-header{padding:25px 30px 14px}.detail-header h2{margin:12px 0 8px;font-size:28px}.detail-header p{margin:0;color:var(--text-secondary)}.detail-specs{display:grid;grid-template-columns:repeat(4,1fr);margin:10px 30px;border:1px solid var(--border)}.detail-specs div{padding:12px;border-right:1px solid var(--border)}.detail-specs div:last-child{border:0}.detail-specs small,.detail-notes small{display:block;color:var(--text-secondary);font-size:8px}.detail-specs b{font-size:10px}.prompt-block{margin:20px 30px;border:1px solid var(--border)}.prompt-block>div{display:flex;justify-content:space-between;padding:8px 10px;border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:9px}.prompt-block button{border:0;color:var(--primary);background:transparent}.prompt-block pre{max-height:250px;margin:0;padding:16px;white-space:pre-wrap;color:var(--text);font:11px/1.75 inherit;overflow:auto}.detail-notes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 30px}.detail-notes>div{padding:12px;background:var(--surface-muted)}.detail-notes p{margin:5px 0 0;font-size:11px}.detail-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 30px;color:var(--text-secondary);font-size:9px}.detail-footer>div{display:flex;gap:7px}
.dialog-heading{margin-bottom:22px}.dialog-heading>span{color:var(--primary);font-size:9px}.dialog-heading h2{margin:7px 0}.dialog-heading p{color:var(--text-secondary)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.submit-panel label>span,.video-fields legend{display:block;margin-bottom:5px;color:var(--text-secondary);font-size:9px}.full-field{display:block;margin:12px 0}.video-fields{margin:12px 0;padding:12px;border:1px dashed var(--border)}.video-fields[hidden]{display:none}.upload-note{padding:10px;border-left:2px solid var(--primary);color:var(--text-secondary);background:var(--surface-muted);font-size:9px}.consent-row{display:flex;gap:9px;align-items:flex-start;margin:14px 0}.consent-row input{width:16px;min-height:16px}.consent-row span{font-size:10px;line-height:1.6}.form-error{min-height:18px;color:var(--danger);font-size:10px}.form-actions{display:flex;justify-content:flex-end;gap:8px}.info-panel{width:min(560px,100%);padding:45px}.info-panel .age-mark{display:inline-block;padding:5px 8px;color:var(--bg);background:var(--primary);font-weight:800}.info-panel p{color:var(--text-secondary);line-height:1.8}
.age-dialog{display:none}.age-dialog[open]{display:grid;place-items:center}.age-panel{width:min(590px,100%);padding:42px;border:1px solid var(--border-strong);background:var(--surface);box-shadow:12px 12px 0 rgba(0,0,0,.5);text-align:left}.age-ascii{float:right;color:var(--primary);font-size:28px;text-align:center}.age-ascii b{font-size:46px}.age-panel h2{max-width:430px;margin:22px 0 14px;font-size:30px}.age-panel>p{color:var(--text-secondary);line-height:1.8}.age-actions{display:flex;gap:8px;margin-top:25px}.age-message{min-height:18px;color:var(--danger)!important;font-size:10px}.toast{position:fixed;z-index:1000;left:50%;bottom:24px;padding:10px 15px;color:var(--bg);background:var(--primary);font-size:10px;font-weight:700;transform:translate(-50%,30px);opacity:0;transition:.18s}.toast.show{transform:translate(-50%,0);opacity:1}

@media (max-width:1050px){.hero{grid-template-columns:1fr;gap:35px;padding:60px 3vw}.hero-terminal{max-width:640px}.prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-panel{grid-template-columns:1fr 1fr 1fr}.search-field{grid-column:1/-1}}
@media (max-width:720px){.site-header,main,.site-footer{width:calc(100% - 20px)}.site-header{height:auto;min-height:64px;padding:8px 0}.brand strong{max-width:142px;font-size:11px}.brand small,.nav-link,.theme-switch,.header-submit span:last-child{display:none}.header-actions{gap:5px}.header-submit{width:34px;padding:0}.hero{min-height:0;padding:55px 4px}.hero h1{font-size:36px}.hero-copy>p{font-size:13px}.status-strip{width:100%}.status-strip span{flex:1;min-width:120px}.hero-terminal{display:none}.archive{padding:48px 0 70px}.media-tabs button{padding:12px 4px;font-size:10px}.filter-panel{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.prompt-grid{grid-template-columns:1fr}.prompt-visual{height:172px}.site-footer{align-items:flex-start;flex-direction:column;gap:16px}.footer-actions{flex-wrap:wrap}.dialog-panel{padding:20px}.detail-panel{padding:0}.detail-header,.detail-footer{padding-left:18px;padding-right:18px}.detail-specs{grid-template-columns:1fr 1fr;margin:10px 18px}.detail-specs div:nth-child(2){border-right:0}.detail-specs div:nth-child(-n+2){border-bottom:1px solid var(--border)}.prompt-block,.detail-notes{margin-left:18px;margin-right:18px}.detail-notes{grid-template-columns:1fr}.detail-footer{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.age-panel{padding:28px}.age-panel h2{font-size:25px}.age-ascii{font-size:20px}.age-ascii b{font-size:34px}.age-actions{flex-direction:column}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* v0.6 — minimal pixel jasmine */
:root {
  --primary: #e7ff91;
  --jasmine: #fff8d8;
  --leaf: #8ebf6c;
  --pixel-shadow: 4px 4px 0 #05060a;
}
:root[data-theme="light"] {
  --primary: #4e5f20;
  --jasmine: #fffdf0;
  --leaf: #4f6d3c;
  --pixel-shadow: 4px 4px 0 rgba(21,21,27,.16);
}

.site-header { height: 62px; }
.brand-pixel { width: 32px; height: 32px; font-size: 17px; box-shadow: 3px 3px 0 rgba(0,0,0,.3); }
.brand strong { font-size: 13px; }
.header-actions { gap: 7px; }

.hero {
  grid-template-columns: minmax(0, .9fr) minmax(330px, .65fr);
  min-height: 390px;
  gap: 48px;
  padding: 52px 7vw;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin: 17px 0 12px; font-size: clamp(38px, 4.1vw, 62px); line-height: 1.08; }
.hero-copy > p { margin: 0; color: var(--text-secondary); font: 10px/1.5 "Cascadia Code", monospace; letter-spacing: .16em; }
.hero-actions { margin-top: 24px; }
.hero-actions .button { min-width: 112px; }

.jasmine-scene {
  position: relative;
  width: min(430px, 100%);
  height: 250px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: #0d1018;
  background-image: linear-gradient(rgba(231,255,145,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(231,255,145,.035) 1px, transparent 1px);
  background-size: 12px 12px;
  box-shadow: var(--pixel-shadow);
}
:root[data-theme="light"] .jasmine-scene { background-color: #252b28; }
.jasmine-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 27px; height: 1px; background: rgba(255,255,255,.09); }
.pixel-moon { position: absolute; right: 34px; top: 29px; width: 56px; height: 56px; background: var(--primary); box-shadow: -8px 8px 0 #0d1018; }
.pixel-moon::after { content:""; position:absolute; right:-4px; bottom:-4px; width:7px; height:7px; background:var(--primary); }
.pixel-stars i { position:absolute; width:4px; height:4px; background:var(--jasmine); box-shadow:0 0 8px rgba(255,248,216,.65); }
.pixel-stars i:nth-child(1){left:13%;top:18%}.pixel-stars i:nth-child(2){left:43%;top:12%}.pixel-stars i:nth-child(3){left:68%;top:38%}.pixel-stars i:nth-child(4){left:26%;top:43%}
.pixel-branch i { position:absolute; z-index:1; height:6px; background:var(--leaf); transform-origin:left center; }
.pixel-branch i:nth-child(1){width:245px;left:58px;top:174px;transform:rotate(-15deg)}
.pixel-branch i:nth-child(2){width:110px;left:154px;top:142px;transform:rotate(-54deg)}
.pixel-branch i:nth-child(3){width:84px;left:233px;top:154px;transform:rotate(35deg)}
.pixel-branch i:nth-child(4){width:65px;left:91px;top:164px;transform:rotate(47deg)}
.jasmine-flower { position:absolute; z-index:2; width:38px; height:38px; filter:drop-shadow(3px 3px 0 rgba(0,0,0,.3)); }
.jasmine-flower i { position:absolute; width:13px; height:13px; background:var(--jasmine); }
.jasmine-flower i:nth-child(1){left:13px;top:0}.jasmine-flower i:nth-child(2){right:0;top:11px}.jasmine-flower i:nth-child(3){right:5px;bottom:0}.jasmine-flower i:nth-child(4){left:4px;bottom:0}.jasmine-flower i:nth-child(5){left:0;top:11px}.jasmine-flower b{position:absolute;z-index:2;left:15px;top:15px;width:8px;height:8px;background:#d8be55}
.flower-a{left:76px;top:116px;transform:scale(.85)}.flower-b{left:144px;top:119px;transform:scale(1.15)}.flower-c{left:238px;top:92px;transform:scale(.9)}.flower-d{left:286px;top:159px;transform:scale(.72)}
.scene-label { position:absolute; left:12px; bottom:8px; color:rgba(255,255,255,.4); font-size:7px; letter-spacing:.18em; }

.archive { padding: 48px 0 86px; }
.section-heading { margin-bottom: 14px; }
.section-heading h2 { font-size: 15px; }
.media-tabs { max-width: 620px; margin-bottom: 9px; }
.media-tabs button { padding: 11px 8px; font-size: 10px; }
.filter-panel { padding: 9px; }
.filter-panel label > span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.filter-panel input, .filter-panel select { min-height: 34px; font-size: 10px; }
.search-field > span { width: auto !important; height: auto !important; left: 11px; bottom: 5px; clip: auto !important; }
.filter-panel .button { min-height: 34px; padding: 6px 10px; }

.prompt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.prompt-card { border-color: var(--border); }
.prompt-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 rgba(0,0,0,.32); }
.prompt-visual { height: 136px; }
.prompt-visual::before { inset: 26% 16%; }
.prompt-visual::after { width: 90px; height: 90px; border-width: 10px; }
.prompt-visual .pixel-flower { font-size: 41px; }
.card-body { padding: 13px; }
.card-body h3 { min-height: 39px; margin: 11px 0 9px; font-size: 15px; line-height: 1.3; }
.card-body p { display: none; }
.tag-row { margin-top: 0; flex-wrap: nowrap; overflow: hidden; }
.tag-row span { white-space: nowrap; }
.card-spec { margin-top: 11px; padding-top: 8px; }
.card-actions { grid-template-columns: 32px 32px 74px 1fr; }
.card-actions button { min-height: 35px; }
.button-details { padding-left: 4px; padding-right: 4px; }

.site-footer { padding: 22px 0; }

@media (max-width: 1120px) {
  .prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-left: 3vw; padding-right: 3vw; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .7fr; }
  .jasmine-scene { height: 220px; }
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { min-height: 58px; }
  .brand-pixel { width: 30px; height: 30px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 42px 4px 36px; }
  .hero h1 { font-size: 38px; }
  .jasmine-scene { display: block; width: 100%; height: 190px; justify-self: stretch; }
  .pixel-branch { transform: translate(-16px,-10px); }
  .flower-a,.flower-b,.flower-c,.flower-d { margin-left: -16px; margin-top: -10px; }
  .media-tabs { max-width: none; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-visual { height: 158px; }
  .card-body h3 { min-height: 0; }
}

/* v0.7 — readability pass */
:root {
  --font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-pixel: "Cascadia Code", Consolas, monospace;
  --text-secondary: #b9bdca;
  --border: #373b4a;
  --border-strong: #626778;
  font-family: var(--font-ui);
  font-size: 16px;
}
:root[data-theme="light"] {
  --text-secondary: #4d505a;
  --border: #b5b2a8;
  --border-strong: #74746c;
}

body { font-family: var(--font-ui); line-height: 1.65; }
button, input, select, textarea { font-family: var(--font-ui); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.brand strong { font-size: 16px; font-weight: 800; }
.brand-pixel { width: 36px; height: 36px; font-size: 20px; }
.segmented button { min-width: 39px; min-height: 36px; padding: 7px 9px; font: 700 12px/1 var(--font-pixel); }
.button { min-height: 42px; padding: 10px 15px; font-size: 13px; line-height: 1.2; }
.header-submit { font-weight: 800; }

.eyebrow { font: 700 12px/1.4 var(--font-pixel); }
.hero-copy > p { font: 700 14px/1.6 var(--font-ui); letter-spacing: .09em; }
.hero-actions .button { min-width: 128px; }
.scene-label { font-size: 9px; }

.section-index { font: 700 12px/1 var(--font-pixel); }
.section-heading h2 { font: 800 19px/1.3 var(--font-pixel); }
.section-heading output { font-size: 13px; font-weight: 700; }
.media-tabs button { min-height: 46px; padding: 12px 10px; font-size: 14px; }
.tab-icon { font-size: 17px; }

.filter-panel { grid-template-columns: minmax(260px, 1fr) 160px 160px 145px auto auto; gap: 9px; padding: 11px; }
.filter-panel input, .filter-panel select { min-height: 42px; padding: 9px 11px; font-size: 14px; font-weight: 600; }
.filter-panel .button { min-height: 42px; font-size: 12px; }
.search-field > span { bottom: 8px; font-size: 19px; }

.prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.prompt-visual { height: 165px; }
.visual-type, .visual-code { padding: 5px 7px; font: 700 10px/1.2 var(--font-pixel); }
.card-body { padding: 17px; }
.card-meta { gap: 8px; font: 700 11px/1.4 var(--font-pixel); }
.type-chip { padding: 4px 7px; }
.card-body h3 { min-height: 50px; margin: 14px 0 12px; font-size: 19px; line-height: 1.35; }
.tag-row { gap: 7px; }
.tag-row span { padding: 4px 7px; font: 600 11px/1.3 var(--font-ui); }
.card-spec { margin-top: 14px; padding-top: 11px; font-size: 11px; font-weight: 700; }
.card-actions { grid-template-columns: 42px 42px 92px 1fr; }
.card-actions button { min-height: 44px; font-size: 12px; }
.icon-button { font-size: 17px !important; }
.button-copy, .button-details { font-size: 12px; font-weight: 800; }

.site-footer { font-size: 12px; }
.footer-actions button, .footer-actions span { font-size: 12px; }
.dialog-close { width: 40px; height: 40px; font-size: 24px; }
.dialog-heading > span, .detail-specs small, .detail-notes small, .prompt-block > div { font-size: 11px; }
.dialog-heading p, .info-panel p { font-size: 14px; }
.submit-panel label > span, .video-fields legend { font-size: 12px; font-weight: 700; }
.submit-panel input, .submit-panel select, .submit-panel textarea { min-height: 43px; font-size: 14px; }
.consent-row span, .form-error, .upload-note { font-size: 12px; }
.detail-header p, .detail-notes p { font-size: 14px; }
.detail-specs b { font-size: 13px; }
.prompt-block pre { font-size: 14px; line-height: 1.8; }
.detail-footer { font-size: 12px; }

@media (max-width: 1120px) {
  .filter-panel { grid-template-columns: 1fr 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brand strong { font-size: 13px; }
  .language-switch button { min-width: 34px; padding: 6px; }
  .hero-copy > p { font-size: 13px; }
  .section-heading h2 { font-size: 16px; }
  .media-tabs button { font-size: 12px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-panel .search-field { grid-column: 1 / -1; }
  .filter-panel input, .filter-panel select { font-size: 13px; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-visual { height: 180px; }
  .card-body h3 { min-height: 0; font-size: 19px; }
}

/* v0.8 — pseudonymous accounts and contribution history */
.button-account { max-width: 190px; background: transparent; }
.button-account [data-account-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 1px solid var(--text-secondary); background: transparent; }
.button-account.signed-in { border-color: var(--primary); color: var(--primary); }
.button-account.signed-in .account-dot { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 9px color-mix(in srgb, var(--primary) 65%, transparent); }

.account-panel { width: min(680px, 100%); }
.identity-guide { display: grid; grid-template-columns: 54px 1fr; gap: 16px; margin: 22px 0; padding: 18px; border: 1px solid var(--primary); background: var(--primary-soft); box-shadow: 4px 4px 0 var(--pixel-shadow); }
.guide-number { display: grid; place-items: center; width: 46px; height: 46px; color: var(--bg); background: var(--primary); font: 900 13px/1 var(--font-pixel); }
.identity-guide b { font-size: 16px; }
.identity-guide p { margin: 5px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.65; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; border: 1px solid var(--border); }
.auth-tabs button { min-height: 42px; border: 0; border-right: 1px solid var(--border); color: var(--text-secondary); background: transparent; font-size: 13px; font-weight: 800; }
.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button.active { color: var(--bg); background: var(--primary); }
.auth-form { display: grid; gap: 10px; }
.auth-form[hidden] { display: none; }
.auth-form > label:not(.consent-row) > span { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 12px; font-weight: 800; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border-strong); color: var(--text); background: var(--bg); font-size: 15px; }
.auth-form .consent-row input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin-top: 2px; }
.field-hint { margin: -5px 0 2px; color: var(--text-secondary); font-size: 11px; }
.auth-submit { width: 100%; min-height: 48px; margin-top: 4px; font-size: 14px; }
.auth-submit:disabled, .form-actions button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .55; }
.recovery-intro { margin: 0 0 8px; padding: 12px; border-left: 3px solid var(--primary); color: var(--text-secondary); background: var(--surface-muted); font-size: 13px; }

.recovery-view[hidden], #profile-view[hidden], #auth-view[hidden] { display: none; }
.success-pixel { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; color: var(--bg); background: var(--primary); font: 900 24px/1 var(--font-pixel); box-shadow: 4px 4px 0 var(--pixel-shadow); }
.recovery-code { display: grid; grid-template-columns: 1fr auto; margin: 22px 0 12px; border: 2px solid var(--primary); background: var(--bg); }
.recovery-code code { padding: 17px; color: var(--primary); font: 800 clamp(14px, 3vw, 21px)/1.2 var(--font-pixel); letter-spacing: .07em; text-align: center; overflow-wrap: anywhere; }
.recovery-code button { padding: 0 18px; border: 0; border-left: 1px solid var(--primary); color: var(--bg); background: var(--primary); font-weight: 900; }
.download-recovery { width: 100%; }
.recovery-confirm { margin: 20px 0 10px; padding: 13px; border: 1px dashed var(--border-strong); }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.profile-avatar { display: grid; place-items: center; width: 52px; height: 52px; color: var(--bg); background: var(--primary); font-size: 25px; box-shadow: 4px 4px 0 var(--pixel-shadow); }
.profile-head small { color: var(--text-secondary); font-size: 11px; }
.profile-head h2 { margin: 2px 0 0; font-size: 22px; overflow-wrap: anywhere; }
.contribution-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 27px 0 14px; }
.contribution-heading span { color: var(--primary); font: 700 9px/1 var(--font-pixel); }
.contribution-heading h3 { margin: 6px 0 0; font-size: 19px; }
.my-contributions { display: grid; gap: 8px; }
.contribution-row { display: grid; grid-template-columns: 92px 1fr; gap: 13px; align-items: start; padding: 14px; border: 1px solid var(--border); background: var(--surface-muted); }
.contribution-row b, .contribution-row small { display: block; }
.contribution-row b { font-size: 14px; }
.contribution-row small { margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.contribution-row p { margin: 7px 0 0; color: var(--danger); font-size: 11px; }
.status-chip { padding: 5px 7px; border: 1px solid currentColor; font-size: 10px; font-weight: 800; text-align: center; }
.status-pending { color: #ffc76e; }
.status-published { color: var(--primary); }
.status-rejected { color: var(--danger); }
.contribution-empty { padding: 34px 20px; border: 1px dashed var(--border-strong); color: var(--text-secondary); text-align: center; }
.contribution-empty span { color: var(--primary); font-size: 30px; }
.contribution-empty p { margin: 8px auto 0; max-width: 420px; }

@media (max-width: 820px) {
  .button-account { max-width: 120px; padding: 9px; }
}
@media (max-width: 620px) {
  .button-account [data-account-label] { display: none; }
  .button-account { width: 38px; min-height: 38px; padding: 0; }
  .account-dot { width: 11px; height: 11px; }
  .account-panel { padding: 20px; }
  .identity-guide { grid-template-columns: 42px 1fr; padding: 14px; }
  .guide-number { width: 38px; height: 38px; }
  .identity-guide b { font-size: 14px; }
  .auth-tabs button { font-size: 12px; }
  .recovery-code { grid-template-columns: 1fr; }
  .recovery-code button { min-height: 42px; border-top: 1px solid var(--primary); border-left: 0; }
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head #logout-button { grid-column: 1 / -1; width: 100%; }
  .contribution-heading { align-items: stretch; flex-direction: column; }
  .contribution-row { grid-template-columns: 1fr; }
  .status-chip { width: max-content; }
}
