/* InkDoo library pages — visual tokens matched to the live InkDoo homepage. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-display: var(--font-sans);
  --color-white: #fff;
  --color-paper: #fff;
  --color-sheet: #fff;
  --color-mist: #f5f5f5;
  --color-ink: #1a1a1a;
  --color-ink-soft: #555;
  --color-line: #ddd;
  --color-brand: #e8590c;
  --color-brand-deep: #d9480f;
  --color-brand-soft: #fff4e6;
  --color-accent: #e8590c;
  --color-ok: #e8590c;
  --color-warn: #c92a2a;
  --radius-sticker: 10px;
  --ink-orange: #e8590c;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
code, pre, .font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.bg-paper { background: var(--color-paper); }
.bg-sheet { background: var(--color-sheet); }
.bg-mist { background: var(--color-mist); }
.bg-ink { background: var(--color-ink); }
.bg-brand { background: var(--color-brand); }
.bg-accent { background: var(--color-accent); }
.bg-ok { background: var(--color-ok); }
.bg-white { background: #fff; }
.bg-white\/10 { background: rgb(255 255 255 / .10); }
.bg-white\/15 { background: rgb(255 255 255 / .15); }
.text-ink { color: var(--color-ink); }
.text-ink-soft { color: var(--color-ink-soft); }
.text-ink\/75 { color: rgb(29 28 26 / .75); }
.text-ink\/80 { color: rgb(29 28 26 / .80); }
.text-white { color: #fff; }
.text-white\/70 { color: rgb(255 255 255 / .70); }
.text-brand { color: var(--color-brand); }
.text-accent { color: var(--color-accent); }
.border-line { border-color: var(--color-line); }
.border-ink { border-color: var(--color-ink); }
.border { border-style: solid; border-width: 1px; }
.border-\[1\.5px\] { border-style: solid; border-width: 1.5px; }
.border-2 { border-style: solid; border-width: 2px; }
.border-b { border-bottom-style: solid; border-bottom-width: 1px; }
.border-t { border-top-style: solid; border-top-width: 1px; }
.border-t-2 { border-top: 2px solid #111; }

.btn {
  white-space: nowrap;
  color: #fff;
  background: #111;
  border: 2px solid #111;
  border-radius: 10px;
  align-items: center;
  gap: .4rem;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .12s, background .12s, color .12s;
  display: inline-flex;
  cursor: pointer;
}
.btn:hover { opacity: .92; }
.btn-primary { background: #111; border-color: #111; color: #fff; }
.btn-primary:hover { background: #111; opacity: .92; }
.btn-ghost { color: #111; background: #fff; border-color: #111; }
.btn-ghost:hover { background: #fafafa; opacity: 1; }
.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  font-size: 11px;
}
.card { background: #fff; border: 2px solid #111; border-radius: 14px; }
.window {
  background: #fff;
  border: 2px solid #111;
  box-shadow: none;
  border-radius: 14px;
  overflow: hidden;
}
.window-bar {
  border-bottom: 2px solid #111;
  background: #fff;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  display: flex;
}
.window-bar > i {
  border: 1.5px solid var(--color-ink);
  border-radius: 999px;
  width: 10px;
  height: 10px;
  display: block;
}
.outline-word { color: transparent; -webkit-text-stroke: 1.5px var(--color-line); }
.searchbar {
  background: #fff;
  border: 2px solid #111;
  border-radius: 10px;
  align-items: center;
  gap: .5rem;
  display: flex;
  transition: box-shadow .15s;
}
.searchbar:focus-within {
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}
.chip {
  white-space: nowrap;
  background: #fff;
  border: 1px solid #111;
  border-radius: 99px;
  align-items: center;
  gap: .35rem;
  padding: 2px 10px;
  font-size: 12px;
  color: #111;
  transition: border-color .12s, color .12s, background .12s;
  display: inline-flex;
}
.chip:hover { border-color: #e8590c; color: #e8590c; }
.checker {
  background-color: #f5f5f5;
}
.grid-paper {
  display: none;
  background: none;
}
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* layout utilities used on the cloned pages */
.mx-auto { margin-inline: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }
.px-2 { padding-inline: .5rem; }
.px-2\.5 { padding-inline: .625rem; }
.px-3 { padding-inline: .75rem; }
.px-3\.5 { padding-inline: .875rem; }
.px-4 { padding-inline: 1rem; }
.px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; }
.py-1 { padding-block: .25rem; }
.py-1\.5 { padding-block: .375rem; }
.py-2 { padding-block: .5rem; }
.py-2\.5 { padding-block: .625rem; }
.py-3 { padding-block: .75rem; }
.py-5 { padding-block: 1.25rem; }
.py-10 { padding-block: 2.5rem; }
.py-px { padding-block: 1px; }
.p-2 { padding: .5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: 3rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-\[30px\] { padding-top: 30px; }
.pb-2 { padding-bottom: .5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-\[50px\] { padding-bottom: 50px; }
.pl-2 { padding-left: .5rem; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pr-2 { padding-right: .5rem; }
.mt-1\.5 { margin-top: .375rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-1 { margin-left: .25rem; }
.ml-2 { margin-left: .5rem; }
.ml-3 { margin-left: .75rem; }
.ml-auto { margin-left: auto; }
.-mx-4 { margin-inline: -1rem; }
.-mx-5 { margin-inline: -1.25rem; }
.-mb-\[0\.22em\] { margin-bottom: -0.22em; }
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-x-3 { column-gap: .75rem; }
.gap-y-2 { row-gap: .5rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0; }
.flex-col { flex-direction: column; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-\[104px\] { top: 104px; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.break-all { word-break: break-all; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 999px; }
.rounded-\[28px\] { border-radius: 28px; }
.rounded-\[32px\] { border-radius: 32px; }
.size-1\.5 { width: .375rem; height: .375rem; }
.size-3\.5 { width: .875rem; height: .875rem; }
.size-4 { width: 1rem; height: 1rem; }
.size-5 { width: 1.25rem; height: 1.25rem; }
.size-6 { width: 1.5rem; height: 1.5rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-9 { width: 2.25rem; height: 2.25rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-full { width: 100%; height: 100%; }
.aspect-square { aspect-ratio: 1; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.min-h-dvh { min-height: 100dvh; }
.min-h-\[340px\] { min-height: 340px; }
.h-14 { height: 3.5rem; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.text-\[14\.5px\] { font-size: 14.5px; }
.text-\[15px\] { font-size: 15px; }
.text-\[21px\] { font-size: 21px; }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-none { line-height: 1; }
.leading-4 { line-height: 1rem; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.06\] { line-height: 1.06; }
.tracking-tight { letter-spacing: -.025em; }
.tracking-\[-0\.03em\] { letter-spacing: -.03em; }
.tracking-\[-0\.04em\] { letter-spacing: -.04em; }
.tracking-\[-0\.05em\] { letter-spacing: -.05em; }
.tracking-wide { letter-spacing: .05em; }
.uppercase { text-transform: uppercase; }
.shadow-sm { box-shadow: 0 1px 2px #0000001a; }
.opacity-40 { opacity: .4; }
.opacity-80 { opacity: .8; }
.transition { transition: .15s; }
.duration-300 { transition-duration: .3s; }
.duration-500 { transition-duration: .5s; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.space-y-2 > :not(:first-child) { margin-top: .5rem; }
.space-y-2\.5 > :not(:first-child) { margin-top: .625rem; }
.space-y-3 > :not(:first-child) { margin-top: .75rem; }
.space-y-4 > :not(:first-child) { margin-top: 1rem; }
.-space-x-1\.5 > :not(:first-child) { margin-left: -.375rem; }
.scroll-mt-24 { scroll-margin-top: 6rem; }
.scroll-mt-40 { scroll-margin-top: 10rem; }
.bg-paper\/85 { background: rgb(255 255 255 / .85); }
.bg-paper\/90 { background: rgb(255 255 255 / .92); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.hover\:border-ink:hover { border-color: var(--color-ink); }
.hover\:bg-mist:hover { background: var(--color-mist); }
.hover\:bg-white\/25:hover { background: rgb(255 255 255 / .25); }
.hover\:text-ink:hover { color: var(--color-ink); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:shadow-card:hover { box-shadow: 0 14px 30px -18px rgba(29,28,26,.45); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:-translate-y-0\.5 { transform: translateY(-2px); }
.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(2px); }
.group[open] .group-open\:rotate-45, .group-open\:rotate-45 { }
details[open] .group-open\:rotate-45 { transform: rotate(45deg); }
.hover\:opacity-100:hover { opacity: 1; }
.cursor-pointer { cursor: pointer; }
.list-none { list-style: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* highlight used in the demo window */
.hl-mark {
  border-radius: .25rem;
  padding-inline: .125rem;
  background-image: linear-gradient(transparent 55%, #ffe8d6 55%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .5s;
}
.hl-mark.is-on { background-size: 100% 100%; }

.text-hero {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}
.text-hero-lg {
  font-family: var(--font-sans);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}
.text-section {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.outline-giant { display: none; }
.max-w-\[1040px\] { max-width: 1040px; }
.ink-chip-new {
  border: 1px solid #e8590c;
  color: #e8590c;
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 12px;
  display: inline-block;
  background: #fff;
}

/* InkDoo site chrome (existing header/footer language) */
.ink-chrome-header, .ink-chrome-footer { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.ink-chrome-header {
  margin: 0 auto;
  max-width: 1040px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 18px 20px;
}
.ink-logo { font-size: 1.25rem; font-weight: 800; color: #111; text-decoration: none; }
.ink-logo span { color: var(--ink-orange); }
.ink-chrome-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 15px; }
.ink-chrome-nav a { color: #333; text-decoration: none; }
.ink-chrome-nav a:hover { text-decoration: underline; }
.ink-chrome-nav a.is-current { color: #111; font-weight: 600; }
.ink-btn-site {
  color: #fff !important;
  background: #111;
  border: 2px solid #111;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-block;
}
.ink-chrome-footer {
  margin: 2.5rem auto 0;
  max-width: 1040px;
  border-top: 2px solid #111;
  padding: 30px 20px 50px;
  font-size: 14px;
  color: #666;
}
.ink-chrome-footer a { color: var(--ink-orange); }
.ink-chrome-footer .badges { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem .75rem; }
.ink-chrome-footer .badges span { font-size: 11px; font-weight: 500; letter-spacing: .05em; color: #999; text-transform: uppercase; }
.ink-chrome-footer .badges img { display: block; height: 2rem; width: auto; }

.demo-step { border-radius: 10px; padding: .25rem .625rem; display: inline-flex; align-items: center; gap: .375rem; border: 1px solid transparent; }
.demo-step.on { background: #111; color: #fff; border-color: #111; }
.demo-step.off { background: #fff; color: #555; border-color: #ddd; }
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: #fff;
  padding: .375rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
}
.tab-btn[aria-selected="true"] { border-color: var(--color-ink); background: var(--color-ink); color: #fff; }
.tab-btn:hover { border-color: var(--color-ink); }
.tab-panel[hidden] { display: none; }
.cmd {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  border-radius: 10px;
  border: 2px solid #111;
  background: #fff;
  padding: .625rem .5rem .625rem 1rem;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.625;
}
.copy-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .25rem;
  border-radius: 8px;
  border: 2px solid #111;
  background: #fff;
  color: #111;
  padding: .25rem .5rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
.copy-btn:hover { border-color: var(--color-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.card-link { display: block; overflow: hidden; border-radius: 14px; border: 2px solid #111; background: #fff; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); border-color: #e8590c; box-shadow: 4px 4px #e8590c; }
.card-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-link:hover img { transform: scale(1.05); }
.meme-hidden { display: none !important; }
.soon-note {
  border: 2px dashed #ddd;
  background: #fafafa;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #555;
  font-size: .925rem;
}

@media (min-width: 640px) {
  .sm\:px-5 { padding-inline: 1.25rem; }
  .sm\:px-6 { padding-inline: 1.5rem; }
  .sm\:px-10 { padding-inline: 2.5rem; }
  .sm\:py-12 { padding-block: 3rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:h-16 { height: 4rem; }
  .sm\:gap-2 { gap: .5rem; }
  .sm\:gap-3 { gap: .75rem; }
  .sm\:text-xs { font-size: .75rem; line-height: 1rem; }
  .sm\:text-\[23px\] { font-size: 23px; }
  .sm\:text-\[28px\] { font-size: 28px; }
  .sm\:min-h-\[380px\] { min-height: 380px; }
  .sm\:block { display: block; }
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:hidden { display: none; }
  .sm\:grid { display: grid; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:mx-0 { margin-inline: 0; }
  .sm\:px-0 { padding-inline: 0; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_auto\] { grid-template-columns: 1fr auto; }
  .md\:items-center { align-items: center; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-\[minmax\(0\,0\.95fr\)_minmax\(0\,1\.05fr\)\] { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); }
  .lg\:grid-cols-\[minmax\(0\,1\.25fr\)_minmax\(0\,0\.75fr\)\] { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); }
  .lg\:grid-cols-\[1\.3fr_repeat\(5\,1fr\)\] { grid-template-columns: 1.3fr repeat(5, 1fr); }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}
@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
  .xl\:hidden { display: none; }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .xl\:top-16 { top: 4rem; }
  .xl\:px-3 { padding-inline: .75rem; }
}

/* shortcut tiles + sticky category nav, InkDoo chips */
.shortcut-tile {
  display: flex;
  align-items: center;
  gap: .65rem;
  border: 2px solid #111;
  background: #fff;
  border-radius: 10px;
  padding: .55rem .9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: #111;
}
.shortcut-tile:hover { border-color: #e8590c; }
.shortcut-tile .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #e8590c;
  color: #e8590c;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
}
.cat-pill {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cat-pill.is-on, a.cat-pill.border-ink.bg-ink { background: #111; color: #fff; border-color: #111; }
.promo-band {
  border: 2px solid #111;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
}
.promo-band .text-white\/70 { color: #555; }
.promo-band .text-brand { color: #e8590c; }
.promo-band .bg-white\/10 { background: #f5f5f5; color: #111; }
.promo-band .bg-white\/15 { background: #111; color: #fff; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 99px;
  font-weight: 700;
  font-family: var(--font-sans);
}
.bg-line { background: #eee; }

/* Generate + trending, InkDoo homepage language */
.field, textarea.field, input.field {
  width: 100%;
  font: inherit;
  color: #111;
  background: #fff;
  border: 2px solid #111;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}
.field:focus { box-shadow: 0 0 0 3px #fff4e6; }
.char-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.char-tile {
  width: 88px;
  border: 2px solid #111;
  border-radius: 14px;
  background: #fff;
  padding: 8px 6px 10px;
  text-align: center;
  cursor: pointer;
  color: #111;
  text-decoration: none;
}
.char-tile img { width: 64px; height: 64px; margin: 0 auto 6px; object-fit: contain; }
.char-tile b { display: block; font-size: 12px; font-weight: 700; }
.char-tile.is-on, .char-tile:hover { border-color: #e8590c; box-shadow: 4px 4px #e8590c; }
.char-tile.is-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; border-style: dashed; }
.char-tile.is-upload:hover { box-shadow: none; }
.style-chip { border: 1px solid #e8590c; color: #e8590c; background: #fff; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.preview-frame {
  border: 2px solid #111;
  border-radius: 14px;
  min-height: 280px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #555;
}
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 768px) { .sample-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.sample-card { border: 2px solid #111; border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; color: inherit; padding: 0; width: 100%; }
.sample-card:hover { border-color: #e8590c; box-shadow: 4px 4px #e8590c; }
.sample-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #f5f5f5; }
.sample-card p { padding: 8px 10px; font-size: 13px; font-weight: 600; }
.rank-top { display: grid; gap: 12px; }
@media (min-width: 768px) { .rank-top { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.rank-card { display: block; border: 2px solid #111; border-radius: 14px; overflow: hidden; background: #fff; color: inherit; }
.rank-card:hover { border-color: #e8590c; box-shadow: 4px 4px #e8590c; }
.rank-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5f5f5; }
.rank-card .meta { padding: 10px 12px; }
.rank-card .n { font-weight: 800; color: #e8590c; margin-right: .4rem; }
.rank-list { list-style: none; border-top: 2px solid #111; margin-top: 1.5rem; }
.rank-list li { border-bottom: 1px solid #eee; }
.rank-list a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: inherit; }
.rank-list a:hover { background: #fafafa; }
.rank-list img { width: 56px; height: 56px; object-fit: cover; border: 2px solid #111; border-radius: 10px; background: #f5f5f5; }
.rank-list .n { width: 2rem; font-weight: 800; color: #111; }
.crumb { font-size: 14px; color: #666; }
.crumb a { color: #e8590c; }
.honest-note { border: 1px solid #e8590c; color: #e8590c; border-radius: 99px; padding: 1px 8px; font-size: 12px; display: inline-block; }

/* Meme detail */
.detail-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); } }
.detail-stage {
  background-color: #f5f5f5;
  background-image:
    linear-gradient(45deg, #ececec 25%, transparent 25%),
    linear-gradient(-45deg, #ececec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ececec 75%),
    linear-gradient(-45deg, transparent 75%, #ececec 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border: 2px solid #111;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-stage img { max-width: 100%; height: auto; display: block; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; }
.detail-actions .btn { cursor: pointer; }
.remix-btn { display: inline-flex; }

/* Nav: 热梗榜 is a small chip beside 表情包, not a peer item */
.nav-pair { display: inline-flex; align-items: baseline; gap: .35rem; }
.ink-chrome-nav a.nav-sub {
  font-size: 12px;
  font-weight: 500;
  color: #e8590c;
  border: 1px solid #e8590c;
  border-radius: 99px;
  padding: 1px 7px;
  text-decoration: none;
  line-height: 1.3;
}
.ink-chrome-nav a.nav-sub:hover { text-decoration: none; background: #fff4e6; }
.ink-chrome-nav a.nav-sub.is-current { font-weight: 600; }

/* /match hero: top-aligned columns, balanced headline, homepage-like measure */
.match-hero {
  display: grid;
  gap: 2.5rem 3rem;
  align-items: start;
  padding-top: 1.25rem;
}
@media (min-width: 1024px) {
  .match-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    padding-top: 1.5rem;
  }
}
.match-hero-copy { max-width: 28.5rem; }
.match-hero-title {
  text-wrap: pretty;
  line-height: 1.2;
}
.match-hero-title .nowrap { white-space: nowrap; }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-row a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: inherit; text-decoration: none; border-bottom: 1px solid #eee; }
.rank-row a:hover { color: #111; }
.rank-row .n { font-weight: 800; color: #111; width: 1.75rem; text-align: right; }
.rank-row img { width: 56px; height: 56px; object-fit: cover; border: 2px solid #111; border-radius: 10px; background: #fff; }
.rank-row .name { font-weight: 600; }
.rank-row .delta { font-size: 11px; font-weight: 600; min-width: 3.25rem; }
.rank-row .delta.up { color: #2b8a3e; }
.rank-row .delta.down { color: #c92a2a; }
.rank-row .delta.new { color: #e8590c; }
.rank-row .delta.same { color: #999; }

/* Memes library: hourly 热梗榜 on the right */
.memes-shell {
  margin: 0 auto;
  max-width: 1340px;
  padding: 0 20px 72px;
}
.memes-main { min-width: 0; }
.memes-with-trend { min-width: 0; }
.memes-trending-card {
  border: 2px solid #111;
  border-radius: 14px;
  padding: 16px 14px 14px;
  background: #fff;
}
.memes-trending-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: #111;
}
.memes-trending-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.memes-trending-list { margin-top: 10px; border-top: 2px solid #111; }
.memes-trending-list .rank-row a { gap: 8px; padding: 8px 2px; }
.memes-trending-list .rank-row img {
  width: 40px;
  height: 40px;
  border-width: 1.5px;
  border-radius: 8px;
}
.memes-trending-list .rank-row .n { width: 1.35rem; font-size: 13px; }
.memes-trending-list .rank-row .name { font-size: 13px; line-height: 1.3; }
.memes-trending-list .rank-row .delta { min-width: 2.4rem; font-size: 10px; }
.memes-trending-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e8590c;
  text-decoration: none;
}
.memes-trending-more:hover { text-decoration: underline; }
.memes-trending-empty { padding: 12px 4px; font-size: 13px; color: #888; list-style: none; }
@media (min-width: 1100px) {
  .memes-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 2.25rem;
    align-items: start;
  }
  .memes-shell > .memes-trending {
    position: sticky;
    top: 20px;
  }
}
@media (max-width: 1099px) {
  .memes-trending { margin: 1.25rem 0 0.5rem; }
}

/* Generate studio: memecub-like flow, InkDoo visual language */
.hl { color: #e8590c; }
.gen-hero {
  display: grid;
  gap: 2.5rem 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .gen-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.gen-pills { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.gen-pills li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.gen-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.gen-window {
  border: 2px solid #111;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.gen-window-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(148px, 0.8fr);
  gap: 14px 18px;
  align-items: center;
  padding: 22px 20px 16px;
  background: #fafafa;
}
.gen-window-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.gen-sticker,
.gen-window-result {
  border: 2px solid #111;
  border-radius: 14px;
  background: #fff;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gen-sticker { transform: rotate(-3.5deg); }
.gen-window-result { transform: rotate(3deg); }
.gen-sticker img,
.gen-window-result img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gen-result-cap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  margin: 0;
  text-align: center;
  font-weight: 800;
  font-size: clamp(13px, 2.1vw, 20px);
  line-height: 1.2;
  color: #111;
  -webkit-text-stroke: 4px #fff;
  paint-order: stroke fill;
  text-shadow: 0 1px 0 #fff;
  pointer-events: none;
  word-break: break-word;
}
.gen-window-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8590c;
}
.gen-window-arrow svg { width: 22px; height: 22px; }
.gen-window-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.gen-window-caption p { margin: 0; font-size: 13px; color: #666; }
.gen-window-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gen-window-input {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  font-size: 14px;
  color: #111;
  font-weight: 600;
}
.gen-window-input span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gen-window-go {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid #111;
  border-radius: 99px;
  background: #f5b023;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.gen-window-go svg { width: 18px; height: 18px; }
.gen-window-go:hover { filter: brightness(1.05); }
.gen-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 2px solid #111;
}
.gen-demo-tabs { display: flex; gap: 8px; }
.demo-tab {
  border: 2px solid #111;
  border-radius: 10px;
  padding: 2px;
  background: #fff;
  cursor: pointer;
}
.demo-tab img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.demo-tab.is-on { border-color: #e8590c; box-shadow: 3px 3px #e8590c; }
.gen-try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #111;
  border-radius: 0;
  padding: 4px 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.gen-try svg { width: 16px; height: 16px; }
.gen-try:hover { color: #e8590c; }
@media (max-width: 719px) {
  .gen-window-stage {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .gen-window-pair { width: 100%; }
  .gen-window-caption { width: 100%; }
}

.gen-studio {
  margin-top: 3rem;
  display: grid;
  gap: 1.75rem;
  border: 2px solid #111;
  border-radius: 16px;
  padding: 22px 20px;
  background: #fff;
}
@media (min-width: 900px) {
  .gen-studio {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
    align-items: start;
  }
}
.gen-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
}
.gen-label span { font-weight: 400; color: #888; font-size: 12px; }
.ref-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-tile {
  width: 88px;
  border: 2px solid #111;
  border-radius: 14px;
  background: #fff;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  color: #111;
  font: inherit;
}
.ref-tile img,
.ref-tile .ref-upload-preview {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.ref-tile span { display: block; font-size: 12px; font-weight: 700; }
.ref-tile.is-on,
.ref-tile:hover { border-color: #e8590c; box-shadow: 4px 4px #e8590c; }
.ref-tile.is-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-style: dashed;
  position: relative;
}
.ref-tile.is-upload .ref-upload-icon { width: 22px; height: 22px; margin-bottom: 6px; }
.ref-tile.is-upload:hover { box-shadow: none; }
.ref-tile.is-upload.is-on { box-shadow: 4px 4px #e8590c; }
.ref-tile.is-upload .ref-upload-preview {
  position: absolute;
  inset: 6px 6px 28px;
  width: auto;
  height: auto;
  margin: 0;
}
.style-row { margin-top: 1rem; }
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.style-chip {
  border: 2px solid #111;
  color: #111;
  background: #fff;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.style-chip[aria-current="true"],
.style-chip:hover {
  border-color: #e8590c;
  color: #e8590c;
  background: #fff4e6;
}
.gen-cta-wrap { margin-top: 8px; }
.gen-cta { width: 100%; justify-content: center; gap: 8px; padding: 12px 16px; font-size: 16px; }
.gen-cta svg { width: 18px; height: 18px; }
.gen-cta-wrap p { margin: 8px 0 0; font-size: 13px; color: #888; text-align: center; }
.gen-preview-col { min-width: 0; }
.gen-preview {
  border: 2px solid #111;
  border-radius: 14px;
  aspect-ratio: 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gen-preview-empty { text-align: center; color: #888; padding: 24px; }
.gen-preview-icon { display: inline-flex; color: #bbb; margin-bottom: 8px; }
.gen-preview-icon svg { width: 36px; height: 36px; }
.gen-preview img { width: 100%; height: 100%; object-fit: contain; }
.gen-ideas-head { display: flex; flex-direction: column; gap: 4px; }
.same-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .same-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.same-card {
  position: relative;
  border: 2px solid #111;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.same-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}
.same-card-cta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: #111;
  color: #fff;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: .15s ease;
}
.same-card:hover { border-color: #e8590c; box-shadow: 4px 4px #e8590c; }
.same-card:hover .same-card-cta { opacity: 1; transform: none; }
@media (hover: none) {
  .same-card-cta { opacity: 1; transform: none; }
}

/* Sticker studio status / download (ink-sticker.js) */
.gen-status{margin:.75rem 0 0;font-size:.9rem;line-height:1.4;color:#3f3a36}
.gen-status.is-error{color:#b42318}
.gen-status.is-warn{color:#9a3412}
.gen-status.is-ok{color:#3f3a36}
.gen-cta[disabled]{opacity:.65;pointer-events:none}
.gen-download{display:inline-block;margin-top:.75rem;font-weight:600;text-decoration:underline}
