:root {
  color-scheme: light;
  --paper: #f7f7f5;
  --white: #ffffff;
  --ink: #111111;
  --muted: #595959;
  --line: #d8d8d4;
  --yellow: #ffeb00;
  --yellow-soft: #fff8b3;
  --heading: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--body); }
main { flex: 1; }
h1, h2, h3, p, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--yellow); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[id] { scroll-margin-top: 26px; }
.wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; left: 12px; top: 12px; z-index: 5; background: var(--white); padding: 12px; }
.site-header { background: var(--ink); color: #fff; }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 164px; height: auto; }
.section-heading h2 span, .studio-heading span { background: linear-gradient(transparent 56%, var(--yellow) 56%, var(--yellow) 90%, transparent 90%); }
.social-nav { display: flex; align-items: center; gap: 8px; }
.social-nav a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff36; border-radius: 8px; }
.social-nav a:hover { color: var(--yellow); border-color: var(--yellow); }
.social-nav svg { width: 20px; height: 20px; }
.footer-link:hover { color: var(--yellow); }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
.back-link:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 9px 15px; border: 1px solid transparent; border-radius: 4px; background: transparent; font: 700 14px/1.3 var(--body); transition: background .16s, color .16s, border-color .16s; }
.button span { font-size: 16px; }
.button-small { min-height: 39px; padding: 7px 12px; gap: 8px; }
.secondary:hover { border-color: var(--ink); background: var(--white); }
.primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.primary:hover { background: #fff36c; border-color: #fff36c; }
.secondary { border-color: var(--line); }
.button:disabled { cursor: wait; opacity: .62; }
.eyebrow, .section-kicker, .tool-number { font: 600 11px/1.3 var(--mono); letter-spacing: .09em; }
.eyebrow { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow i { background: var(--yellow); border: 1px solid #7c7000; width: 8px; height: 8px; border-radius: 0; display: inline-block; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 23px; }
.section-kicker { padding-block: 10px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); }
.section-kicker > span:first-child { color: var(--ink); }
.section-kicker b { font-size: 14px; background: var(--yellow); color: var(--ink); padding-inline: 3px; margin-right: 4px; }
.studio-promo { padding-top: 66px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 12px 0 22px; }
.section-heading h2, .studio-heading { font: 900 clamp(50px, 7vw, 83px)/.84 var(--heading); letter-spacing: -.015em; }
.section-heading p { color: var(--muted); margin-top: 8px; }
.directory { padding-block: 26px 52px; }
.directory-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.directory-heading h1 { font: 800 34px/1 var(--heading); }
.directory-heading h1::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: 6px; background: var(--yellow); }
.directory-heading p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.search { width: min(320px, 45%); min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 11px 0 15px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.search:focus-within { border-color: var(--ink); }
.search input { padding: 9px 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search-icon { width: 12px; height: 12px; flex: 0 0 12px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; margin-right: 3px; }
.search-icon::after { content: ''; position: absolute; bottom: -4px; right: -3px; width: 5px; height: 1.5px; background: var(--muted); transform: rotate(45deg); }
kbd { font: 11px var(--mono); color: var(--muted); padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; }
.directory-filters { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; margin-block: 20px 12px; }
.category-buttons { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.category-button { background: var(--white); border: 1px solid var(--line); border-radius: 18px; min-height: 34px; padding: 5px 12px; font-size: 13px; text-align: left; overflow-wrap: anywhere; }
.category-button:hover { border-color: var(--ink); }
.category-button[aria-pressed=true] { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.result-count { flex-shrink: 0; color: var(--muted); font: 500 11px var(--mono); }
.resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(275px, 100%), 1fr)); gap: 10px; align-items: start; }
.resource-group, .empty { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.resource-group { padding: 11px 5px 5px; }
.resource-group h2 { margin: 0 9px 5px; font: 800 15px/1.4 var(--body); overflow-wrap: anywhere; }
.resource-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 5px; border-radius: 6px; }
.resource-row:hover { background: #f7f7f4; }
.resource-link { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; align-items: start; padding: 8px 5px 8px 9px; min-width: 0; }
.resource-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; background: var(--logo-bg); color: var(--logo-ink); font: 800 19px/.9 var(--heading); }
.resource-link > .resource-logo { width: 32px; height: 32px; font-size: 17px; }
.resource-logo-fallback, .resource-favicon { grid-area: 1 / 1; }
.resource-favicon { width: 24px; height: 24px; object-fit: contain; visibility: hidden; }
.resource-link .resource-favicon { width: 20px; height: 20px; }
.resource-logo.has-favicon { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.resource-logo.has-favicon .resource-logo-fallback { visibility: hidden; }
.resource-logo.has-favicon .resource-favicon { visibility: visible; }
.resource-text { min-width: 0; overflow-wrap: anywhere; }
.resource-name { display: block; font-size: 14px; line-height: 1.35; }
.resource-recommendation { font: 600 9px var(--mono); padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #f6f6f3; }
.resource-description { display: block; max-inline-size: 55ch; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.resource-out { align-self: center; color: var(--muted); font-size: 16px; }
.icon-button { min-width: 34px; min-height: 34px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 4px; font-size: 19px; line-height: 1; }
.icon-button:hover { background: #eeeee9; border-color: var(--line); }
.bookmark { color: var(--muted); }
.bookmark[aria-pressed=true] { color: var(--ink); background: var(--yellow-soft); }
.empty { grid-column: 1 / -1; min-height: 132px; display: grid; place-content: center; text-align: center; padding: 20px; color: var(--muted); }
.empty strong { color: var(--ink); margin-bottom: 4px; }
.studio-promo { padding-bottom: 68px; }
.tool-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.tool-card { position: relative; display: block; min-height: 212px; padding: 16px 17px 20px; border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.tool-card:hover { background: #fffce1; border-color: var(--ink); }
.tool-number { color: var(--muted); font-size: 9px; }
.tool-illustration { width: 50px; height: 51px; position: relative; color: var(--ink); margin-block: 9px; background: var(--yellow); }
.tool-illustration i { position: absolute; inset: 7px 11px; border: 2px solid currentColor; display: block; }
.epk-icon i:nth-child(1) { transform: translate(-5px, 1px) rotate(-12deg); }
.epk-icon i:nth-child(2) { transform: translate(5px, -1px) rotate(12deg); }
.epk-icon i:nth-child(3) { background: var(--white); }
.poster-icon i:nth-child(1) { inset: 6px; }
.poster-icon i:nth-child(2) { inset: 17px 11px 29px; border-width: 1px 0 0; }
.poster-icon i:nth-child(3) { inset: 24px 11px 15px; border-width: 1px 0; }
.loop-icon i { border-radius: 50%; inset: 6px; }
.loop-icon i:nth-child(2) { inset: 11px 4px; transform: rotate(45deg); }
.loop-icon i:nth-child(3) { inset: 12px 7px; transform: rotate(-45deg); }
.tool-card h3 { font: 800 29px/1 var(--heading); }
.tool-card p { margin-top: 7px; color: var(--muted); font-size: 13px; max-width: 235px; }
.tool-arrow { position: absolute; top: 13px; right: 15px; color: var(--ink); font-size: 19px; }
.site-footer { background: var(--ink); color: #fff; }
.site-footer .brand img { width: 140px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 22px; }
.footer-link { font-size: 13px; color: #d5d5d5; }
.footer-link { font-weight: 700; }
.fields { display: grid; gap: 13px; min-width: 0; }
.fields label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; min-width: 0; }
.fields input, .fields textarea, .fields select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: 14px; font-weight: 400; }
.fields input[type=color] { padding: 3px 5px; cursor: pointer; }
.fields textarea { resize: vertical; }
.field-note, .form-status { font-size: 12px; color: var(--muted); }
.form-status { min-height: 1.2em; }
.form-status.error { color: #a62424; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.studio-page { min-height: calc(100svh - 155px); padding-block: 30px 54px; }
.back-link { display: inline-flex; margin-bottom: 19px; font-size: 13px; font-weight: 700; }
.studio-heading { margin: 14px 0 20px; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.studio-tabs a { display: flex; gap: 7px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 500 11px var(--mono); align-items: center; }
.studio-tabs b { font: 700 14px var(--body); color: var(--ink); }
.studio-tabs a[aria-current=page] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.studio-tabs a:hover { border-color: var(--ink); }
.editor-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 16px; padding-top: 16px; align-items: start; }
.editor-panel, .preview-panel { background: var(--white); border: 1px solid var(--line); border-radius: 4px; min-width: 0; padding: 18px; }
.editor-panel h2 { font: 800 36px/.93 var(--heading); }
.editor-panel > p { color: var(--muted); font-size: 14px; margin: 7px 0 17px; }
.preview-panel { position: sticky; top: 12px; }
.preview-label { display: block; color: var(--muted); font: 600 10px var(--mono); letter-spacing: .09em; margin-bottom: 11px; }
.preview-panel canvas { height: auto; width: auto; max-height: 600px; margin-inline: auto; background: #181818; border-radius: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.kit-card { overflow: hidden; background: #181818; color: var(--paper); border-radius: 5px; }
.kit-banner { width: 100%; aspect-ratio: 2.6; object-fit: cover; background: #242424; }
.kit-profile { padding: clamp(17px, 4vw, 42px); overflow-wrap: anywhere; }
.kit-kicker { color: var(--yellow); font: 600 11px var(--mono); letter-spacing: .12em; }
.kit-profile h1, .kit-profile h3 { font: 900 clamp(45px, 7vw, 84px)/.9 var(--heading); margin-block: 7px 10px; }
.kit-profile h3 { font-size: clamp(36px, 5vw, 60px); }
.kit-details { color: #cfcfcf; font-size: 13px; }
.kit-bio { margin-block: 15px; white-space: pre-wrap; }
.kit-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.kit-links a { padding: 6px 8px; font-size: 13px; border: 1px solid #777; border-radius: 3px; }
.kit-links a:hover { background: #343434; }
.kit-video { border: 0; width: 100%; aspect-ratio: 16/9; margin-top: 15px; display: block; }
.kit-audio { border: 0; width: 100%; height: 166px; margin-top: 15px; display: block; }
.kit-public { max-width: 840px; margin: 0 auto; }
.kit-public > .kit-card { box-shadow: 0 16px 44px #19181418; }
.toast { position: fixed; z-index: 10; right: 16px; bottom: 16px; color: white; background: var(--ink); border-left: 4px solid var(--yellow); padding: 11px 15px; font-size: 13px; max-width: calc(100vw - 32px); border-radius: 3px; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 62px; gap: 12px; }
  .brand img { width: clamp(111px, 28vw, 146px); }
  .directory { padding-block: 16px 34px; }
  .directory-heading { flex-direction: column; align-items: stretch; gap: 12px; padding: 13px; }
  .directory-heading h1 { font-size: 30px; }
  .directory-filters { flex-wrap: wrap; margin-top: 14px; }
  .actions { margin-top: 16px; }
  .studio-promo { padding-top: 45px; }
  .studio-promo { padding-bottom: 42px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 13px; margin: 9px 0 15px; }
  .search { width: 100%; }
  .tool-cards, .editor-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 160px; }
  .tool-card p { max-width: none; }
  .footer-inner { flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .preview-panel { position: static; }
}
@media (max-width: 360px) {
  .section-kicker { font-size: 9px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.kit-files-title { margin-top: 17px; }

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.fields .check-label, .check-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.fields .check-label input, .check-label input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--ink); }
.admin-list { margin-top: 12px; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; align-items: center; padding-block: 8px; border-top: 1px solid var(--line); }
.admin-row div { min-width: 0; overflow-wrap: anywhere; }
.admin-row-info { display: flex; align-items: center; gap: 8px; }
.admin-row-info .resource-logo { flex: 0 0 32px; width: 32px; height: 32px; font-size: 17px; }
.admin-row p { color: var(--muted); font-size: 12px; }
.template-picker, .visual-quality { border: 0; margin: 0; padding: 0; min-width: 0; }
.template-picker legend, .visual-quality legend { margin-bottom: 5px; font-weight: 700; font-size: 13px; }
.template-picker > div, .quality-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.template-picker label { cursor: pointer; padding: 5px; border: 1px solid var(--line); border-radius: 4px; position: relative; overflow: hidden; }
.template-picker label:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }
.template-picker label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.template-picker input { position: absolute; width: 1px; min-height: 1px; opacity: 0; padding: 0; }
.template-picker b { padding: 1px 2px; font-size: 11px; }
.template-swatch { display: block; height: 46px; border-radius: 2px; }
.swatch-orbit { background: repeating-radial-gradient(ellipse at 90% 30%, #1c1c1c 0 6px, #b7a500 7px 8px, #1c1c1c 9px 14px); }
.swatch-print { background: radial-gradient(circle at 76% 46%, #ffeb00 0 9%, #171717 10% 25%, transparent 26%), linear-gradient(#d8d4c8 0 62%, #ffeb00 62% 75%, #d8d4c8 75%); }
.swatch-ticket { background: repeating-linear-gradient(90deg, #f7f7ef 0 3px, #171717 4px 5px) center 83% / 73% 6px no-repeat, linear-gradient(#ffeb00 0 25%, #eeeae0 25% 70%, #171717 70%); }
.swatch-chrome { background: radial-gradient(ellipse at center, #111113 0 27%, #535765 30%, #e2e2b3 36%, #756e18 41%, #111113 49%); }
.swatch-tunnel { background: repeating-radial-gradient(ellipse at center, #151515 0 4px, #d9c600 5px 6px, #262508 7px 12px); }
.swatch-signal { background: repeating-linear-gradient(155deg, #18181c 0 5px, #dbca20 6px, #18181c 8px 12px); }
.poster-shell { position: relative; overflow: hidden; margin-inline: auto; border-radius: 3px; }
.poster-stage { position: absolute; top: 0; left: 0; transform-origin: top left; }
.poster-stage canvas { max-height: none; max-width: none; margin: 0; border-radius: 0; }
.quality-options { grid-template-columns: 1fr 1fr; }
.quality-option { position: relative; text-align: left; padding: 10px 25px 10px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.quality-option:hover { background: var(--yellow-soft); border-color: var(--ink); }
.quality-option:disabled { opacity: .65; cursor: wait; }
.quality-option strong { display: block; font: 900 30px/.95 var(--heading); }
.quality-option span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.quality-option b { position: absolute; top: 8px; right: 10px; }
.visual-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.visual-preview-head .preview-label { margin: 0; }
.visual-preview-head .button { min-height: 32px; font-size: 12px; }
.visual-preview { position: relative; }
.visual-preview canvas { width: 100%; max-height: none; }
.visual-logo-placeholder { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; white-space: nowrap; font: 900 clamp(24px, 6vw, 52px)/1 var(--heading); text-shadow: 0 0 18px #000; }
.export-dialog { width: min(490px, calc(100% - 30px)); max-height: calc(100svh - 30px); border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); padding: 23px; }
.export-dialog::backdrop { background: #111b; }
.export-dialog h2 { margin: 7px 0 10px; font: 900 48px/.92 var(--heading); }
.dialog-close { position: absolute; right: 10px; top: 9px; }
#export-condition p, .visual-recommendation p { font-size: 14px; color: var(--muted); margin-bottom: 9px; }
#export-condition a { color: var(--ink); text-decoration: underline; }
.visual-recommendation { border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 4px; background: var(--paper); padding: 12px; margin-block: 15px; }
.visual-recommendation strong { display: block; margin-block: 4px; }
.export-dialog > .primary { width: 100%; }

.admin-stack { display: grid; gap: 16px; min-width: 0; }

.directory-access { display: grid; gap: 8px 24px; margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.directory-access.with-signup { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: start; }
.access-panel-heading { min-width: 0; padding-top: 3px; }
.access-panel-heading h2 { font: 800 17px/1.35 var(--body); }
.access-panel-heading p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.directory-unlock { margin-top: 8px; min-height: 28px; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.directory-unlock:hover { text-decoration-thickness: 2px; }
.directory-access > .form-status { grid-column: 1 / -1; }
.directory-access > .form-status:empty { display: none; }
.access-opt-in { min-width: 0; }
.access-opt-in .fields { gap: 9px; }
.access-opt-in p { margin: 0; }
.signup-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.signup-inputs input[type=email] { min-height: 42px; padding-inline: 14px; border-radius: 24px; }
.signup-submit { min-height: 42px; border-radius: 24px; background: var(--ink); color: var(--white); }
.signup-submit:hover { background: var(--yellow); color: var(--ink); }
.access-opt-in .check-label { align-items: flex-start; font-size: 12px; font-weight: 500; }
.access-opt-in .check-label input { flex-shrink: 0; }
.access-opt-in .field-note { overflow-wrap: anywhere; }
.access-opt-in .field-note a { text-decoration: underline; }
@media (max-width: 740px) {
  .directory-access.with-signup { grid-template-columns: 1fr; gap: 13px; }
}
.newsletter-admin { margin-top: 16px; }
.newsletter-admin summary { cursor: pointer; font-weight: 700; }
.newsletter-admin summary + p { margin-top: 9px; }
.newsletter-admin p:empty { display: none; }
.newsletter-list { margin-block: 15px; }
.newsletter-list-head, .newsletter-exports { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.newsletter-list-head { justify-content: space-between; margin-bottom: 6px; }
.newsletter-contacts { list-style: none; margin: 10px 0; padding: 0; }
.newsletter-contacts li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; padding-block: 7px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.newsletter-contacts span { color: var(--muted); font-size: 12px; }
.newsletter-list > [data-more] { margin-top: 8px; }
.newsletter-admin .newsletter-withdraw { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 7px; align-items: end; }
.newsletter-withdraw .button { justify-self: start; min-height: 40px; }
