.library-page .page-title > p:last-child { max-width: 760px; }
.library-index { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 60px; margin-top: 54px; }
.library-category { min-width: 0; }
.library-category-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.library-category-heading h2 { font-size: 29px; font-weight: 600; letter-spacing: -.035em; }
.library-category-heading > span { font-size: 12px; color: var(--muted); }
.library-resource { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.library-resource h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
.library-resource p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.library-resource-actions { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.library-resource-actions > :is(button,a) { display: inline-flex; align-items: center; font-size: 14px; min-height: 36px; }
.library-resource-actions > .text-link { color: var(--accent-ink); }
.library-resource-actions > .btn { min-height: 44px; padding: 10px 16px; }
.library-pack-note { display: flex; justify-content: space-between; align-items: center; gap: 50px; margin-top: 64px; padding: 36px 0 0; border-top: 1px solid var(--line); }
.library-pack-note h2 { font-size: 27px; font-weight: 600; letter-spacing: -.035em; }
.library-pack-note p { max-width: 620px; margin-top: 12px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.library-pack-note > a { flex-shrink: 0; }
.pack-product-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; }
.pack-product-heading h1 { font-size: clamp(48px,calc(5vw / var(--site-scale)),80px); letter-spacing: -.055em; font-weight: 600; line-height: 1.08; margin: 22px 0; }
.pack-description { max-width: 570px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.pack-heading-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.pack-product-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 440px; }
.pack-product-photos > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.pack-composition { margin-top: 92px; }
.pack-composition .section-heading h2, .pack-launch h2 { font-size: 42px; font-weight: 600; letter-spacing: -.04em; line-height: 1.2; }
.pack-category-list { margin-top: 35px; border-top: 1px solid var(--line); }
.pack-category { border-bottom: 1px solid var(--line); }
.pack-category summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 2px; cursor: pointer; list-style: none; font-size: 24px; font-weight: 550; }
.pack-category summary::-webkit-details-marker { display: none; }
.pack-category summary > :last-child { color: var(--muted); font-size: 14px; font-weight: 500; }
.pack-category summary > :last-child::after { content: '+'; display: inline-block; width: 35px; margin-left: 22px; text-align: center; font-size: 24px; }
.pack-category[open] summary > :last-child::after { content: '−'; }
.pack-category > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; padding: 5px 0 34px; }
.pack-category article { min-width: 0; padding: 24px; border-radius: 20px; background: var(--surface); }
.pack-category h3 { font-size: 19px; font-weight: 600; line-height: 1.4; }
.pack-category p { margin-top: 13px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.pack-category article > span { display: block; margin-top: 18px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.pack-launch { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; margin-top: 80px; }
.pack-launch h2 { margin-top: 20px; }
.pack-launch > div > p:last-child { font-size: 17px; line-height: 1.7; margin-top: 24px; color: var(--muted); max-width: 440px; }
.pack-launch dl { margin: 0; }
.pack-launch dl > div { padding: 20px 0; border-top: 1px solid var(--line); }
.pack-launch dt { font-size: 17px; font-weight: 600; }
.pack-launch dd { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.project-empty-thumb { display: grid; place-items: center; width: 100px; height: 100px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 38px; }
.project-cover-empty { display: grid; place-items: center; grid-column: 1/-1; aspect-ratio: 1.6; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 18px; }
.control-content .choice-row [data-action="ratio"], .mode-choices button { border-radius: 999px; }
.control-content .choice-row:has([data-action="ratio"]) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.lora-delivery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-top: 65px; padding-top: 34px; border-top: 1px solid var(--line); }
.lora-delivery h3 { font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.4; }
.lora-delivery p { margin-top: 15px; font-size: 15px; line-height: 1.7; color: var(--muted); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .home-workspace-stage:hover > :is(img,video) { transform: scale(1.025); } }
@media (max-width:1100px) {
  .library-index { gap: 36px 30px; }
  .pack-product-heading { gap: 32px; }
  .pack-product-photos { height: 350px; }
  .pack-category > div { grid-template-columns: 1fr 1fr; }
  .pack-launch { gap: 40px; }
}
@media (max-width:770px) {
  .library-index { grid-template-columns: 1fr; margin-top: 34px; gap: 30px; }
  .library-category-heading h2 { font-size: 25px; }
  .library-resource { padding: 19px 0; gap: 14px; }
  .library-resource h3 { font-size: 16px; }
  .library-pack-note { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 38px; }
  .library-pack-note h2 { font-size: 24px; }
  .pack-product-heading { grid-template-columns: 1fr; gap: 36px; }
  .pack-product-heading h1 { font-size: 49px; }
  .pack-description { font-size: 17px; }
  .pack-heading-actions { flex-direction: column; }
  .pack-product-photos { height: 280px; gap: 13px; }
  .pack-composition { margin-top: 56px; }
  .pack-composition .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pack-composition .section-heading h2, .pack-launch h2 { font-size: 34px; }
  .pack-category summary { font-size: 20px; gap: 10px; }
  .pack-category summary > :last-child { font-size: 12px; white-space: nowrap; }
  .pack-category summary > :last-child::after { width: 18px; margin-left: 12px; }
  .pack-category > div { grid-template-columns: 1fr; gap: 14px; }
  .pack-launch { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
  .lora-delivery { grid-template-columns: 1fr; gap: 24px; margin-top: 35px; }
}
/* motion.js animates wheel input and the homepage anchor. */
html { scroll-behavior: auto; }

/* A single local ComfyUI environment is currently offered. */
.lora-environments { grid-template-columns: minmax(0, 1fr); }
