:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #11171d;
  --panel-raised: #161e25;
  --ink: #f6f3ec;
  --muted: #a3adb7;
  --line: #29343e;
  --line-bright: #3b4a55;
  --mint: #6ef0bc;
  --mint-deep: #153d32;
  --shadow: 0 24px 70px rgb(0 0 0 / 30%);
  --radius: 1.15rem;
  --max: 1320px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 12% -8%, rgb(42 113 91 / 28%) 0, transparent 34rem), radial-gradient(circle at 92% 18%, rgb(43 69 89 / 18%) 0, transparent 30rem), var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.shell { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.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; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; translate: 0 -200%; padding: .65rem .9rem; border-radius: .5rem; background: var(--mint); color: #04130e; font-weight: 800; }
.skip-link:focus { translate: 0; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgb(73 91 104 / 55%); background: rgb(7 9 12 / 88%); backdrop-filter: blur(18px) saturate(130%); }
.header-inner { display: grid; grid-template-columns: auto minmax(12rem, 1fr) auto; gap: 1.4rem; align-items: center; min-width: 0; padding-block: .9rem; }
.brand-group { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-dot { flex: 0 0 auto; width: .7rem; height: .7rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgb(110 240 188 / 10%), 0 0 24px rgb(110 240 188 / 45%); }
.brand-name { font-size: 1.04rem; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.brand-name em { color: var(--mint); font-style: normal; }
.ai-pattern-badge { display: inline-flex; align-items: center; min-height: 1.65rem; padding: .2rem .55rem; border: 1px solid rgb(110 240 188 / 40%); border-radius: 999px; background: rgb(21 61 50 / 70%); color: #cffff0; font-size: .68rem; font-weight: 850; letter-spacing: .08em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.header-search, .hero-search, .search-form { display: flex; gap: .5rem; min-width: 0; }
.header-search { width: min(100%, 27rem); justify-self: center; }
.header-search input, .hero-search input, .search-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: .7rem; background: rgb(16 22 28 / 92%); color: var(--ink); padding: .72rem .85rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.header-search input:focus, .hero-search input:focus, .search-form input:focus { border-color: var(--mint); background: #121a20; box-shadow: 0 0 0 3px rgb(110 240 188 / 12%); outline: 0; }
.header-search button, .hero-search button, .search-form button, .btn { border: 1px solid transparent; border-radius: .7rem; padding: .72rem 1rem; text-decoration: none; font-weight: 800; cursor: pointer; transition: translate .2s, border-color .2s, background .2s, box-shadow .2s; }
.header-search button, .hero-search button, .search-form button, .btn-primary { background: var(--mint); color: #04130e; box-shadow: 0 8px 24px rgb(54 185 137 / 14%); }
.header-search button:hover, .hero-search button:hover, .search-form button:hover, .btn:hover { translate: 0 -1px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.site-nav a { color: var(--muted); font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.hero { padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(340px, .72fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.eyebrow { margin: 0 0 1rem; color: var(--mint); font-size: .75rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 1050px; margin: 0 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 5.35rem); font-weight: 500; letter-spacing: -.065em; line-height: .94; text-wrap: balance; }
.hero-lead, .lede { max-width: 780px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.hero-pattern-wall { position: relative; min-width: 0; height: clamp(25rem, 38vw, 36rem); isolation: isolate; }
.hero-pattern-wall::before { content: ""; position: absolute; inset: 12% 8%; z-index: -1; border-radius: 50%; background: rgb(110 240 188 / 18%); filter: blur(70px); }
.hero-pattern-tile { position: absolute; display: block; overflow: hidden; aspect-ratio: 1; border: 1px solid rgb(246 243 236 / 20%); border-radius: clamp(.75rem, 1.5vw, 1.35rem); background: var(--panel); box-shadow: 0 22px 65px rgb(0 0 0 / 48%); transition: z-index .2s, transform .25s, border-color .25s; }
.hero-pattern-tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 7%); pointer-events: none; }
.hero-pattern-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-pattern-tile:hover { z-index: 8; border-color: var(--mint); transform: translateY(-5px) rotate(0deg) scale(1.025); }
.hero-pattern-tile-1 { z-index: 2; top: 4%; left: 0; width: 51%; transform: rotate(-4deg); }
.hero-pattern-tile-2 { z-index: 1; top: 0; right: 2%; width: 42%; transform: rotate(5deg); }
.hero-pattern-tile-3 { z-index: 3; bottom: 4%; left: 4%; width: 37%; transform: rotate(5deg); }
.hero-pattern-tile-4 { z-index: 4; right: 5%; bottom: 0; width: 48%; transform: rotate(-3deg); }
.hero-pattern-tile-5 { z-index: 6; top: 39%; left: 38%; width: 27%; transform: rotate(2deg); }
.hero-pattern-tile-6 { z-index: 5; top: 37%; right: -1%; width: 22%; transform: rotate(7deg); }
.btn-ghost { border-color: var(--line-bright); background: rgb(17 23 29 / 70%); color: var(--ink); }
.btn-ghost:hover { border-color: var(--mint); background: var(--mint-deep); }
.btn-block { display: block; width: 100%; text-align: center; }
.hero-search, .search-form { max-width: 620px; }

.band { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.band-alt, .band-top { border-top: 1px solid var(--line); background: rgb(10 14 18 / 58%); }
.band-top { padding-top: clamp(3.5rem, 7vw, 6rem); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.band-head h1, .band-head h2, .prose h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.band-head h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.band-more, .range-line, .count-line { color: var(--muted); }
.band-more { color: var(--mint); font-weight: 750; text-decoration: none; }
.band-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.prose { max-width: 900px; }
.prose p, .prose li { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.25rem; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel-raised), var(--panel)); box-shadow: 0 8px 32px rgb(0 0 0 / 14%); transition: translate .25s, border-color .25s, box-shadow .25s; }
.card:hover { translate: 0 -4px; border-color: var(--line-bright); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 1; background: #0b0f13; }
.card-media img, .detail-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: scale .45s ease; }
.card:hover .card-media img { scale: 1.025; }
.card-link { display: block; height: 100%; }
.card-badge { position: absolute; top: .8rem; right: .8rem; padding: .3rem .58rem; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; background: rgb(5 8 10 / 80%); color: #fff; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); }
.card-body { min-width: 0; padding: 1.1rem 1.1rem 1.2rem; }
.card-title { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.card-title a { text-decoration: none; }
.card-download { display: inline-block; margin-top: .8rem; color: var(--mint); font-size: .86rem; font-weight: 800; text-decoration: none; }
.tag-chips, .tag-index, .hub-grid { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.tag-chips { margin: 0; }
.tag-chips a, .tag-index a, .hub a { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: .34rem .64rem; color: var(--muted); font-size: .75rem; line-height: 1.25; overflow-wrap: anywhere; text-decoration: none; }
.tag-chips a:hover, .tag-index a:hover, .hub a:hover { border-color: var(--mint); color: var(--ink); }
.tag-chips-wide { margin-top: 1.5rem; }
.tag-index { gap: .7rem; }
.tag-index a { display: inline-flex; gap: .55rem; align-items: center; padding: .55rem .8rem; }
.tag-index-count, .hub-count { color: var(--mint); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.hub { min-width: 0; }
.hub a { display: flex; justify-content: space-between; gap: .75rem; border-radius: .8rem; padding: .9rem; }
.hub-name { min-width: 0; overflow-wrap: anywhere; }

.detail { padding: clamp(2.5rem, 6vw, 5.5rem) 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.detail-media, .detail-side { min-width: 0; }
.detail-frame { overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.detail-side { position: sticky; top: 6.5rem; }
.detail-side h1 { margin-top: .35rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
.detail-tags { margin-block: 1.25rem; }
.related-patterns { width: 100%; margin-top: clamp(3.5rem, 7vw, 6.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.related-patterns > h2 { margin: 0 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.035em; }
.related-patterns > .grid { width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.specs { margin: 1.5rem 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.paypal-checkout { display: grid; gap: .75rem; }
.paypal-checkout button:disabled { cursor: wait; opacity: .65; }
.paypal-modal { width: min(32rem, calc(100vw - 2rem)); max-height: min(760px, calc(100dvh - 2rem)); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-bright); border-radius: 1.25rem; background: transparent; color: var(--ink); box-shadow: 0 30px 100px rgb(0 0 0 / 65%); }
.paypal-modal::backdrop { background: rgb(1 4 7 / 78%); backdrop-filter: blur(9px); }
.paypal-modal-card { position: relative; min-width: 0; padding: clamp(1.35rem, 5vw, 2.25rem); background: linear-gradient(145deg, #182129, #0d1217 68%); }
.paypal-modal-card h2 { max-width: calc(100% - 2.5rem); margin: 0 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 6vw, 2.35rem); line-height: 1.08; overflow-wrap: anywhere; }
.paypal-modal-card > p:not(.eyebrow, .paypal-modal-price, .paypal-modal-status) { margin: 0 0 1rem; color: var(--muted); }
.paypal-modal-close { position: absolute; z-index: 1; top: 1rem; right: 1rem; display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; background: #10171d; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.paypal-modal-close:hover { border-color: var(--mint); background: var(--mint-deep); }
.paypal-modal-price { margin: 1.15rem 0; color: var(--mint); font-size: 1.35rem; font-weight: 850; }
.paypal-buttons { min-height: 45px; }
.paypal-modal-status { min-height: 1.5rem; margin: .8rem 0 0; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
body:has(.paypal-modal[open]) { overflow: hidden; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; padding: 0; color: var(--muted); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line-bright); }
.crumbs a { text-decoration: none; }
.empty, .empty-state { padding: 2rem; border: 1px dashed var(--line-bright); border-radius: var(--radius); color: var(--muted); background: rgb(17 23 29 / 55%); }
.pager, .pager-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding: 1.5rem 0 0; list-style: none; }
.pager a, .pager-current, .pager-gap { display: inline-flex; min-width: 2.3rem; min-height: 2.3rem; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; }
.pager-current { border-color: var(--mint); background: var(--mint-deep); color: var(--mint); }
.pager-step { padding-inline: .75rem !important; }

.site-footer { margin-top: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line); background: #080c10; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; min-width: 0; padding: 3.25rem 0 1.5rem; }
.footer-lead { display: flex; align-items: flex-start; gap: .85rem; max-width: 680px; min-width: 0; }
.footer-lead p { margin: -.25rem 0 0; overflow-wrap: anywhere; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 4vw, 3rem); min-width: 0; }
.footer-cols > div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-cols span { margin-bottom: .25rem; color: var(--ink); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.footer-cols a { max-width: 100%; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; text-decoration: none; }
.footer-cols a:hover { color: var(--mint); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin: .5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .78rem; overflow-wrap: anywhere; }

.faq-hero { max-width: 860px; margin-bottom: clamp(2rem, 5vw, 3.75rem); }
.faq-hero h1, .faq-article-header h1 { margin: 0 0 1.25rem; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.05em; line-height: 1.02; text-wrap: balance; }
.faq-hero h1 { font-size: clamp(2.55rem, 5vw, 4.8rem); }
.faq-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.faq-index-card { display: flex; min-width: 0; min-height: 19rem; flex-direction: column; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgb(22 30 37 / 92%), rgb(12 17 22 / 88%)); box-shadow: 0 18px 45px rgb(0 0 0 / 18%); transition: border-color .2s, transform .2s; }
.faq-index-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.faq-card-kicker { margin: 0 0 .8rem; color: var(--mint); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.faq-index-card h2 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.16; }
.faq-index-card h2 a, .faq-card-link { text-decoration: none; }
.faq-index-card > p:not(.faq-card-kicker) { margin: 0 0 1.25rem; color: var(--muted); }
.faq-card-link { margin-top: auto; color: var(--mint); font-weight: 800; }
.faq-article-shell { min-width: 0; }
.faq-article { max-width: 780px; margin-inline: auto; }
.faq-article-header { margin-bottom: 2.5rem; }
.faq-article-header h1 { font-size: clamp(2.35rem, 5vw, 4.5rem); }
.faq-dek { margin: 0 0 3rem; color: var(--ink); font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.75; }
.faq-toc { margin: 0 0 2.5rem; padding: 1.25rem 1.4rem; border-left: 3px solid var(--mint); border-radius: 0 .8rem .8rem 0; background: rgb(17 25 31 / 72%); }
.faq-toc strong { display: block; margin-bottom: .65rem; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.faq-toc ol { margin: 0; padding-left: 1.25rem; }
.faq-toc li + li { margin-top: .35rem; }
.faq-toc a { color: var(--muted); text-decoration: none; }
.faq-toc a:hover { color: var(--mint); }
.faq-answer-section { scroll-margin-top: 8rem; }
.faq-answer-section + .faq-answer-section { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.faq-answer-section h2, .faq-license-note h2, .faq-sources h2 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.025em; line-height: 1.12; }
.faq-article p, .faq-article li { color: var(--muted); font-size: 1.02rem; line-height: 1.78; }
.faq-article a { color: var(--mint); text-underline-offset: .18em; }
.faq-article pre { overflow-x: auto; margin: 1.5rem 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: .85rem; background: #05080b; color: #d8fff0; font-size: .9rem; line-height: 1.6; tab-size: 2; }
.faq-license-note, .faq-sources { margin-top: 3rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgb(17 25 31 / 72%); }
.faq-sources ul { margin-bottom: 0; padding-left: 1.25rem; }
.faq-related-guides { max-width: 1000px; margin: clamp(4rem, 8vw, 7rem) auto 0; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.faq-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.faq-related-grid article { min-width: 0; padding: 1.35rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--panel); }
.faq-related-grid h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1.2; }
.faq-related-grid h3 a { text-decoration: none; }
.faq-related-grid p { margin: 0; color: var(--muted); }
.faq-pattern-cta { margin: 1.5rem 0 0; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto minmax(11rem, 1fr); }
  .site-nav { grid-column: 1 / -1; justify-content: flex-start; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 2rem; }
  .related-patterns > .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 1.35rem, var(--max)); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
  .brand-group { gap: .55rem; }
  .brand-name { font-size: .94rem; }
  .ai-pattern-badge { font-size: .6rem; padding-inline: .45rem; }
  .nav-toggle { display: grid; width: 2.75rem; height: 2.75rem; place-content: center; gap: 4px; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); color: var(--ink); }
  .nav-toggle span { display: block; width: 1.15rem; height: 2px; border-radius: 2px; background: currentColor; }
  .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .site-nav { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; justify-content: flex-start; padding: .35rem 0 .2rem; }
  .js .site-header:not(.nav-open) .site-nav { display: none; }
  .hero { padding-top: 4.25rem; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pattern-wall { width: min(100%, 35rem); height: min(118vw, 34rem); margin: 1rem auto 0; }
  .band-head { align-items: flex-start; flex-direction: column; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .related-patterns > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-index-grid { grid-template-columns: 1fr; }
  .faq-index-card { min-height: 0; }
  .faq-related-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .header-search button { padding-inline: .75rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-search, .search-form { display: grid; }
  .hero-search button, .search-form button { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .related-patterns > .grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Interactive repeat laboratory + cross-store pattern-pack bridge. */
.detail-frame { position: relative; }
.seamless-open { position: absolute; z-index: 4; left: 1rem; bottom: 1rem; padding: .72rem 1rem; border: 1px solid #b6ffe5; border-radius: 999px; background: rgb(4 11 14 / 88%); color: #d9fff1; font: inherit; font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; cursor: zoom-in; backdrop-filter: blur(8px); }
.preview-pack-cta { position: absolute; z-index: 4; right: 1rem; bottom: 1rem; }
.preview-pack-cta a { display: inline-flex; padding: .72rem 1rem; border: 1px solid #ffe47d; border-radius: 999px; background: rgb(4 11 14 / 90%); color: #ffe47d; font-size: .76rem; font-weight: 850; letter-spacing: .04em; text-decoration: none; }
.detail-pack-banner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 2.25rem 0; padding: clamp(1.35rem, 4vw, 2.4rem); border: 1px solid #d5b63f; border-radius: var(--radius); background: radial-gradient(circle at 85% 20%, rgb(213 182 63 / 22%), transparent 35%), linear-gradient(135deg, #181812, #10161a); }
.detail-pack-banner h2 { margin: .2rem 0 .5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 4vw, 3.2rem); line-height: 1; }
.detail-pack-banner p { margin: 0; color: var(--muted); }
.detail-pack-banner > a { flex: 0 0 auto; padding: .9rem 1.2rem; border-radius: 999px; background: #f1d25b; color: #10120f; font-weight: 900; text-decoration: none; }
.seamless-checker { width: min(1120px, calc(100vw - 2rem)); max-width: none; margin: auto; padding: 0; border: 1px solid var(--line-bright); border-radius: 1.1rem; background: #0d1217; color: var(--ink); box-shadow: 0 35px 110px rgb(0 0 0 / 75%); }
.seamless-checker::backdrop { background: rgb(1 4 7 / 84%); backdrop-filter: blur(9px); }
.seamless-checker-shell > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.seamless-checker-shell h2 { margin: .15rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 4vw, 2.5rem); }
.seamless-checker-shell [data-seamless-close] { display: grid; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; background: #182129; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.seamless-checker-stage { height: min(69vh, 700px); background-color: #151c22; background-repeat: repeat; cursor: grab; touch-action: none; outline-offset: -5px; }
.seamless-checker-stage:active { cursor: grabbing; }
.seamless-checker-shell > footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: #131b21; }
.seamless-checker-shell > footer p { margin: 0; color: var(--muted); }
.seamless-checker-shell > footer div { display: flex; align-items: center; gap: .45rem; }
.seamless-checker-shell > footer button { min-width: 2.5rem; height: 2.5rem; padding-inline: .7rem; border: 1px solid var(--line-bright); border-radius: .55rem; background: var(--panel); color: var(--ink); font-weight: 850; cursor: pointer; }
.seamless-checker-shell output { min-width: 3.5rem; text-align: center; font-weight: 850; }
@media (max-width: 760px) {
  .preview-pack-cta { right: .6rem; bottom: .6rem; }
  .seamless-open { left: .6rem; bottom: .6rem; }
  .preview-pack-cta a, .seamless-open { padding: .58rem .7rem; font-size: .65rem; }
  .detail-pack-banner, .seamless-checker-shell > footer { align-items: flex-start; flex-direction: column; }
  .seamless-checker-stage { height: 60vh; }
}
