/* Reel resources use the portfolio's paper, typography, and restrained colour. */
.library-intro { display: grid; grid-template-columns: minmax(0,1fr) 180px; align-items: center; gap: 28px; padding-top: 55px; padding-bottom: 34px; }
.library-intro .section-label { margin-bottom: 22px; font-size: 10px; }
.library-intro h1 { font-size: clamp(42px,5.1vw,65px); line-height: 1.09; }
.library-intro .intro-copy { font-size: 16px; max-width: 620px; line-height: 1.8; margin-top: 22px; }
.library-side-note { justify-self: end; text-align: center; transform: rotate(5deg); padding-top: 40px; }
.library-side-note .hand { display: block; font-size: 27px; line-height: 1.1; }
.library-side-note > span:last-child { font: 35px/1.3 var(--hand); display: block; color: var(--orange); }
.library-search-panel { padding: 25px 28px 19px; border: 1px solid var(--ink); background: var(--surface); box-shadow: 4px 4px 0 #f3ce4f70; }
.library-search-panel > label { display: block; color: var(--ink); font-weight: 500; font-size: 16px; margin-bottom: 14px; }
.library-search-field { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px solid var(--border); }
.library-search-field > svg { width: 22px; flex-shrink: 0; }
.library-search-field input { min-width: 0; width: 100%; min-height: 48px; padding: 8px 0; border: 0; outline-offset: 2px; background: transparent; color: var(--ink); font-size: 16px; border-radius: 0; }
.library-search-field input::-webkit-search-cancel-button { display: none; }
.library-search-field > button { width: 40px; height: 40px; background: transparent; border: 0; flex-shrink: 0; font-size: 26px; }
.library-search-panel > p { margin-top: 12px; font-size: 11px; }
.library-search-panel > p button { border: 0; padding: 4px 5px; background: #f3ce4f40; color: var(--ink); font: 500 10px var(--mono); text-decoration: underline; text-underline-offset: 3px; }
.library-toolbar { display: flex; gap: 15px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 25px 0 22px; border-bottom: 1px solid var(--border); }
.library-toolbar .filters { gap: 5px; }
.library-toolbar .filters button { min-height: 42px; font-size: 10px; }
.library-toolbar > p { font: 400 10px var(--mono); white-space: nowrap; }
.library-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 34px 0 22px; }
.library-section-heading h2 { font-size: 27px; }
.library-section-heading .hand { font-size: 25px; transform: rotate(-3deg); }
.reel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: stretch; }
.reel-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.reel-card:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--line); }
.reel-cover { position: relative; height: 160px; overflow: hidden; border-bottom: 1px solid var(--border); color: var(--black); background: var(--yellow); background-image: repeating-linear-gradient(0deg,transparent 0 26px,#1b1b1712 26px 27px); }
.cover-guide { background-color: var(--mint); }
.cover-image { background-color: var(--pink); }
.cover-pdf { background-color: #f2d9b9; }
.cover-link { background-color: #cbd4ed; }
.reel-cover-label { position: absolute; top: 15px; left: 17px; border: 1px solid #1b1b1740; padding: 3px 7px; font: 500 9px var(--mono); background: #ffffff40; z-index: 1; }
.cover-number { position: absolute; right: 19px; top: -25px; font-size: 142px; line-height: 1.5; font-weight: 600; letter-spacing: -.09em; color: #1b1b1712; }
.cover-symbol { display: grid; place-items: center; position: absolute; bottom: 27px; left: 24px; height: 58px; width: 65px; border: 1px solid #1b1b1780; background: #fffefaaf; box-shadow: 4px 4px 0 #1b1b1712; transform: rotate(-5deg); }
.cover-symbol > svg { width: 31px; height: 31px; }
.cover-caption { position: absolute; bottom: 21px; right: 17px; font: 400 8px/1.5 var(--mono); letter-spacing: .07em; }
.reel-cover > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.reel-card-content { display: flex; flex-direction: column; flex: 1; padding: 21px 22px 0; }
.kit-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 400 9px/1.7 var(--mono); color: var(--muted); }
.kit-example { color: var(--muted); }
.keyword-label strong { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.reel-card h3 { font-size: 25px; line-height: 1.18; margin: 18px 0 12px; letter-spacing: -.045em; }
.reel-card h3 a:hover { color: var(--blue); }
.reel-card-content > p { font-size: 12px; line-height: 1.8; }
.format-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding: 23px 0 20px; }
.format-badge { display: inline-flex; gap: 5px; align-items: center; border: 1px solid var(--border); padding: 4px 7px; font: 400 9px/1.5 var(--mono); }
.format-badge svg { width: 13px; height: 13px; }
.kit-open { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 11px/1.5 var(--mono); min-height: 56px; border-top: 1px solid var(--border); }
.kit-open > svg { height: 20px; width: 20px; }
.kit-open:hover { color: var(--blue); }
.library-example-note { display: flex; gap: 10px; align-items: center; margin-top: 25px; font-size: 11px; line-height: 1.8; }
.library-example-note .sample-badge { flex-shrink: 0; }
.library-bottom-note { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); }
.library-bottom-note .section-label { font-size: 9px; }
.library-bottom-note p { font-size: 12px; max-width: 560px; margin-top: 11px; }
.library-bottom-note .inline-link { flex-shrink: 0; font-size: 12px; }
.library-empty { margin-top: 15px; border: 1px dashed var(--border); background: var(--paper); }
.library-empty .hand { display: block; font-size: 29px; margin-bottom: 13px; }
.library-empty h2 { font-size: 26px; }
.kit-intro { padding-bottom: 30px; }
.kit-intro-grid { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 60px; align-items: center; }
.kit-intro h1 { font-size: clamp(39px,4.5vw,60px); line-height: 1.08; }
.kit-intro .section-label { margin-bottom: 17px; font-size: 10px; }
.kit-intro .intro-copy { font-size: 16px; line-height: 1.8; margin-top: 20px; max-width: 650px; }
.kit-intro-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 23px; }
.resource-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); color: var(--ink); background: var(--surface); font: 500 10px/1.5 var(--mono); text-decoration: none; }
.resource-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.resource-action:hover { border-color: var(--ink); box-shadow: 2px 2px 0 var(--line); }
.primary-action { background: var(--yellow); border-color: var(--black); color: var(--black); }
.keyword-note { position: relative; text-align: center; padding: 25px 17px 23px; color: var(--black); background: #f1dfa0; transform: rotate(2deg); border: 1px solid #1b1b1730; box-shadow: 3px 4px 0 #00000008; }
.keyword-note::before { content: ''; position: absolute; top: -8px; width: 70px; height: 17px; background: #b5dfc8b0; left: calc(50% - 35px); transform: rotate(-7deg); }
.keyword-note .hand { display: block; font-size: 27px; line-height: 1.1; margin-bottom: 23px; }
.keyword-note > span:not(.hand) { font: 400 8px/1.7 var(--mono); display: block; }
.keyword-note > strong { display: block; overflow-wrap: anywhere; font-size: 31px; line-height: 1.4; letter-spacing: -.04em; }
.keyword-note > p { font: 400 9px/1.8 var(--mono); margin-top: 12px; color: #5e5b48; }
.kit-example-notice { margin-top: 30px; display: flex; align-items: center; gap: 10px; font-size: 11px; padding-block: 15px; border-block: 1px dashed var(--border); }
.kit-example-notice .sample-badge { flex-shrink: 0; }
.kit-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 50px; align-items: start; padding-top: 5px; }
.kit-contents { position: sticky; top: 108px; }
.kit-contents > .section-label { font-size: 9px; margin-bottom: 16px; }
.kit-contents > a { display: flex; gap: 10px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
.kit-contents > a svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.kit-contents > a > span:last-child { margin-left: auto; color: var(--muted); }
.kit-contents > a:hover { color: var(--blue); }
.kit-contents .kit-back { display: inline-block; font: 400 10px/1.8 var(--mono); margin-top: 20px; border: 0; }
.kit-resources { min-width: 0; }
.resource-block { min-width: 0; padding: 29px; border: 1px solid var(--border); background: var(--surface); scroll-margin-top: 105px; }
.resource-block + .resource-block { margin-top: 30px; }
.resource-block-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.resource-kind { display: inline-flex; gap: 7px; align-items: center; font: 500 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; color: var(--muted); }
.resource-kind > svg { width: 16px; height: 16px; }
.resource-block h2 { font-size: 27px; line-height: 1.2; }
.resource-block-heading > button { flex-shrink: 0; }
.resource-description { font-size: 13px; margin: 15px 0 23px; line-height: 1.85; }
.prompt-content { max-width: 100%; margin: 0; padding: 24px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); background: var(--paper); border: 1px solid var(--border); border-left: 3px solid var(--mint); font: 400 12px/1.95 var(--mono); tab-size: 2; }
.prompt-footnote { font-size: 10px; margin-top: 14px; }
.guide-steps { list-style: none; counter-reset: setup; margin: 0; padding: 0; }
.guide-steps > li { counter-increment: setup; position: relative; padding-left: 44px; }
.guide-steps > li + li { margin-top: 27px; }
.guide-steps > li::before { content: counter(setup,decimal-leading-zero); position: absolute; left: 0; top: 0; font: 500 10px/1.8 var(--mono); color: var(--ink); background: #b5dfc83d; padding: 3px 5px; }
.guide-steps h3 { font-size: 20px; line-height: 1.3; margin-bottom: 9px; letter-spacing: -.025em; }
.guide-steps p { font-size: 13px; line-height: 1.85; }
.pdf-preview-mark { display: flex; gap: 28px; align-items: center; justify-content: center; height: 140px; border: 1px solid var(--border); background: var(--paper); background-image: repeating-linear-gradient(transparent 0 27px,var(--line) 27px 28px); }
.pdf-preview-mark svg { width: 46px; height: 54px; color: var(--orange); transform: rotate(-5deg); }
.pdf-preview-mark > span { font: 500 11px/1.8 var(--mono); letter-spacing: .04em; }
.download-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 22px; }
.download-footer > span { font: 400 10px/1.6 var(--mono); color: var(--muted); }
.download-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.resource-image-preview { display: block; border: 1px solid var(--border); background: var(--paper); }
.resource-image-preview img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.kit-end { text-align: center; padding-top: 3px; }
.kit-end > .hand { display: block; font-size: 31px; color: var(--ink); }
.kit-end > p { font-size: 13px; margin: 14px auto 20px; max-width: 470px; }
.kit-end .inline-link svg { height: 18px; width: 18px; }
.copy-toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 40px); width: max-content; padding: 12px 19px; background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 #00000020; font: 500 11px/1.7 var(--mono); z-index: 50; pointer-events: none; }
.copy-toast:empty { display: none; }
@media (max-width:1100px) {
  .reel-grid { gap: 16px; }
  .reel-card-content { padding: 18px 18px 0; }
  .reel-card h3 { font-size: 23px; }
  .kit-intro-grid { gap: 35px; grid-template-columns: minmax(0,1fr) 180px; }
  .kit-layout { grid-template-columns: 170px minmax(0,1fr); gap: 27px; }
  .resource-block { padding: 23px; }
}
@media (max-width:900px) {
  .library-intro { grid-template-columns: minmax(0,1fr); }
  .library-side-note { display: none; }
  .reel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; }
  .kit-layout { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .kit-contents { position: static; border-block: 1px solid var(--border); padding: 18px 0; }
  .kit-contents > a { display: inline-flex; padding: 9px 12px 9px 0; margin-right: 10px; font-size: 11px; border: 0; }
  .kit-contents .kit-back { display: none; }
  .resource-block { scroll-margin-top: 95px; }
}
@media (max-width:650px) {
  .library-intro { padding-top: 35px; padding-bottom: 27px; }
  .library-intro .section-label { font-size: 8px; margin-bottom: 18px; }
  .library-intro h1 { font-size: clamp(35px,8.4vw,49px); }
  .library-intro .intro-copy { font-size: 14px; margin-top: 19px; }
  .library-search-panel { padding: 19px 18px 14px; box-shadow: 3px 3px 0 #f3ce4f70; }
  .library-search-panel > label { font-size: 14px; margin-bottom: 8px; line-height: 1.6; }
  .library-search-field { gap: 9px; }
  .library-search-field > svg { width: 18px; }
  .library-search-field input { font-size: 16px; }
  .library-search-field input::placeholder { font-size: 12px; }
  .library-search-panel > p { font-size: 10px; line-height: 1.8; }
  .library-toolbar { padding: 20px 0 17px; gap: 13px; }
  .library-toolbar .filters { gap: 3px; }
  .library-toolbar .filters button { padding-inline: 8px; font-size: 9px; }
  .library-toolbar > p { font-size: 9px; }
  .library-section-heading { margin: 28px 0 18px; }
  .library-section-heading h2 { font-size: 26px; }
  .library-section-heading .hand { display: none; }
  .reel-grid { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .reel-cover { height: 138px; }
  .cover-number { font-size: 124px; top: -28px; }
  .cover-symbol { bottom: 20px; width: 60px; height: 52px; }
  .reel-card-content { padding: 21px 21px 0; }
  .reel-card h3 { font-size: 27px; max-width: 300px; }
  .reel-card-content > p { font-size: 13px; }
  .library-example-note { display: block; font-size: 11px; }
  .library-example-note .sample-badge { margin: 0 5px 4px 0; }
  .library-bottom-note { display: block; margin-top: 32px; }
  .library-bottom-note .inline-link { margin-top: 20px; }
  .kit-intro { padding-top: 27px; }
  .kit-intro .breadcrumbs { margin-bottom: 24px; }
  .kit-intro-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .kit-intro .section-label { font-size: 9px; }
  .kit-intro h1 { font-size: 39px; }
  .kit-intro .intro-copy { font-size: 14px; margin-top: 17px; }
  .keyword-note { text-align: left; padding: 15px 18px; transform: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; }
  .keyword-note::before,.keyword-note .hand { display: none; }
  .keyword-note > strong { grid-column: 2; grid-row: 1 / 3; font-size: 25px; max-width: 150px; }
  .keyword-note > p { margin-top: 0; font-size: 8px; }
  .keyword-note > span:not(.hand) { font-size: 8px; }
  .kit-example-notice { display: block; font-size: 10px; margin-top: 23px; line-height: 1.85; }
  .kit-example-notice .sample-badge { margin-right: 7px; }
  .kit-layout { padding-top: 0; }
  .resource-block { padding: 22px 18px; scroll-margin-top: 85px; }
  .resource-block-heading { display: block; }
  .resource-block-heading > button { margin-top: 17px; min-height: 45px; }
  .resource-block h2 { font-size: 25px; }
  .resource-description { font-size: 12px; margin-top: 15px; }
  .resource-action { min-height: 45px; font-size: 10px; }
  .prompt-content { padding: 19px 16px; font-size: 11px; line-height: 1.95; }
  .prompt-footnote { font-size: 10px; line-height: 1.8; }
  .guide-steps > li { padding-left: 37px; }
  .guide-steps h3 { font-size: 19px; }
  .guide-steps p { font-size: 12px; }
  .download-footer { align-items: stretch; }
  .download-footer > span { width: 100%; font-size: 9px; }
  .download-actions { width: 100%; }
  .download-actions > a { flex: 1; padding-inline: 10px; }
  .pdf-preview-mark { gap: 18px; height: 125px; }
  .pdf-preview-mark > span { font-size: 9px; }
  .kit-end { padding-top: 0; }
  .kit-end > p { font-size: 12px; }
  .copy-toast { bottom: 17px; font-size: 10px; }
}
@media (max-width:360px) {
  .library-intro h1 { font-size: 35px; }
  .library-search-panel { padding-inline: 14px; }
  .library-search-field input::placeholder { font-size: 11px; }
  .library-toolbar .filters button { font-size: 8px; padding-inline: 6px; }
  .reel-card-content { padding-inline: 18px; }
  .kit-intro h1 { font-size: 35px; }
  .resource-block { padding-inline: 15px; }
  .prompt-content { padding-inline: 12px; font-size: 10px; }
  .resource-action { font-size: 9px; gap: 7px; }
}
@media print {
  .kit-contents,.kit-intro-actions,.resource-action,.copy-toast,.library-search-panel,.library-toolbar { display: none; }
  .kit-layout { display: block; }
  .resource-block { break-inside: avoid; border-color: #aaa; margin-bottom: 20px; }
  .prompt-content { white-space: pre-wrap; }
}
