:root {
  color-scheme:light;
  --paper:#f7f6f1; --surface:#fffef9; --ink:#1d3029; --green:#204c3d; --muted:#56665d;
  --line:#cdd4c9; --lime:#e4edab; --serif:"Baskerville","Iowan Old Style","Songti SC","Noto Serif CJK SC","STSong",serif;
  --sans:"DM Sans","PingFang SC","Microsoft YaHei",sans-serif;
  font:15px/1.55 var(--sans);
}
*{box-sizing:border-box}
html{scroll-padding-top:22px}
body{margin:0;background:var(--paper);color:var(--ink)}
button,input,select{font:inherit}
button,a,input,select,summary{-webkit-tap-highlight-color:transparent}
button{display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;border:0;background:none;color:inherit}
button:disabled{cursor:default}
button,a,select,summary{touch-action:manipulation}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid #a5602b;outline-offset:3px}
[hidden]{display:none!important}
svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.defs{position:absolute;width:0;height:0;overflow:hidden}
h1,h2,p,figure{margin:0}
.shell{width:min(1180px,calc(100% - 96px));margin:auto}
.skip{position:fixed;z-index:10;top:-100px;left:20px;background:white;padding:9px;border-radius:4px}
.skip:focus{top:10px}
header{border-bottom:1px solid var(--line)}
.bar,.brand,nav,.actions,.library-head,.selection,footer,footer span,.product-name,.formats,.filters{display:flex;align-items:center}
.bar{height:72px;justify-content:space-between}
.brand{gap:11px}.brand-icon{display:grid;place-items:center;background:var(--green);color:var(--lime);width:36px;height:36px;border-radius:9px}
.brand-icon svg{width:24px;height:24px}.brand strong{font-size:21px;letter-spacing:.04em}
nav{gap:26px;font-size:13px;color:var(--muted)}nav a{padding:12px 0}nav a:hover,.questions summary:hover{color:#1d5741}.help{width:34px;height:34px;border:1px solid var(--line);border-radius:50%}
.hero{display:grid;grid-template-columns:1fr 1fr;background:#193c30;color:#f8f6e9;border-radius:16px;overflow:hidden;margin:28px 0 0}
.hero-copy{padding:clamp(28px,3.5vw,52px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.product-name{gap:10px;color:#d5e0c5;font:italic 16px/1.4 var(--serif);letter-spacing:.015em}
.product-name span[aria-hidden]{flex:none;width:24px;height:1px;background:#c3cd9a}
h1{font:500 clamp(43px,4.25vw,65px)/1.13 var(--serif);letter-spacing:-.045em;margin:20px 0 14px}
h1 em{font-style:normal;color:var(--lime)}.intro{color:#e1e7d8;font-size:14px;line-height:1.7}
.actions{gap:21px;margin:24px 0 11px}.primary,.export{border-radius:7px;min-height:41px;padding:9px 18px;font-size:14px;font-weight:600}
.primary{background:var(--lime);color:#193a2b}.primary:hover{background:#f2f6c4}.demo{color:#f1f4dd;font-size:13px;padding:10px 0}.demo:hover{text-decoration:underline}
.demo svg,.primary svg,.export svg{width:16px;height:16px}
.formats{gap:8px;color:#c7d4bf;font-size:11px;letter-spacing:.03em}.formats span[aria-hidden]{opacity:.6}
.hero-visual{min-height:100%;position:relative;overflow:hidden;background:#c4cdbf}.hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero.over{outline:3px solid #8aa33e;outline-offset:3px}
body.loaded .hero{grid-template-columns:1fr;background:#e6ecdf;color:var(--green)}
body.loaded .hero-visual,body.loaded .hero h1,body.loaded .hero .intro,body.loaded .formats{display:none}
body.loaded .hero-copy{padding:12px 20px;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
body.loaded .product-name{color:var(--green)}body.loaded .product-name span[aria-hidden]{background:#6b8167}
body.loaded .actions{margin:0}body.loaded .demo{color:var(--green)}body.loaded .primary{background:var(--green);color:white}
#status{padding:10px 4px 0;color:var(--green);font-size:13px;overflow-wrap:anywhere}
#status.error,#pageError{color:#8f3326}#status.error{padding:12px 15px;background:#fff0e9;border-radius:6px;margin-top:10px}
.library{margin:32px 0 35px}
.library-head{justify-content:space-between;gap:12px;margin-bottom:16px}
.eyebrow{color:#657361;font:italic 15px/1.2 var(--serif)}
h2{font:600 29px/1.35 var(--serif);letter-spacing:-.045em;margin-top:3px}
.export{background:var(--green);color:white}.export:hover:enabled{background:#153b2e}
.export:disabled{background:#e6e8df;color:#636d63}
.tabs{display:flex;border-bottom:1px solid var(--line);gap:14px;margin:12px 0}
.tabs button{font-size:13px;min-height:39px;padding:4px 6px 8px;color:var(--muted);border-bottom:2px solid transparent}
.tabs button[aria-pressed=true]{color:var(--green);border-color:var(--green);font-weight:700}
.tabs svg{width:15px;height:15px}.tabs b{background:#e6eadf;border-radius:4px;padding:0 5px;font:11px/17px ui-monospace,monospace}
.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:center;gap:6px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.filters label{min-width:0;color:var(--muted);font-size:12px}
.filter-field{position:relative;isolation:isolate}
.filter-field span{position:absolute;z-index:1;top:7px;left:12px;pointer-events:none;font-size:11px;letter-spacing:.04em}
.filter-field::after{content:"";position:absolute;right:14px;top:50%;width:6px;height:6px;border:solid #677c6d;border-width:0 1.5px 1.5px 0;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.filter-field select{appearance:none;display:block;width:100%;height:54px;padding:22px 31px 6px 11px;border:1px solid transparent;border-radius:7px;background:#f4f5ee;color:var(--ink);font-size:14px;font-weight:550;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.filter-field select:hover:enabled{background:#eaeee4}
.filter-field select:has(option:checked:not([value=""])){background:#e7efe2;color:var(--green);border-color:#adc0a7}
.filter-field select:focus-visible,.filters input:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.filter-field select:disabled{color:#70796f;cursor:wait}
@supports (appearance:base-select) and selector(::picker(select)){
  .filter-field select,.filter-field select::picker(select){appearance:base-select}
  .filter-field select::picker-icon{display:none}
  .filter-field:has(select:open)::after{transform:translateY(-20%) rotate(225deg)}
  .filter-field select::picker(select){margin-block:4px;padding:4px;min-width:anchor-size(width);max-height:min(320px,50dvh);overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 8px 24px #203b2a20}
  .filter-field option{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:6px;font:400 13px/1.5 var(--sans);cursor:pointer}
  .filter-field option:checked{background:#e7efe2;color:var(--green);font-weight:600}
  .filter-field option:is(:hover,:focus-visible){background:#eff2e9;outline:1px solid #a7b9a1;outline-offset:-1px}
  .filter-field option::checkmark{order:1;margin-left:auto;color:var(--green)}
}
#rangeField{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:10px;padding:4px 6px}
#pageRange{width:140px;max-width:100%;padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);font-size:14px}
#pageRange[aria-invalid=true]{border-color:#a44738}#pageError{grid-column:1/-1;padding:0 6px 4px;font-size:12px}
.filters button,.selection button{font-size:12px;min-height:34px;color:var(--green)}
#resetFilters{grid-column:-2/-1;grid-row:1;padding:6px 10px;border-radius:6px;white-space:nowrap}
#resetFilters:enabled:hover{background:#edf1e7}.filters button:disabled,.selection button:disabled{color:#677065;opacity:.8}
.selection{gap:12px;flex-wrap:wrap;margin:8px 0;font-size:13px}
.selection label{display:flex;align-items:center;gap:7px;cursor:pointer}
.selection input,.pick input{accent-color:var(--green);margin:0;width:17px;height:17px;cursor:pointer}
#selectionCount{margin-left:auto;font-size:12px;color:var(--muted)}
#empty{display:grid;justify-items:center;text-align:center;align-content:center;gap:2px;padding:23px 16px;border:1px dashed #b6c2b1;border-radius:9px;background:#edeFE6}
#empty svg{color:#6c8169;width:25px;height:25px;margin-bottom:5px}
#empty strong{font-size:14px}#empty span{font-size:12px;color:var(--muted)}
body:not(.loaded) .tabs{display:none}body:not(.loaded) #export{display:none}
#grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.card:has(.pick input:checked){border-color:#94a791}
.pick{position:absolute;top:9px;left:9px;z-index:1;display:grid;place-items:center;width:31px;height:31px;background:#fff;border-radius:7px;box-shadow:0 1px 5px #223c2c33;cursor:pointer}
.preview{width:100%;height:152px;padding:0;background:#e8e9df;color:#566e57}
.preview img,.preview video{width:100%;height:100%;object-fit:contain}.preview svg{width:36px;height:36px}.preview:focus-visible{outline-offset:-4px}
.card-body{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:12px}.card-body strong,.card-body small{display:block;overflow-wrap:anywhere}
.card-body strong{font-size:14px}.card-body small{font-size:12px;color:var(--muted)}.card-body button{flex:none;color:var(--green);padding:10px;border-radius:50%}.card-body button:hover{background:#e7eddf}
.guide{display:grid;grid-template-columns:1fr 2fr;gap:24px;border-top:1px solid var(--line);padding:26px 0 24px}
.questions details{border-bottom:1px solid var(--line)}.questions summary{position:relative;cursor:pointer;font-weight:500;font-size:14px;padding:13px 26px 13px 0;list-style:none}.questions summary::-webkit-details-marker{display:none}
.questions summary::after{content:'+';position:absolute;right:4px;color:var(--green);font:20px/20px var(--serif)}.questions details[open] summary::after{content:'−'}
.questions p{padding:0 22px 14px 0;font-size:13px;color:var(--muted);line-height:1.85}
footer{border-top:1px solid var(--line);padding:15px 0 24px;justify-content:space-between;color:var(--muted);font-size:12px}footer span{gap:6px}footer svg{width:14px;height:14px}footer i{color:#97a394}
dialog{width:min(580px,92vw);max-height:86vh;overflow:auto;border:1px solid var(--line);padding:24px;border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 24px 100px #11261f42}
dialog::backdrop{background:#11241ee0}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.dialog-head h2{font-size:23px;overflow-wrap:anywhere}.dialog-head button{border-radius:50%;border:1px solid var(--line);min-width:34px;height:34px;font-size:22px}
#dialogBody p{margin:8px 0;font-size:14px}#dialogBody img,#dialogBody video{display:block;max-width:100%;max-height:58vh;margin:auto}#dialogBody button{margin-top:14px}
@media(max-width:780px){.shell{width:calc(100% - 40px)}.hero-copy{padding:28px}.hero{grid-template-columns:1.12fr 1fr}.bar{height:60px}nav{gap:15px}.actions{gap:13px}.guide{grid-template-columns:1fr 1.8fr}}
@media(max-width:590px){.shell{width:calc(100% - 28px)}nav{gap:10px}.help{width:28px;height:28px}.brand{gap:7px}.brand strong{font-size:18px}.brand-icon{width:30px;height:30px}
.hero{display:flex;flex-direction:column-reverse;margin-top:16px;border-radius:12px}.hero-visual{height:clamp(120px,40vw,200px);min-height:0}.hero-visual img{object-position:center 52%}.hero-copy{padding:21px 22px}.product-name{font-size:14px}h1{font-size:36px;line-height:1.15;margin:12px 0 8px}.intro{font-size:13px}.actions{margin-top:16px}.primary,.export{padding:9px 12px}.library{margin:22px 0}.guide{grid-template-columns:1fr;gap:8px}.guide h2,h2{font-size:24px}
#grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}.preview{height:115px}.card-body{padding:8px}.card-body strong{font-size:13px}.card-body small{font-size:11px}.card-body button{padding:7px}.filters{grid-template-columns:repeat(2,minmax(0,1fr))}#rangeField{grid-row:auto;order:1}#pageError{order:2}#resetFilters{grid-column:1/-1;grid-row:auto;order:3;justify-self:end}.selection{gap:5px 10px}#selectionCount{font-size:11px}
body.loaded .hero-copy{padding:9px 12px}body.loaded .product-name{display:none}body.loaded .actions{width:100%;justify-content:space-between}}
.preview canvas{width:100%;height:100%;object-fit:contain}
.preview-strip{display:flex;justify-content:center;align-items:center;gap:12px;margin:12px 0;color:var(--muted);font-size:12px}
#dialogBody .preview-strip button{min-height:36px;padding:6px 12px;border:1px solid var(--line);border-radius:6px;margin:0}
.preview-strip button:disabled{opacity:.45}
#more{display:flex;min-height:40px;border:1px solid var(--line);border-radius:7px;margin:16px auto;padding:7px 16px;font-size:13px}

.video-label{pointer-events:none;position:absolute;right:9px;top:9px;display:grid;place-items:center;width:27px;height:27px;background:#173b30e6;color:white;border-radius:50%}.video-label svg{width:15px;height:15px}

nav a.locale{padding:5px 9px;border:1px solid var(--line);border-radius:6px;white-space:nowrap}
nav a.locale:hover{background:#e9eee2}
:lang(en) .formats{flex-wrap:wrap}
@media(max-width:450px){nav a[href="#workbench"],nav a[href="#guide"]{display:none}}
