:root {
  color-scheme: light;
  --ink: #202d2c;
  --muted: #62716e;
  --line: #d9e1dc;
  --green: #246453;
  --paper: #fff;
  --bg: #f6f8f5;
  --hover: #fafcf9;
  --label: #53635e;
  --input-line: #ced8d1;
  --placeholder: #66756c;
  --note-bg: #edf3ed;
  --note-ink: #475d54;
  --note-line: #74a593;
  --tag-bg: #f1f4f0;
  --tag-ink: #617267;
  --count-bg: #eaf3ee;
  --status-bg: #fff2d9;
  --status-ink: #805d23;
  --heading: #264d40;
  --warning-line: #dac69c;
  --button-bg: #246453;
  --button-ink: #fff;
  --code-bg: #edf1ed;
  --focus: #246453;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: var(--green); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 10px; top: -80px; background: var(--paper); padding: 10px; z-index: 2; }
.skip:focus { top: 5px; }
.promo-banner { background: var(--note-bg); border-bottom: 1px solid var(--line); }
.promo-inner { max-width: 1120px; margin: auto; padding: 6px 28px; display: flex; align-items: center; gap: 12px; }
.promo-inner > a { flex: 1; text-align: center; font-size: 13px; }
.promo-close { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 4px; color: var(--ink); font-size: 22px; line-height: 1; }
.promo-close:hover { background: var(--count-bg); text-decoration: none; }
.site-header { max-width: 1120px; margin: auto; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { font-size: 24px; font-weight: 750; text-decoration: none; color: var(--ink); }
.brand span { color: var(--muted); font-weight: 400; }
nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
nav a { text-decoration: none; }
main { max-width: 1000px; margin: auto; padding: 0 28px; }
.intro { padding: 58px 0 27px; max-width: 700px; }
.eyebrow { font-size: 11px; letter-spacing: .13em; color: var(--green); font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 49px); line-height: 1.15; letter-spacing: -.04em; margin: 14px 0 20px; font-weight: 650; }
.intro > p:last-child { color: var(--muted); font-size: 17px; max-width: 650px; }
.reading-note { border-left: 3px solid var(--note-line); padding: 12px 18px; margin: 0 0 35px; background: var(--note-bg); font-size: 13px; color: var(--note-ink); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; padding: 20px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; }
.download-status { color: var(--muted); font-size: 12px; margin: 10px 0; }
.tag.download-count { color: var(--green); background: var(--count-bg); margin-left: auto; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--label); font-size: 12px; font-weight: 600; }
input, select { width: 100%; min-width: 0; padding: 10px; height: 43px; border: 1px solid var(--input-line); border-radius: 4px; color: var(--ink); background: var(--paper); font-size: 13px; font-weight: 400; }
input::placeholder { color: var(--placeholder); }
.results { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 17px 0 12px; color: var(--muted); font-size: 12px; }
.results p { margin: 0; }
.results div { display: flex; gap: 17px; }
button { cursor: pointer; border: 0; background: none; color: var(--green); font-size: 12px; padding: 3px; }
button:hover { text-decoration: underline; }
.script { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; margin: 10px 0; overflow: hidden; }
.script > summary { cursor: pointer; padding: 19px 22px; list-style: none; position: relative; }
.script > summary::-webkit-details-marker { display: none; }
.script > summary::after { content: '+'; position: absolute; right: 22px; top: 22px; color: var(--green); font-size: 21px; }
.script[open] > summary::after { content: '−'; }
.script > summary:hover { background: var(--hover); }
.script[open] > summary { border-bottom: 1px solid var(--line); }
.script h2 { margin: 0 35px 5px 0; font-size: 18px; line-height: 1.4; font-weight: 650; }
.author { color: var(--muted); font-size: 12px; margin-left: 12px; font-weight: 400; }
.script .description { margin: 5px 30px 7px 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: 10px; padding: 2px 7px; background: var(--tag-bg); border-radius: 3px; color: var(--tag-ink); }
.tag.status { background: var(--status-bg); color: var(--status-ink); }
.guide { padding: 6px 24px 0; max-width: 850px; }
.guide h3 { font-size: 13px; margin: 20px 0 6px; color: var(--heading); }
.guide h4 { font-size: 13px; margin: 18px 0 6px; color: var(--ink); }
.features h4 { font-weight: 400; }
.color-sample { display: inline-block; padding: 0 5px; border-radius: 3px; background: #000; font-weight: 400; white-space: nowrap; }
.guide p, .guide li { font-size: 14px; line-height: 1.75; }
.guide ul { padding-left: 19px; margin: 6px 0; }
.guide li + li { margin-top: 7px; }
.guide .note { padding: 0 13px; border-left: 2px solid var(--warning-line); }
.actions { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 17px 22px 24px; margin-top: 23px; font-size: 12px; }
.download { margin-left: auto; background: var(--button-bg); color: var(--button-ink); border-radius: 4px; padding: 7px 12px; text-decoration: none; }
.actions > a:not(.download) { padding: 7px 0; }
code { font: .9em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--code-bg); padding: 2px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.technical { margin-top: 22px; font-size: 12px; color: var(--muted); }
.technical > summary { cursor: pointer; }
.technical p { font-size: 12px; }
.source-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 11px; }
.source-table th, .source-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; overflow-wrap: anywhere; }
.source-table td:first-child { width: 45%; }
.source-table code { padding: 0; background: none; white-space: pre-wrap; }
.install { border-top: 1px solid var(--line); margin: 45px 0; padding-top: 20px; color: var(--muted); font-size: 13px; max-width: 730px; }
.install h2 { font-size: 19px; color: var(--ink); }
#empty { text-align: center; padding: 40px; color: var(--muted); }
footer { max-width: 1120px; border-top: 1px solid var(--line); padding: 22px 28px; margin: auto; font-size: 12px; display: flex; justify-content: space-between; color: var(--muted); }
@media (max-width: 800px) { .site-header { flex-wrap: wrap; } nav { flex-wrap: wrap; } .filters { grid-template-columns: repeat(2, 1fr); } .search-label, .filters label:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { main { padding: 0 16px; } .site-header { padding: 18px 16px; gap: 12px; } .brand { flex-basis: 100%; } nav { gap: 16px; font-size: 12px; width: 100%; } .intro { padding-top: 35px; } .filters { padding: 14px; grid-template-columns: 1fr 1fr; } .author { display: block; margin-left: 0; margin-top: 5px; } .script > summary { padding: 17px; } .guide { padding: 0 17px; } .actions { padding: 17px 17px 20px; } footer { padding: 20px 16px; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 520px) { .promo-inner { padding: 6px 16px; } }
