:root {
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #d8dee4;
  --surface: #f6f8fa;
  --white: #ffffff;
  --accent: #bd2c2c;
  --accent-dark: #8f1f1f;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }

.header-content { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { color: var(--ink); font-size: 0.98rem; font-weight: 760; letter-spacing: -0.015em; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 500; }

.hero { background: linear-gradient(135deg, #1f2933 0%, #33404d 58%, #435260 100%); color: var(--white); }
.hero-content { padding: 100px 0 106px; max-width: 840px; }

.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 0.74rem; font-weight: 760; letter-spacing: 0.13em; text-transform: uppercase; }
.hero .eyebrow { color: #ff8c8c; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 20px; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -0.055em; }
h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.14; letter-spacing: -0.035em; }
.lead { max-width: 700px; margin-bottom: 30px; color: #e4e8ec; font-size: 1.15rem; }

.hero-actions { display: flex; align-items: center; gap: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: var(--white); font-weight: 700; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-secondary { min-height: 36px; border-color: var(--line); background: var(--white); color: var(--ink); font-size: 0.9rem; }
.button-secondary:hover { border-color: var(--accent); background: var(--white); color: var(--accent); }
.button-danger { border-color: #a32020; background: #a32020; }
.button-danger:hover { border-color: #7e1717; background: #7e1717; }
.text-link { color: var(--white); font-weight: 700; text-underline-offset: 4px; }

.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 78px 0; }
.purpose-grid article { padding-right: 22px; border-right: 1px solid var(--line); }
.purpose-grid article:last-child { border-right: 0; }
.purpose-grid p:last-child { margin-bottom: 0; color: var(--muted); }
.number { margin-bottom: 16px; color: var(--accent); font-size: 0.8rem; font-weight: 760; letter-spacing: .1em; }

.library-section { padding: 72px 0 80px; background: var(--surface); border-top: 1px solid #ebedf0; border-bottom: 1px solid #ebedf0; }
.submission-notice { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 34px; margin-bottom: 34px; padding: 20px 58px 20px 22px; border: 1px solid #d8b1b1; border-left: 4px solid var(--accent); border-radius: 6px; background: #fff8f8; box-shadow: 0 5px 16px rgba(143, 27, 27, .06); }
.submission-notice-copy { display: grid; gap: 5px; }
.submission-notice strong { color: var(--ink); }
.submission-notice span { color: var(--muted); font-size: .9rem; }
.submission-notice-link { color: var(--accent-dark); font-size: .9rem; font-weight: 760; text-decoration: none; text-underline-offset: 3px; white-space: nowrap; }
.submission-notice-link:hover { color: var(--accent); text-decoration: underline; }
.submission-notice-dismiss { position: absolute; top: 10px; right: 10px; display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #7b3d3d; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.submission-notice-dismiss:hover, .submission-notice-dismiss:focus-visible { background: #f4e7e7; color: var(--accent-dark); outline: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin-bottom: 0; }
.result-count { margin-bottom: 3px; color: var(--muted); font-size: .9rem; }

.filter-description { margin: -14px 0 19px; color: var(--muted); font-size: .9rem; }
.filters { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)) auto; align-items: end; gap: 18px; margin-bottom: 18px; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
input, select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #b9c2cb; border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: .96rem; }
input:focus, select:focus { outline: 3px solid rgba(189, 44, 44, .18); border-color: var(--accent); }
.clear-filters { width: max-content; height: 43px; white-space: nowrap; }

.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.prompt-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.prompt-table th { padding: 12px 12px; border-bottom: 1px solid var(--line); background: #f1f4f6; color: #44515d; font-size: .72rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.prompt-table td { padding: 15px 12px; border-bottom: 1px solid #e9edf0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; vertical-align: top; }
.prompt-table tbody tr:last-child td { border-bottom: 0; }
.prompt-table tbody tr:hover { background: #fcfcfd; }
.prompt-table td:first-child { color: var(--ink); font-weight: 700; }
.prompt-title { color: var(--ink); text-decoration: none; }
.prompt-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prompt-overview td { vertical-align: middle; }
.prompt-overview th:nth-child(1) { width: 27%; }
.prompt-overview th:nth-child(2) { width: 19%; }
.prompt-overview th:nth-child(3) { width: 13%; }
.prompt-overview th:nth-child(4) { width: 20%; }
.prompt-overview th:nth-child(5) { width: 11%; }
.prompt-overview th:nth-child(6) { width: 10%; }
.category-cell { color: var(--ink); white-space: nowrap; }
.creator-cell { line-height: 1.45; }
.creator-name, .creator-email { display: block; }
.creator-name { color: var(--ink); font-weight: 650; }
.creator-email { color: var(--muted); font-size: .82rem; text-underline-offset: 3px; }
.updated-date { color: var(--ink); white-space: nowrap; }
.details-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 11px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent-dark); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.details-button:hover { border-color: var(--accent-dark); background: #fff3f3; color: var(--accent-dark); }
.skill-download-link { display: block; width: max-content; max-width: 100%; margin-top: 6px; color: var(--accent-dark); font-size: .78rem; font-weight: 760; text-decoration: none; text-underline-offset: 3px; }
.skill-download-link:hover { color: var(--accent); text-decoration: underline; }
.workflow-choice-blurb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 0 0 28px; padding: 24px 26px; border-left: 3px solid var(--accent); border-radius: 5px; background: #fffafa; box-shadow: 0 3px 12px rgba(143, 31, 31, .05); }
.workflow-choice-blurb > h2 { grid-column: 1 / -1; margin: 0; color: var(--ink); font-size: 1.5rem; line-height: 1.25; }
.workflow-option { padding-left: 16px; border-left: 1px solid #e5cfd0; }
.workflow-option-label { margin: 0 0 5px; color: var(--accent-dark); font-size: .72rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.workflow-option h3 { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.35; }
.workflow-option p:not(.workflow-option-label) { margin: 5px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.workflow-option-note { color: #5c6f7f !important; font-style: italic; }
.workflow-option strong { color: var(--ink); font-size: inherit; }
.workflow-choice-blurb code { padding: 1px 4px; border-radius: 3px; background: #f1e8e8; color: var(--ink); font-size: .9em; }
.empty-state { padding: 38px 24px; border: 1px dashed #bbc5cd; border-radius: 6px; background: rgba(255, 255, 255, .55); color: var(--muted); text-align: center; }
.empty-state a { color: var(--accent-dark); font-weight: 700; }
.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; }

.contribute-callout { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 78px 0; }
.contribute-callout > div { max-width: 720px; }
.contribute-callout .eyebrow { margin-bottom: 10px; }
.contribute-callout h2 { margin-bottom: 14px; }
.contribute-callout p:last-child { margin-bottom: 0; color: var(--muted); }

.site-footer { padding: 27px 0; background: #1f2933; color: #e5e9ed; font-size: .86rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer a { color: #e5e9ed; }

@media (max-width: 720px) {
  .header-content, .section-heading, .contribute-callout, .site-footer .container { align-items: flex-start; flex-direction: column; }
  .submission-notice { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .header-content { justify-content: center; padding: 16px 0; }
  .hero-content { padding: 76px 0 82px; }
  .purpose-grid { grid-template-columns: 1fr; gap: 28px; padding: 55px 0; }
  .purpose-grid article { padding: 0 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .purpose-grid article:last-child { padding-bottom: 0; border-bottom: 0; }
  .filters { grid-template-columns: 1fr; }
  .clear-filters { width: 100%; }
  .contribute-callout { padding: 55px 0; }
}

.primary-nav { display: flex; align-items: center; gap: 21px; margin-left: auto; }
.primary-nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.button-small { min-height: 36px; font-size: .88rem; }

.page-hero { border-bottom: 1px solid var(--line); background: #f8fafb; }
.page-hero-inner { max-width: 880px; padding: 58px 0 60px; }
.page-hero .eyebrow { margin-bottom: 11px; }
.page-hero h1 { margin-bottom: 15px; color: var(--ink); font-size: clamp(2.05rem, 4vw, 3.4rem); }
.page-hero .lead { margin: 0; color: var(--muted); }
.page-hero-markdown .rich-content p { margin-bottom: 12px; color: var(--muted); }
.page-hero-markdown .rich-content h3 { margin: 20px 0 8px; color: var(--ink); font-size: 1.03rem; line-height: 1.35; }
.page-hero-markdown .rich-content h3:first-child { margin-top: 0; }
.page-hero-markdown .rich-content a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 0 76px; }
.action-card { display: grid; gap: 9px; min-height: 174px; padding: 25px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.action-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(31, 41, 51, .08); }
.action-card span { color: var(--accent); font-size: .74rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.action-card strong { font-size: 1.08rem; line-height: 1.3; }
.action-card small { align-self: end; color: var(--muted); }

.about-layout { padding-top: 54px; padding-bottom: 76px; }
.about-introduction { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 48px; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.about-introduction h2 { margin-bottom: 13px; }
.about-introduction p { max-width: 720px; color: var(--muted); }
.about-introduction p:last-child { margin-bottom: 0; }
.about-summary { display: grid; align-content: start; gap: 5px; padding: 23px 25px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--surface); }
.about-summary span { color: var(--muted); font-size: .78rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.about-summary strong { color: var(--ink); font-size: 2.25rem; line-height: 1; letter-spacing: -.05em; }
.about-summary small { color: var(--muted); }
.about-section { padding: 48px 0; }
.about-section + .about-section { border-top: 1px solid var(--line); }
.about-section .section-heading { margin-bottom: 20px; }
.about-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-action-card { display: grid; min-height: 156px; gap: 9px; padding: 23px 25px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.about-action-card:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(31, 41, 51, .08); }
.about-action-card span { color: var(--accent); font-size: .74rem; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.about-action-card strong { font-size: 1.08rem; line-height: 1.3; }
.about-action-card small { align-self: end; color: var(--muted); line-height: 1.45; }
.about-info-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(265px, .75fr); gap: 48px; padding: 0; border-top: 1px solid var(--line); }
.about-info-grid .about-section { padding: 48px 0; }
.about-workflow ol { display: grid; gap: 19px; padding: 0; margin: 22px 0 0; list-style: none; }
.about-workflow li { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 14px; align-items: start; }
.about-workflow li > span { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #fff1f1; color: var(--accent-dark); font-size: .8rem; font-weight: 760; }
.about-workflow strong { color: var(--ink); }
.about-workflow p, .about-safety p { margin: 3px 0 0; color: var(--muted); }
.about-safety { padding-left: 30px !important; border-left: 1px solid var(--line); }
.about-safety .text-link-dark { display: inline-block; margin-top: 20px; }
.about-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.about-table table { width: 100%; min-width: 680px; border-collapse: collapse; text-align: left; }
.about-table th, .about-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); vertical-align: top; }
.about-table th { background: var(--surface); color: #44515d; font-size: .78rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.about-table td { color: var(--muted); font-size: .92rem; }
.about-table td:first-child { width: 28%; color: var(--ink); font-weight: 700; }
.about-table td:nth-child(2) { width: 27%; }
.about-table tr:last-child td { border-bottom: 0; }
.about-table a { color: var(--accent-dark); text-decoration: none; text-underline-offset: 3px; }
.about-table a:hover { color: var(--accent); text-decoration: underline; }

.guide-layout { padding-top: 54px; padding-bottom: 76px; }
.guide-introduction { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.guide-introduction h2 { margin-bottom: 13px; }
.guide-introduction > div > p:not(.eyebrow), .guide-note p, .guide-lead, .guide-direct p, .guide-update p { color: var(--muted); }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.guide-note { padding: 24px 25px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--surface); }
.guide-note h3 { margin-bottom: 8px; font-size: 1.05rem; }
.guide-note p { margin-bottom: 0; font-size: .92rem; }
.guide-section { padding: 48px 0; }
.guide-section + .guide-section { border-top: 1px solid var(--line); }
.guide-lead { max-width: 740px; margin-bottom: 22px; }
.guide-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.guide-table table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.guide-table th, .guide-table td { padding: 14px 17px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { background: var(--surface); color: #44515d; font-size: .78rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.guide-table td { color: var(--muted); font-size: .92rem; line-height: 1.48; }
.guide-table td:first-child { width: 31%; color: var(--ink); font-weight: 700; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table code, .guide-checklist code, .guide-direct code { padding: 1px 4px; border-radius: 3px; background: #edf1f4; color: var(--ink); font-size: .88em; }
.guide-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; border-top: 1px solid var(--line); }
.guide-info-grid .guide-section { padding: 48px 0; }
.guide-restricted { padding-left: 30px !important; border-left: 1px solid var(--line); }
.guide-checklist { display: grid; gap: 13px; margin: 22px 0 0; padding: 0; list-style: none; }
.guide-checklist li { position: relative; padding-left: 24px; color: var(--muted); }
.guide-checklist li::before { position: absolute; left: 0; color: var(--accent); content: "•"; font-weight: 760; }
.guide-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.guide-flow li { display: grid; gap: 13px; }
.guide-flow li > span { display: inline-grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #fff1f1; color: var(--accent-dark); font-size: .8rem; font-weight: 760; }
.guide-flow strong { color: var(--ink); }
.guide-flow p { margin: 4px 0 0; color: var(--muted); }
.guide-direct { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-direct > div:first-child { max-width: 710px; }
.guide-direct h2 { margin-bottom: 11px; }
.guide-direct p { margin-bottom: 0; }
.guide-direct .guide-actions { flex: 0 0 220px; margin-top: 0; }
.guide-update { padding-top: 42px; }
.guide-update h2 { margin-bottom: 11px; }
.guide-update p { max-width: 760px; margin-bottom: 0; }

.record-layout, .document-section { padding-top: 54px; padding-bottom: 76px; }
.record-actions { display: flex; gap: 12px; margin-bottom: 26px; }
.record-content, .document-content { max-width: 900px; }
.record-content > section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.record-content > section:first-child { padding-top: 0; }
.record-content > section:last-child { border-bottom: 0; }
.record-content h2, .document-content h2 { font-size: 1.35rem; line-height: 1.25; }
.record-content p, .record-content li, .document-content p, .document-content li { color: var(--muted); }
.record-content > .workflow-choice-blurb { margin: 0 0 30px; }
.record-field-description { max-width: 720px; margin: -3px 0 18px; padding-left: 11px; border-left: 2px solid #c7d0d8; color: #627382; font-size: .84rem; font-style: italic; line-height: 1.45; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content h3 { margin: 28px 0 10px; color: var(--ink); font-size: 1.03rem; line-height: 1.35; }
.rich-content p { margin-bottom: 15px; }
.rich-content ol, .rich-content ul { display: grid; gap: 8px; margin: 0 0 19px; padding-left: 24px; }
.rich-content li { padding-left: 3px; }
.rich-content li::marker { color: var(--accent); font-weight: 760; }
.rich-content code { padding: 1px 4px; border-radius: 3px; background: #edf1f4; color: var(--ink); font-size: .9em; }
.rich-content pre { margin: 12px 0 20px; }
.rich-content pre code { padding: 0; background: transparent; color: inherit; }
.rich-content a { color: var(--accent-dark); font-weight: 700; text-underline-offset: 3px; }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.prompt-heading h2 { margin: 0; }
.section-description { max-width: 630px; margin: 7px 0 0; font-size: .92rem; }
.copy-prompt-status { min-height: 1.25rem; margin: 0 0 10px; font-size: .88rem; }
.required-input-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.required-input-actions .copy-prompt-status { min-height: 0; margin: 0; }
.record-reference-link { margin: 18px 0 0; }
.record-reference-link a { color: #1268a3; font-weight: 760; text-underline-offset: 3px; }
.skill-install { margin: 30px 0; padding: 40px 46px; border: 1px solid #d9c5c5; border-radius: 7px; background: #fffafa; }
.record-content > section.skill-install { padding: 48px 60px; }
.skill-install-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.skill-install-heading .eyebrow { margin-bottom: 7px; }
.skill-install-heading h2 { margin: 0 0 9px; }
.skill-install-heading p { max-width: 625px; margin: 0; }
.skill-install .definition-list { margin: 23px 0; }
.skill-install .definition-list dd .rich-content { margin: 0; }
.skill-install .definition-list dd .rich-content p { margin-bottom: 8px; }
.one-time-skill-setup { margin: 0 0 28px; border: 1px solid #d9c5c5; border-radius: 7px; background: #fffafa; box-shadow: 0 3px 12px rgba(143, 31, 31, .05); overflow: hidden; }
.one-time-skill-setup > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.one-time-skill-setup > summary::-webkit-details-marker { display: none; }
.one-time-skill-setup > summary:focus-visible { outline: 3px solid rgba(189, 44, 44, .22); outline-offset: -3px; }
.one-time-skill-setup[open] > summary { border-bottom: 1px solid #e7d7d7; }
.one-time-skill-setup-title { display: block; margin-bottom: 7px; color: var(--ink); font-size: 1.25rem; font-weight: 760; line-height: 1.3; }
.one-time-skill-setup-lead { display: block; color: var(--muted); line-height: 1.5; }
.one-time-skill-setup-toggle::before { content: "Show steps"; display: inline-block; padding: 6px 9px; border: 1px solid #caa7a7; border-radius: 4px; background: var(--white); color: var(--accent-dark); font-size: .78rem; font-weight: 760; white-space: nowrap; }
.one-time-skill-setup[open] .one-time-skill-setup-toggle::before { content: "Hide steps"; }
.one-time-skill-setup-body { padding: 22px 26px 26px; }
.one-time-skill-setup .skill-folder-prerequisite { margin: 0 0 14px; }
.one-time-skill-setup h3 { margin: 0 0 7px; color: var(--ink); font-size: 1rem; }
.skill-folder-prerequisite { margin: 0 0 22px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 4px; background: rgba(255, 255, 255, .6); }
.skill-folder-prerequisite > p { margin: 0 0 11px; }
.skill-folder-prerequisite ol { display: grid; gap: 9px; margin: 0; padding-left: 24px; }
.skill-folder-prerequisite ul { display: grid; gap: 4px; margin: 7px 0 0; padding-left: 20px; }
.skill-folder-prerequisite li::marker { color: var(--accent); font-weight: 760; }
.skill-folder-prerequisite ul li::marker { color: var(--muted); }
.skill-folder-prerequisite strong { color: var(--ink); }
.skill-form-prerequisite { padding: 16px 18px; border-left: 3px solid #486f92; border-radius: 4px; background: rgba(239, 247, 253, .75); }
.skill-form-prerequisite > p { margin: 0 0 10px; }
.skill-form-prerequisite > p:last-child { margin-bottom: 0; }
.skill-form-prerequisite ol { display: grid; gap: 9px; margin: 0; padding-left: 24px; }
.skill-form-prerequisite li::marker { color: #486f92; font-weight: 760; }
.one-time-plugin-command { margin: 9px 0 2px; overflow-wrap: anywhere; }
.one-time-plugin-command code { display: inline; white-space: pre-wrap; }
.skill-prerequisites .rich-table { max-width: none; margin: 18px 0 12px; }
.skill-prerequisites > h3 { margin: 0; color: var(--ink); font-size: 1rem; }
.skill-prerequisites > p { margin: 0 0 22px; }
.skill-install code { padding: 2px 5px; border-radius: 3px; background: #f1e8e8; color: var(--ink); font-size: .9em; }
.inline-copy-button { display: inline-block; min-height: 24px; margin-left: 6px; padding: 2px 7px; border: 1px solid #b9c2cb; border-radius: 3px; background: var(--white); color: var(--accent-dark); font: inherit; font-size: .71rem; font-weight: 760; line-height: 1.2; vertical-align: middle; cursor: pointer; }
.inline-copy-button:hover { border-color: var(--accent); background: #fff7f7; }
.inline-copy-button:focus { outline: 3px solid rgba(189, 44, 44, .18); border-color: var(--accent); }
.skill-install-steps { display: grid; gap: 10px; margin: 0; padding-left: 24px; }
.skill-install-steps li::marker { color: var(--accent); font-weight: 760; }
.skill-install-steps ol { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 22px; }
.skill-install-substeps { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 20px; }
.skill-install-substeps li::marker { color: var(--muted); }
.skill-install-unavailable { border-color: var(--line); background: var(--surface); }
.skill-status { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; }
.skill-cell code { color: var(--accent-dark); font-size: .86rem; }
.record-content pre, .document-content pre { overflow-x: auto; margin: 0; padding: 21px; border-radius: 6px; background: #202a33; color: #edf2f5; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; }
.rich-table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.rich-table table { width: 100%; min-width: 640px; border-collapse: collapse; text-align: left; }
.rich-table th, .rich-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rich-table th { background: var(--surface); color: #44515d; font-size: .8rem; font-weight: 760; }
.rich-table td { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.rich-table .table-markdown .rich-content h3 { margin: 0 0 8px; font-size: .98rem; }
.rich-table .table-markdown .rich-content p { margin: 0 0 8px; }
.rich-table .table-markdown .rich-content ol, .rich-table .table-markdown .rich-content ul { margin: 0 0 8px; }
.rich-table .table-markdown .rich-content pre { margin: 0 0 8px; }
.table-reference-link { color: #1268a3; font-weight: 760; text-underline-offset: 3px; }
.rich-table tbody tr:last-child td { border-bottom: 0; }
.required-inputs-table { max-width: 720px; }
.definition-list { display: grid; gap: 16px; margin: 0; }
.definition-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.definition-list dt { color: var(--muted); font-size: .84rem; font-weight: 760; }
.definition-list dd { margin: 0; }
.detail-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.detail-table table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; }
.detail-table th { width: 34%; background: var(--surface); color: #44515d; font-size: .82rem; }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: 0; }

.form-layout { display: grid; grid-template-columns: minmax(230px, .6fr) minmax(0, 1.4fr); gap: 48px; padding-top: 55px; padding-bottom: 78px; }
.form-intro { align-self: start; padding: 24px; border-left: 3px solid var(--accent); background: var(--surface); }
.form-intro h2 { font-size: 1.2rem; }
.form-intro p { color: var(--muted); }
.form-formatting-note { margin: 18px 0; padding: 14px 15px; border-left: 3px solid #aeb9c3; background: #f3f5f6; color: var(--muted); }
.form-formatting-note strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.form-formatting-note p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.text-link-dark { color: var(--accent-dark); font-weight: 760; text-underline-offset: 4px; }
.prompt-form { display: grid; gap: 19px; }
.form-field { display: grid; gap: 7px; color: var(--ink); font-size: .86rem; font-weight: 760; }
.form-field .field-description, .form-field .file-help { color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.4; }
.field-title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent-dark); font: inherit; font-size: .8rem; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:disabled { color: #9ba4ad; cursor: not-allowed; text-decoration: none; }
.link-input-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.link-input-panel[hidden] { display: none; }
.list-items-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.list-items-field legend { padding: 0; color: var(--ink); font-size: .86rem; font-weight: 760; }
.list-items-editor { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.list-items-editor table { width: 100%; border-collapse: collapse; }
.list-items-editor th { padding: 0 0 8px; color: var(--muted); font-size: .73rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.list-items-editor th:last-child { width: 66px; }
.list-items-editor td { padding: 5px 0; }
.list-items-editor td:last-child { padding-left: 12px; text-align: right; }
.list-items-editor .button-small { width: max-content; }
.link-reveal { display: grid; justify-items: stretch; gap: 8px; margin-top: 4px; }
.link-reveal-action { display: grid; justify-items: start; gap: 6px; }
.link-reveal .field-description { color: var(--muted); font-size: .8rem; font-weight: 500; line-height: 1.4; }
.link-input-label { display: grid; gap: 6px; color: var(--ink); font-size: .82rem; font-weight: 760; }
.long-text-link-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.long-text-link-field legend { padding: 0; color: var(--ink); font-size: .86rem; font-weight: 760; }
.required-label { color: var(--accent-dark); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.prompt-text-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.prompt-text-field legend { padding: 0; color: var(--ink); font-size: .86rem; font-weight: 760; }
.prompt-text-source { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 4px 0 2px; }
.prompt-text-source label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .84rem; font-weight: 600; }
.prompt-text-source input { width: auto; margin: 0; }
#prompt-text-upload { display: grid; gap: 7px; }
#promptTextFile { width: 100%; padding: 10px; border: 1px solid #b9c2cb; border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: .88rem; }
textarea { width: 100%; min-height: 43px; padding: 11px 12px; border: 1px solid #b9c2cb; border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: .94rem; line-height: 1.5; resize: vertical; }
textarea:focus { outline: 3px solid rgba(189, 44, 44, .18); border-color: var(--accent); }
.form-actions { display: flex; gap: 12px; padding-top: 4px; }
.submission-status { margin: 0; color: var(--muted); }
.document-content { color: var(--muted); }
.document-content h1 { margin-top: 0; color: var(--ink); font-size: 2rem; }
.document-content h2 { margin-top: 38px; color: var(--ink); }
.document-content h3 { margin-top: 28px; color: var(--ink); font-size: 1.12rem; }
.document-content li { margin-bottom: 7px; }
.fallback { padding-top: 58px; padding-bottom: 78px; }

@media (max-width: 880px) {
  .primary-nav { display: none; }
  .action-grid, .form-layout, .about-info-grid, .guide-info-grid { grid-template-columns: 1fr; }
  .form-layout { gap: 24px; }
  .about-safety, .guide-restricted { padding-left: 0 !important; border-top: 1px solid var(--line); border-left: 0; }
  .guide-introduction { grid-template-columns: 1fr; }
  .guide-flow { grid-template-columns: 1fr; max-width: 640px; }
  .guide-direct { align-items: flex-start; flex-direction: column; }
  .guide-direct .guide-actions { flex-basis: auto; margin-top: 0; }
}

@media (max-width: 720px) {
  .page-hero-inner { padding: 43px 0 46px; }
  .record-layout, .document-section { padding-top: 38px; padding-bottom: 54px; }
  .record-actions, .form-actions { align-items: stretch; flex-direction: column; }
  .prompt-heading { align-items: flex-start; flex-direction: column; }
  .required-input-actions { align-items: flex-start; flex-direction: column; }
  .skill-install-heading { align-items: stretch; flex-direction: column; }
  .record-content > section.skill-install { padding: 34px 30px; }
  .workflow-choice-blurb { grid-template-columns: 1fr; gap: 16px; }
  .workflow-option { padding-left: 0; border-left: 0; }
  .prompt-overview thead { display: none; }
  .prompt-overview, .prompt-overview tbody, .prompt-overview tr, .prompt-overview td { display: block; width: 100%; }
  .prompt-overview tr { padding: 15px; border-bottom: 1px solid var(--line); }
  .prompt-overview td { padding: 4px 0; border: 0; }
  .prompt-overview td:nth-child(3)::before, .prompt-overview td:nth-child(5)::before { display: inline-block; min-width: 78px; color: var(--muted); font-size: .72rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
  .prompt-overview td:nth-child(3)::before { content: "Category"; }
  .prompt-overview td:nth-child(5)::before { content: "Updated"; }
  .prompt-overview td:last-child { margin-top: 8px; }
  .link-input-panel { grid-template-columns: 1fr; }
  .list-items-editor td:last-child { width: 62px; }
  .definition-list div { grid-template-columns: 1fr; gap: 4px; }
  .detail-table th { width: 45%; }
  .about-introduction, .about-action-grid { grid-template-columns: 1fr; }
  .about-layout { padding-top: 38px; padding-bottom: 54px; }
  .about-introduction { gap: 24px; padding-bottom: 38px; }
  .about-section, .about-info-grid .about-section { padding: 38px 0; }
  .guide-layout { padding-top: 38px; padding-bottom: 54px; }
  .guide-introduction, .guide-section, .guide-info-grid .guide-section { padding-top: 38px; padding-bottom: 38px; }
  .guide-introduction { gap: 24px; }
  .guide-actions { align-items: stretch; flex-direction: column; }
  .guide-actions .button, .guide-actions .text-link-dark { width: 100%; }
}
