:root {
  --bg: #ededeb;
  --paper: #f7f7f5;
  --ink: #262626;
  --muted: #767672;
  --line: rgba(204, 204, 202, 0.72);
  --line-strong: rgba(38, 38, 38, 0.22);
  --accent: #245d6c;
  --accent-soft: #dfe9e9;
  --chip: #f2f2ef;
  --code: #1f2426;
  --content-left: clamp(260px, 17vw, 320px);
  --dash: linear-gradient(to right, var(--ink) 0%, var(--ink) 25%, transparent 26%);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.18, 1);
  --ease-exit: cubic-bezier(0.35, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

body.mobile-nav-open {
  overflow: hidden;
}

body.submission-dock-open {
  overflow: hidden;
}

.side-nav,
header.hero,
main {
  transition: filter 460ms var(--ease-soft), opacity 460ms var(--ease-soft),
    transform 460ms var(--ease-soft);
}

body.lightbox-open .side-nav,
body.lightbox-open header.hero,
body.lightbox-open main {
  filter: blur(10px);
  opacity: 0.38;
  pointer-events: none;
  transform: scale(0.996);
}

.mobile-nav-toggle,
.mobile-nav-backdrop {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(247, 247, 245, 0.9);
  border: 1px solid rgba(38, 38, 38, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(38, 38, 38, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 280ms var(--ease-soft), transform 280ms var(--ease-soft),
    color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--accent);
  background: #fff;
  box-shadow: 0 16px 42px rgba(38, 38, 38, 0.18);
  outline: 0;
}

body.lightbox-open .back-to-top,
body.mobile-nav-open .back-to-top,
body.submission-dock-open .back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.submission-fab {
  position: fixed;
  right: 76px;
  bottom: 22px;
  z-index: 152;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px 0 10px;
  color: #fbfbf9;
  background: #262626;
  border: 1px solid rgba(38, 38, 38, 0.1);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(38, 38, 38, 0.18);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms var(--ease-soft), transform 280ms var(--ease-soft),
    background 220ms ease, box-shadow 220ms ease;
}

.submission-fab-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  background: #fbfbf9;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.submission-fab:hover,
.submission-fab:focus-visible,
body.submission-dock-open .submission-fab {
  background: var(--accent);
  box-shadow: 0 20px 52px rgba(36, 93, 108, 0.26);
  outline: 0;
  transform: translateY(-1px);
}

body.lightbox-open .submission-fab,
body.mobile-nav-open .submission-fab,
body.submission-dock-open .submission-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.submission-dock-backdrop {
  position: fixed;
  inset: 0;
  z-index: 195;
  display: block;
  padding: 0;
  background: rgba(237, 237, 235, 0.62);
  border: 0;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 360ms var(--ease-soft), backdrop-filter 360ms var(--ease-soft);
}

body.submission-dock-open .submission-dock-backdrop {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

a {
  color: var(--ink);
  text-decoration-color: rgba(38, 38, 38, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.side-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: 220px;
  height: auto;
  max-height: none;
  padding: 24px 7px 24px 40px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(237, 237, 235, 0.92), rgba(237, 237, 235, 0.72) 72%, transparent);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(10px);
  cursor: default;
  transition: background 180ms ease;
}

.side-nav:hover,
.side-nav:focus-within,
.side-nav.is-dragging {
  background: linear-gradient(90deg, rgba(247, 247, 245, 0.96), rgba(247, 247, 245, 0.78) 72%, transparent);
}

.side-nav::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px;
  width: 1px;
  background-image: linear-gradient(
    to bottom,
    rgba(38, 38, 38, 0.34) 0 16px,
    transparent 16px 27px
  );
  background-size: 1px 27px;
  content: "";
  opacity: 0.36;
  pointer-events: none;
}

.side-nav::after {
  position: absolute;
  top: 0;
  left: 27px;
  width: 1px;
  height: var(--scroll-progress, 0%);
  max-height: 100%;
  background: var(--accent);
  content: "";
  opacity: 0.58;
  pointer-events: none;
}

.side-nav-list {
  display: grid;
  flex: 1;
  gap: 2px;
  margin: 6px 0 0;
  padding: 0 3px 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(38, 38, 38, 0.28) transparent;
}

.side-nav-list::-webkit-scrollbar {
  width: 5px;
}

.side-nav-list::-webkit-scrollbar-thumb {
  background: rgba(38, 38, 38, 0.26);
  border-radius: 999px;
}

.side-home,
.side-nav-list a {
  --tick-width: 9px;
  --tick-opacity: 0.28;
  --tick-color: rgba(38, 38, 38, 0.72);
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 5px 4px;
  overflow: visible;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.side-home::before,
.side-nav-list a::before {
  position: absolute;
  top: 50%;
  left: -35px;
  width: var(--tick-width);
  height: 1px;
  background-image: linear-gradient(
    to right,
    var(--tick-color) 0%,
    var(--tick-color) 64%,
    transparent 65%
  );
  background-size: 6px 1px;
  content: "";
  opacity: var(--tick-opacity);
  transform: translateY(-50%);
  transition: width 180ms ease, opacity 180ms ease, background 180ms ease;
}

.side-home {
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.28);
}

.side-nav a.is-active {
  --tick-width: 40px;
  --tick-opacity: 1;
  --tick-color: var(--accent);
  color: var(--accent);
  background: rgba(223, 233, 233, 0.82);
}

.side-nav a.is-wave-1 {
  --tick-width: 32px;
  --tick-opacity: 0.74;
}

.side-nav a.is-wave-2 {
  --tick-width: 24px;
  --tick-opacity: 0.56;
}

.side-nav a.is-wave-3 {
  --tick-width: 17px;
  --tick-opacity: 0.42;
}

.side-nav a.is-wave-4 {
  --tick-width: 11px;
  --tick-opacity: 0.32;
}

.side-home:hover,
.side-home:focus-visible,
.side-nav-list a:hover,
.side-nav-list a:focus-visible {
  color: var(--accent);
  background: rgba(223, 233, 233, 0.58);
}

.side-home:focus-visible,
.side-nav-list a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 26px;
  min-width: 26px;
  height: 16px;
  color: rgba(38, 38, 38, 0.66);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.side-nav a.is-active .nav-index,
.side-nav a:hover .nav-index,
.side-nav a:focus-visible .nav-index {
  color: var(--accent);
}

.nav-text {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.nav-text small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.08;
  text-overflow: ellipsis;
}

header.hero,
main {
  width: min(1500px, calc(100vw - var(--content-left) - 34px));
  margin-right: 28px;
  margin-left: var(--content-left);
}

header.hero {
  position: relative;
  padding: 38px 0 24px;
}

header.hero::after,
.notice::before,
.category::before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background-image: var(--dash);
  background-size: 4px 1px;
  content: "";
  opacity: 0.28;
}

header.hero::after {
  bottom: 0;
}

.hero-copy {
  max-width: min(860px, calc(100% - 380px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 780;
  line-height: 0.96;
  letter-spacing: 0;
}

header p {
  max-width: 780px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.stats {
  display: none;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(204, 204, 202, 0.62);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
}

.stat strong {
  display: inline;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

main {
  padding: 26px 0 82px;
}

.notice {
  position: absolute;
  top: 34px;
  right: 0;
  width: min(320px, 30vw);
  margin: 0;
  padding: 12px 14px;
  background: rgba(247, 247, 245, 0.82);
  border: 1px solid var(--line);
  border-radius: 5px;
  backdrop-filter: blur(12px);
}

.notice::before {
  display: none;
}

.notice h2 {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.35;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.category {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 20px 34px;
  margin: 0;
  padding: 44px 0 56px;
  scroll-margin-top: 24px;
}

.category::before {
  top: 0;
}

.category > h2 {
  position: sticky;
  top: 24px;
  align-self: start;
  margin: 0;
  padding: 1px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: 0;
}

.category > h2 .meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
}

.category.is-targeted > h2 {
  color: var(--accent);
}

.category.is-targeted::before {
  opacity: 0.58;
}

.category > p.meta {
  grid-column: 1;
  margin: 34px 0 0;
  font-size: 11px;
}

.pin-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
  align-items: start;
}

.entry {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: padding 420ms var(--ease-soft), gap 420ms var(--ease-soft),
    border-color 360ms var(--ease-soft), background 360ms var(--ease-soft),
    box-shadow 420ms var(--ease-soft), transform 320ms var(--ease-soft);
  will-change: transform;
}

.entry:hover {
  transform: translateY(-2px);
}

.entry:focus {
  outline: 0;
}

.entry:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.entry.is-expanded {
  grid-column: span 2;
  gap: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  box-shadow: 0 18px 38px rgba(38, 38, 38, 0.07);
  cursor: auto;
  transform: none;
}

.images {
  display: grid;
  gap: 6px;
  order: 0;
}

.images:has(.figure + .figure) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.figure {
  display: block;
  margin: 0;
}

.figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  padding: 6px;
  background: #fbfbf9;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: zoom-in;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  transition: border-color 260ms var(--ease-soft), filter 260ms var(--ease-soft),
    transform 260ms var(--ease-soft);
  will-change: transform;
}

.figure img:hover,
.figure img:focus-visible {
  border-color: var(--line-strong);
  filter: saturate(1.04) contrast(1.02);
  outline: 0;
  transform: translateY(-1px);
}

.images:has(.figure + .figure) .figure img {
  aspect-ratio: 1 / 1;
}

.entry.is-expanded .figure img {
  aspect-ratio: auto;
  max-height: 520px;
}

.figure figcaption {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  transform: translateY(-4px);
  transition: max-height 460ms var(--ease-soft), margin-top 460ms var(--ease-soft),
    opacity 320ms ease, transform 460ms var(--ease-soft);
  word-break: break-word;
}

.entry.is-expanded .figure figcaption {
  max-height: 92px;
  margin-top: 6px;
  opacity: 1;
  transform: translateY(0);
}

.caption-zh {
  color: var(--ink);
  font-weight: 700;
}

.entry-head {
  min-width: 0;
  display: block;
  order: 1;
}

.title-stack {
  display: grid;
  gap: 3px;
}

.entry-no {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entry-title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.26;
  letter-spacing: 0;
}

.title-en {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.badge {
  display: none;
}

.tag-list {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 0;
  margin: 3px 0 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 460ms var(--ease-soft), opacity 320ms ease,
    transform 460ms var(--ease-soft);
}

.entry.is-expanded .tag-list {
  max-height: 96px;
  opacity: 1;
  transform: translateY(0);
}

.tag {
  padding: 3px 6px;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1.1;
}

.kv {
  order: 3;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  transform: translateY(-4px);
  transition: max-height 440ms var(--ease-soft), opacity 300ms ease,
    transform 440ms var(--ease-soft);
}

.entry.is-expanded .kv {
  max-height: 56px;
  opacity: 1;
  transform: translateY(0);
}

.kv strong {
  color: var(--ink);
}

.prompt-label {
  display: none;
}

.prompt-details {
  order: 4;
  margin-top: 2px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  --prompt-duration: 620ms;
  --prompt-height: 360px;
  --prompt-ease: var(--ease-soft);
  transition: margin 420ms var(--ease-soft), background 420ms var(--ease-soft),
    border-color 420ms var(--ease-soft), box-shadow 420ms var(--ease-soft);
}

.prompt-details summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  cursor: pointer;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(247, 247, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  list-style: none;
  transition: background 280ms var(--ease-soft), border-color 280ms var(--ease-soft),
    color 280ms var(--ease-soft), box-shadow 280ms var(--ease-soft);
}

.prompt-details summary::-webkit-details-marker {
  display: none;
}

.prompt-details summary::after {
  color: var(--muted);
  content: "+";
  transition: color 280ms var(--ease-soft), background 280ms var(--ease-soft),
    transform 280ms var(--ease-soft);
}

.prompt-summary-label {
  min-width: 0;
}

.entry.is-expanded .prompt-summary-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(36, 93, 108, 0.2);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease,
    transform 220ms var(--ease-soft);
}

.prompt-copy-button:hover,
.prompt-copy-button:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  outline: 0;
  transform: translateY(-1px);
}

.prompt-copy-button.is-copied {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.prompt-details[open] summary::after {
  padding: 4px 9px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  content: "收起 ×";
}

.prompt-details summary:hover,
.prompt-details summary:focus-visible {
  color: var(--accent);
  border-color: rgba(36, 93, 108, 0.32);
  outline: 0;
}

.entry.is-expanded .prompt-details {
  margin-top: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  box-shadow: 0 12px 26px rgba(38, 38, 38, 0.07);
}

.entry.is-expanded .prompt-details summary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  color: var(--accent);
  background: #eef5f5;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(36, 93, 108, 0.08);
  font-size: 13px;
}

.entry.is-expanded .prompt-details summary:hover,
.entry.is-expanded .prompt-details summary:focus-visible {
  color: var(--accent);
  background: #e4eeee;
}

.prompt-details.is-opening pre.prompt {
  overflow: hidden;
}

.prompt-details.is-closing pre.prompt {
  overflow: hidden;
}

pre.prompt {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0 12px;
  opacity: 0;
  color: #f4f1e9;
  background: var(--code);
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  transform: translateY(-6px);
  transition: max-height var(--prompt-duration) var(--prompt-ease),
    padding-top var(--prompt-duration) var(--prompt-ease),
    padding-bottom var(--prompt-duration) var(--prompt-ease),
    opacity calc(var(--prompt-duration) * 0.7) ease,
    transform var(--prompt-duration) var(--prompt-ease);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.prompt-details.is-opened pre.prompt,
.prompt-details.is-opening pre.prompt {
  max-height: var(--prompt-height);
  padding-top: 12px;
  padding-bottom: 12px;
  opacity: 1;
  transform: translateY(0);
}

.prompt-details.is-ready pre.prompt {
  max-height: none;
  overflow: visible;
}

.prompt-details.is-closing pre.prompt {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition-timing-function: var(--ease-exit);
}

.extra {
  background: transparent;
}

.submit-workbench {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.submission-dock {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 205;
  grid-column: auto;
  width: min(980px, calc(100vw - 44px));
  max-height: calc(100dvh - 104px);
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(247, 247, 245, 0.94);
  border: 1px solid rgba(38, 38, 38, 0.14);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(38, 38, 38, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transform-origin: 100% 100%;
  transition: opacity 320ms var(--ease-soft), transform 380ms var(--ease-soft);
}

.submission-dock.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.submission-form,
.submission-preview-pane {
  min-width: 0;
}

.submission-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: rgba(247, 247, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.submission-form-head {
  position: relative;
  display: grid;
  gap: 5px;
  padding-right: 44px;
}

.submission-form-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
}

.submission-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.submission-dock-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid rgba(38, 38, 38, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease,
    transform 220ms var(--ease-soft);
}

.submission-dock-close:hover,
.submission-dock-close:focus-visible {
  color: var(--accent);
  background: #fff;
  border-color: rgba(36, 93, 108, 0.4);
  outline: 0;
  transform: rotate(90deg);
}

.submission-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(38, 38, 38, 0.14);
  border-radius: 5px;
  font: inherit;
  font-weight: 500;
  line-height: 1.35;
}

.form-field textarea {
  min-height: 156px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(36, 93, 108, 0.1);
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.submission-actions button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid rgba(38, 38, 38, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease,
    transform 220ms var(--ease-soft);
}

.submission-actions button:hover,
.submission-actions button:focus-visible {
  color: var(--accent);
  border-color: rgba(36, 93, 108, 0.42);
  outline: 0;
  transform: translateY(-1px);
}

.submission-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.submission-preview-pane {
  display: grid;
  gap: 10px;
}

.submission-preview {
  cursor: default;
}

.submission-preview:hover {
  transform: none;
}

.submission-preview .tag-list,
.submission-preview .kv,
.submission-preview .figure figcaption {
  max-height: none;
  opacity: 1;
  transform: none;
}

.submission-figure {
  position: relative;
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 18px;
  color: var(--muted);
  background: #fbfbf9;
  border: 1px dashed rgba(38, 38, 38, 0.2);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.submission-preview .prompt-details {
  margin-top: 4px;
}

.footer {
  position: relative;
  max-width: 780px;
  margin: 12px 0 0;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background-image: var(--dash);
  background-size: 4px 1px;
  content: "";
  opacity: 0.28;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 420ms var(--ease-soft);
}

.lightbox.is-open,
.lightbox.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.lightbox.is-closing {
  opacity: 0;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: rgba(237, 237, 235, 0.62);
  border: 0;
  cursor: zoom-out;
  opacity: 0;
  touch-action: manipulation;
  transition: opacity 420ms var(--ease-soft), backdrop-filter 420ms var(--ease-soft);
  backdrop-filter: blur(0);
}

.lightbox.is-open .lightbox-backdrop {
  opacity: 1;
  backdrop-filter: blur(2px);
}

.lightbox-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(1120px, 92vw);
  max-height: 92vh;
  padding: 12px;
  overflow: hidden;
  background: #fbfbf9;
  border: 1px solid rgba(38, 38, 38, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(38, 38, 38, 0.24);
  opacity: 0;
  filter: blur(3px);
  transform: translateY(22px) scale(0.94);
  transform-origin: center;
  transition: opacity 460ms var(--ease-soft), filter 520ms var(--ease-soft),
    transform 520ms var(--ease-soft);
  touch-action: manipulation;
  will-change: transform, opacity, filter;
}

.lightbox-card::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid rgba(38, 38, 38, 0.12);
  border-top-color: var(--accent);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 220ms var(--ease-soft);
  animation: lightbox-spin 900ms linear infinite;
  pointer-events: none;
}

.lightbox.is-loading .lightbox-card::before {
  opacity: 1;
  transform: scale(1);
}

@keyframes lightbox-spin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox.is-open .lightbox-card {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.lightbox.is-closing .lightbox-card {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(12px) scale(0.955);
  transition-duration: 360ms;
  transition-timing-function: var(--ease-exit);
}

.lightbox-image {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(92vh - 96px);
  object-fit: contain;
  opacity: 0;
  background: #fff;
  border-radius: 5px;
  cursor: default;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  transform: scale(0.985);
  transition: opacity 360ms ease 100ms, transform 420ms var(--ease-soft) 80ms;
}

.lightbox-image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink);
  background: rgba(251, 251, 249, 0.88);
  border: 1px solid rgba(38, 38, 38, 0.16);
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  font-size: 22px;
  line-height: 30px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--accent);
  outline: 0;
}

.lightbox-caption {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lightbox-caption strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.lightbox-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .hero-copy {
    max-width: 100%;
  }

  .notice {
    position: relative;
    top: auto;
    right: auto;
    width: min(620px, 100%);
    margin-top: 18px;
  }
}

@media (max-width: 1040px) {
  :root {
    --content-left: 248px;
  }

  .side-nav {
    left: 0;
    width: 216px;
    padding-right: 6px;
    padding-left: 40px;
  }

  .category {
    grid-template-columns: minmax(130px, 165px) minmax(0, 1fr);
    gap: 18px;
  }

  .pin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-workbench {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  html {
    scroll-behavior: auto;
  }

  :root {
    --content-left: 0px;
  }

  body.lightbox-open .side-nav,
  body.lightbox-open header.hero,
  body.lightbox-open main {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.mobile-nav-open header.hero,
  body.mobile-nav-open main {
    filter: blur(8px);
    opacity: 0.44;
    pointer-events: none;
    transform: scale(0.992);
  }

  .mobile-nav-toggle {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 190;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    color: var(--ink);
    background: rgba(247, 247, 245, 0.92);
    border: 1px solid rgba(38, 38, 38, 0.16);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(38, 38, 38, 0.16);
    backdrop-filter: blur(14px);
    cursor: pointer;
    font-size: 14px;
    font-weight: 760;
    line-height: 1;
    transition: background 280ms var(--ease-soft), box-shadow 280ms var(--ease-soft),
      color 280ms var(--ease-soft), transform 280ms var(--ease-soft);
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus-visible,
  body.mobile-nav-open .mobile-nav-toggle {
    color: var(--accent);
    background: #fff;
    box-shadow: 0 18px 42px rgba(38, 38, 38, 0.2);
    outline: 0;
  }

  body.mobile-nav-open .mobile-nav-toggle {
    transform: translateY(6px);
  }

  .mobile-nav-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 12px;
  }

  .mobile-nav-icon::before,
  .mobile-nav-icon::after,
  .mobile-nav-icon {
    background-image: linear-gradient(to right, currentColor 0 70%, transparent 70%);
    background-size: 7px 1px;
  }

  .mobile-nav-icon::before,
  .mobile-nav-icon::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    content: "";
  }

  .mobile-nav-icon {
    background-position: 0 50%;
    background-repeat: repeat-x;
  }

  .mobile-nav-icon::before {
    top: 0;
  }

  .mobile-nav-icon::after {
    bottom: 0;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 175;
    display: block;
    padding: 0;
    background: rgba(237, 237, 235, 0.54);
    border: 0;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
    transition: opacity 360ms var(--ease-soft), backdrop-filter 360ms var(--ease-soft);
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(8px);
  }

  body.lightbox-open .mobile-nav-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  body.submission-dock-open .mobile-nav-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .lightbox {
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    transition-duration: 260ms;
  }

  .lightbox-backdrop {
    background: rgba(237, 237, 235, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: opacity 260ms var(--ease-soft);
  }

  .lightbox.is-open .lightbox-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .lightbox-card {
    filter: none;
    transform: translate3d(0, 10px, 0) scale(0.985);
    transition: opacity 260ms var(--ease-soft), transform 300ms var(--ease-soft);
    will-change: transform, opacity;
  }

  .lightbox.is-open .lightbox-card {
    filter: none;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .lightbox.is-closing .lightbox-card {
    filter: none;
    transform: translate3d(0, 8px, 0) scale(0.985);
    transition-duration: 220ms;
  }

  .lightbox-image {
    transform: none;
    transition: opacity 220ms ease;
  }

  .lightbox-image.is-loaded {
    transform: none;
  }

  .back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 54px);
    z-index: 188;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .submission-fab {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 106px);
    z-index: 188;
    min-height: 42px;
    padding-right: 13px;
    font-size: 13px;
  }

  .submission-dock {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 20px);
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    transform-origin: 100% 100%;
  }

  .submission-dock-backdrop {
    background: rgba(237, 237, 235, 0.82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.submission-dock-open .submission-dock-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .side-nav {
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 185;
    width: min(84vw, 330px);
    height: auto;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)) 42px;
    overflow: hidden;
    background: rgba(247, 247, 245, 0.96);
    border-right: 1px solid rgba(38, 38, 38, 0.12);
    border-radius: 0 18px 18px 0;
    box-shadow: 20px 0 60px rgba(38, 38, 38, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(-100% - 24px));
    transition: opacity 420ms var(--ease-soft), transform 420ms var(--ease-soft);
  }

  body.mobile-nav-open .side-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .side-nav::before,
  .side-nav::after {
    left: 27px;
  }

  .side-home::before,
  .side-nav-list a::before {
    left: -35px;
  }

  .side-home,
  .side-nav-list a {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    min-height: 43px;
    padding: 6px 6px;
  }

  .nav-index {
    width: 28px;
    min-width: 28px;
    font-size: 10px;
  }

  .nav-text {
    font-size: 14px;
    line-height: 1.08;
  }

  .nav-text small {
    display: block;
    font-size: 9px;
  }

  header.hero,
  main {
    width: auto;
    margin-right: 14px;
    margin-left: 14px;
  }

  header.hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  main {
    padding-top: 12px;
    padding-bottom: 74px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(32px, 13vw, 52px);
    line-height: 0.94;
  }

  .stats {
    gap: 8px 14px;
  }

  .category {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 0 42px;
    scroll-margin-top: 12px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .notice {
    position: relative;
    top: auto;
    right: auto;
    width: min(620px, 100%);
    margin-top: 18px;
  }

  .category > h2 {
    position: relative;
    top: auto;
    font-size: 24px;
  }

  .category > p.meta,
  .pin-grid,
  .submit-workbench {
    grid-column: 1;
  }

  .pin-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .images:has(.figure + .figure) {
    grid-template-columns: 1fr;
  }

  .figure img,
  .images:has(.figure + .figure) .figure img {
    width: 100%;
    aspect-ratio: auto;
    max-height: none;
    padding: 5px;
    object-fit: contain;
  }

  .entry {
    gap: 8px;
  }

  .entry.is-expanded {
    grid-column: span 1;
    padding: 9px;
  }

  .entry.is-expanded .figure img {
    max-height: none;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-card {
    width: 100%;
    max-height: 92dvh;
    padding: 8px;
  }

  .lightbox-image {
    max-height: calc(92dvh - 88px);
  }
}

@media (max-width: 560px) {
  header.hero,
  main {
    margin-right: 10px;
    margin-left: 10px;
  }

  header p {
    font-size: 13px;
    line-height: 1.62;
  }

  .notice {
    padding: 10px 11px;
  }

  .entry-title {
    font-size: 16px;
  }

  .title-en {
    font-size: 12px;
  }

  .submission-fields {
    grid-template-columns: 1fr;
  }

  .submission-form {
    padding: 11px;
  }

  .submission-actions button {
    flex: 1 1 calc(50% - 8px);
  }

  .mobile-nav-toggle {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .back-to-top {
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 52px);
  }

  .submission-fab {
    right: 10px;
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 104px);
  }

  .submission-dock {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    padding: 10px;
  }

  .submission-dock-close {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 781px) and (max-height: 760px) {
  .side-nav {
    top: 0;
    bottom: 0;
    height: auto;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .side-home,
  .side-nav-list a {
    min-height: 34px;
  }

  .nav-text {
    font-size: 11px;
  }

  .nav-text small {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media print {
  .side-nav {
    display: none;
  }

  body {
    background: #fff;
  }

  header.hero,
  main {
    width: auto;
    margin: 0;
  }

  .entry {
    break-inside: avoid;
    box-shadow: none;
  }
}
