:root{color:#202c29;font-synthesis:none;--green:#24664d;--muted:#5f6a60;--border:#e0e5de;--edge:#78866f;--focus:#2f7d5b;background:#f6f7f4;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus,textarea:focus{outline:2px solid var(--focus);outline-offset:1px}::selection{color:#1a2723;background:#d5e6d0}input,textarea{caret-color:var(--green)}a{color:inherit}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:600}h1{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}h2{letter-spacing:-.5px;font-size:20px}h3{font-size:14px;line-height:1.5}p{line-height:1.6}.topbar{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;height:88px;padding:0 42px;display:flex}.brand{letter-spacing:-1px;align-items:center;gap:12px;font-size:23px;font-weight:750;text-decoration:none;display:flex}.brand-light{font-weight:400}.brand small{letter-spacing:1.4px;color:var(--muted);margin-top:4px;font-size:10px;font-weight:600;display:block}.brand-mark{background:var(--green);color:#fff;border-radius:11px;place-items:center;width:40px;height:40px;display:grid}.header-actions{align-items:center;gap:10px;display:flex}.save-status{color:var(--muted);align-items:center;gap:7px;margin-right:18px;font-size:12px;display:flex}.status-dot{background:#508164;border-radius:50%;width:6px;height:6px}.button{white-space:nowrap;background:#fff;border:1px solid #d8dfd7;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:9px 13px;font-size:12px;font-weight:550;display:inline-flex}.button:hover{background:#f3f6f0}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:#194d39}.button.subtle{background:0 0;border-color:#0000}.button.danger{color:#fff;background:#9a3e35;border-color:#9a3e35}.workbench{grid-template-columns:200px minmax(0,1fr) 355px;align-items:start;gap:24px;max-width:1600px;margin:auto;padding:24px 42px 48px;display:grid}.sidebar{padding:4px 0}.sidebar-section{margin-bottom:27px}.section-label{letter-spacing:1.1px;color:#5c665c;justify-content:space-between;align-items:center;min-height:30px;margin:0 9px 9px;font-size:11px;font-weight:700;display:flex}.nav-item{text-align:left;color:#67726a;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;width:100%;min-height:41px;margin-bottom:3px;padding:8px 11px;font-size:12px;display:flex}.nav-item>span:not(.nav-count):not(.category-dot){overflow-wrap:anywhere;min-width:0}.nav-item:hover{background:#ecefe8}.nav-item.active{color:#28543d;background:#e6eee3;font-weight:600}.nav-item.active svg{color:#326b4b}.nav-count{color:var(--muted);margin-left:auto;font-size:11px}.nav-item.active .nav-count{color:#3a5c31;background:#d6e4d0;border-radius:6px;padding:2px 5px}.config-tools{align-items:center;gap:5px;padding:4px 10px;display:flex}.config-tools .text-button{margin-right:auto;font-size:11px}.active-category{color:#263e2e;background:#ecefe8;font-weight:600}.category-dot{background:#aeb8a8;border-radius:50%;width:5px;height:5px;margin:0 5px}.category{min-height:36px;font-size:12px}.library{min-width:0}.library-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;display:flex}.library-heading h2{align-items:center;gap:9px;display:flex}.count-badge{letter-spacing:0;color:#4d5749;background:#e9ede5;border:1px solid #e0e6db;border-radius:6px;padding:2px 6px;font-size:11px}.library-heading .button{padding:9px 12px;font-size:12px}.library-controls{gap:10px;display:flex}.search{border:1px solid var(--edge);color:#6d786c;background:#fff;border-radius:8px;flex:1;align-items:center;gap:9px;min-width:0;padding:0 12px;display:flex}.search input{color:#344239;background:0 0;border:0;outline:none;width:100%;min-width:0;height:44px;font-size:13px}.search:focus-within{outline:2px solid var(--focus)}.search input:focus{outline:none}.search .text-button{color:#56654f;justify-content:center;min-width:30px;font-size:20px;line-height:1}.filter-button{border:1px solid var(--edge);color:#647063;background:#fff;border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:12px;display:flex}.filter-button b{color:#536b48;background:#eef1ea;border-radius:6px;padding:2px 5px;font-size:11px}.filter-button.selected{background:#e4efe3;border-color:#aac4a2}.results-line{color:var(--muted);justify-content:space-between;align-items:center;margin:17px 1px 12px;font-size:12px;display:flex}.results-line>span:first-child{color:#54634f;align-items:center;gap:7px;display:flex}.snippet-list{flex-direction:column;gap:11px;display:flex}.snippet-card{border:1px solid var(--border);background:#fff;border-radius:10px;padding:17px 18px 13px;transition:border-color .15s,background .15s}.snippet-card.enabled{background:#fcfefa;border-color:#a9bea0;box-shadow:0 0 0 1px #d8e4d04d}.snippet-top{justify-content:space-between;align-items:center;gap:5px;display:flex}.snippet-toggle{cursor:pointer;align-items:center;gap:10px;min-width:0;display:flex;position:relative}.snippet-toggle input{opacity:0;width:17px;height:17px;margin:0;position:absolute}.check-box{color:#0000;background:#fff;border:1px solid #78866f;border-radius:4px;flex-shrink:0;place-items:center;width:17px;height:17px;display:grid}.snippet-toggle input:checked+.check-box{background:var(--green);border-color:var(--green);color:#fff}.snippet-toggle input:focus-visible+.check-box{outline:3px solid var(--focus);outline-offset:3px}.snippet-toggle h3{letter-spacing:-.1px;overflow-wrap:anywhere;font-size:12px}.snippet-card>p{color:#6b766b;white-space:pre-wrap;overflow-wrap:anywhere;max-width:56ch;margin:10px 0 12px 27px;font-size:12px;line-height:1.8}.snippet-meta{color:#56604f;flex-wrap:wrap;gap:7px;margin-left:27px;font-size:11px;display:flex}.snippet-meta>span{background:#f2f4ee;border:1px solid #e8ece3;border-radius:6px;padding:3px 6px}.snippet-meta>.local-tag{color:#426535;background:#e5eee1}.snippet-actions{flex-shrink:0;align-items:center;display:flex}.icon-button{color:#6d786c;background:0 0;border:0;border-radius:6px;place-items:center;min-width:32px;min-height:32px;padding:4px;display:inline-grid}.icon-button:hover{color:#2f6b4b;background:#e8eee2}.text-button{color:#56654f;background:0 0;border:0;align-items:center;gap:5px;padding:4px 0;font-size:12px;text-decoration:none;display:inline-flex}.text-button:hover{text-decoration:underline}.preview{background:#fff;border:1px solid #dce3d7;border-radius:12px;scroll-margin-top:15px;position:sticky;top:24px;overflow:hidden;box-shadow:0 4px 14px #293e2510}.preview-heading{padding:24px 23px 19px}.preview-heading h2{font-size:22px}.preview-heading p{color:var(--muted);margin-top:7px;font-size:12px}.preview-toolbar{color:var(--muted);background:#fafbf8;border-block:1px solid #e8ece3;justify-content:space-between;align-items:center;padding:10px 22px;font-size:11px;display:flex}.preview-toolbar b{color:#395a31}.prompt-area{background:#fdfefb;padding:0 21px}.prompt-area textarea{resize:vertical;color:#46553f;background:0 0;border:0;width:100%;height:calc(100vh - 565px);min-height:320px;max-height:650px;padding:20px 0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.75}.prompt-area textarea:focus{outline:none}.prompt-area:focus-within{outline:2px solid var(--focus);outline-offset:-2px}.preview-bottom{color:var(--muted);border-top:1px solid #edf0e8;justify-content:space-between;padding:11px 22px;font:11px ui-monospace,monospace;display:flex}.copy-wrap{padding:8px 20px 15px}.copy-button{width:100%;height:44px;font-size:13px}.copy-wrap p{text-align:center;color:var(--muted);margin-top:10px;font-size:12px}.order-list{border-top:1px solid #e5eadd;padding:15px 20px;font-size:12px}.order-list summary{cursor:pointer;color:#67785a}.order-list summary span{float:right}.order-list>p{max-width:56ch;margin:10px 0;font-size:12px}.order-row{color:#65765a;align-items:center;gap:6px;margin-top:4px;display:flex}.order-row>span{overflow-wrap:anywhere;flex:1;font-size:11px}.order-row>svg{color:#adb5a5;flex-shrink:0}.empty{text-align:center;color:#5f6a60;background:#fff;border:1px dashed #a9b6a3;border-radius:10px;padding:48px 20px}.empty p{max-width:46ch;margin:7px auto 0;font-size:12px}.empty h3{font-size:14px}.empty-actions{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px;display:flex}.notices{max-width:1600px;margin:0 auto;padding:18px 42px 0}.notice{background:#e9f0e4;border-radius:8px;flex-wrap:wrap;align-items:center;gap:15px;margin-bottom:8px;padding:12px 16px;font-size:12px;display:flex}.warning{background:#fff0d8}.warning-text{color:#966326}.loading{text-align:center;color:var(--muted);padding:80px}dialog{border:1px solid var(--border);color:#202c29;border-radius:14px;width:min(540px,100% - 32px);max-height:90vh;padding:25px;box-shadow:0 20px 80px #14291b30}dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#182a2360}.dialog-heading{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.dialog-heading h2{font-size:21px}dialog p{margin-bottom:16px;font-size:13px}form>label{margin:16px 0;font-size:12px;font-weight:600;display:block}form input,form textarea{border:1px solid var(--edge);width:100%;color:inherit;background:#fcfdfb;border-radius:8px;margin-top:7px;padding:11px 12px;font-weight:400;display:block}form textarea{resize:vertical;line-height:1.6}.field{margin:16px 0;font-size:12px;font-weight:600;display:block}.field>label{display:block}.combo{margin-top:7px;position:relative}.combo input{margin-top:0;padding-right:40px}.combo-toggle{color:#697568;background:0 0;border:0;border-radius:6px;place-items:center;width:30px;height:30px;padding:0;transition:background .15s,color .15s;display:grid;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.combo-toggle:hover{color:#2f6b4b;background:#eef3e9}.combo-toggle:active{transform:translateY(calc(1px - 50%))}.combo.open .combo-toggle svg{transform:rotate(180deg)}.combo-toggle svg{transition:transform .18s cubic-bezier(.16,1,.3,1)}.combo-list{z-index:20;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7d3c1 transparent;background:#fff;border:1px solid #ced8c5;border-radius:9px;max-height:min(320px,55vh);margin:0;padding:5px;list-style:none;animation:.14s cubic-bezier(.16,1,.3,1) both combo-open;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 16px 34px -14px #14291b5c}.combo-list::-webkit-scrollbar{width:10px}.combo-list[hidden]{display:none}.combo-list::-webkit-scrollbar-thumb{background:#c7d3c1;border:3px solid #fff;border-radius:10px}.combo-list::-webkit-scrollbar-track{background:0 0}.combo-option{color:#46524a;cursor:pointer;overflow-wrap:anywhere;border-radius:6px;align-items:center;gap:8px;padding:8px 9px;font-size:12px;font-weight:400;display:flex}.combo-option svg{color:#4d7f5f;flex-shrink:0}.combo-option[aria-selected=true]{color:#24503a;background:#eef3e9}.combo-option.create{color:#2f6b4b;font-weight:550}.combo-empty{color:var(--muted);padding:9px;font-size:12px}.field-hint{color:var(--muted);margin:5px 0 0;font-size:12px;font-weight:400}@media (width<=640px){.combo-toggle{width:40px;height:40px;right:3px}.combo input{padding-right:48px}.combo-list{max-height:340px}.combo-option{min-height:40px;padding:10px 9px;font-size:13px}.discard-check{border-radius:0 0 13px 13px;padding:16px 18px 18px}.discard-check .dialog-actions{margin-top:15px}.discard-check .button{flex:1;min-height:44px}}.muted{color:var(--muted);font-weight:400}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:24px;transition:opacity .18s;display:flex}.dialog-actions[inert]{opacity:.4}.discard-check{z-index:30;background:#fff0d8;border-top:1px solid #f0d9ae;border-radius:0 0 13px 13px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 18px;padding:15px 25px 17px;animation:.21s cubic-bezier(.16,1,.3,1) both bar-rise;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -16px 30px -18px #14291b80}.discard-check p{color:#7d3e19;margin:0;font-size:13px;font-weight:600}.discard-check .dialog-actions{margin-top:0}@keyframes combo-open{0%{opacity:0;transform:translateY(-4px)}}@keyframes bar-rise{0%{opacity:0;transform:translateY(12px)}}@media (prefers-reduced-motion:reduce){.combo-list,.discard-check{animation:none}.combo-toggle,.combo-toggle svg,.dialog-actions{transition:none}}.mobile-preview{display:none}@media (width>=1600px){.topbar{padding-inline:max(42px,50vw - 758px)}}@media (width<=1200px){.workbench{grid-template-columns:170px minmax(0,1fr) 310px;gap:24px;padding-inline:28px}.topbar{padding-inline:28px}.snippet-card{padding:14px 12px}.snippet-actions .icon-button{min-width:24px}.snippet-card>p,.snippet-meta{margin-left:0}.library-heading{align-items:flex-start}.library-heading h2{font-size:18px}.library-heading p{max-width:180px}.save-status{margin-right:5px}}@media (width<=1000px){.workbench{grid-template-columns:170px minmax(0,1fr);gap:24px}.preview{grid-column:2;position:static}.prompt-area textarea{height:330px}.mobile-preview{min-height:44px;color:var(--green);justify-content:center;align-items:center;gap:6px;margin:0 0 13px;font-size:13px;text-decoration:none;display:flex}.save-status{display:none}}@media (width<=640px){.topbar{height:73px;padding:0 18px}.brand{gap:8px;font-size:20px}.brand-mark{width:34px;height:34px}.brand small{font-size:9px}.header-actions{gap:3px}.header-actions .button{min-height:40px;padding:7px;font-size:11px}.header-actions svg{width:13px}.workbench{flex-direction:column;gap:24px;padding:24px 18px 32px;display:flex}.sidebar{width:100%;padding:0}.sidebar-section{margin-bottom:15px}.sidebar-section:first-child nav{flex-wrap:wrap;gap:6px;padding-bottom:0;display:flex}.sidebar-section:first-child .nav-item{flex-shrink:0;gap:8px;width:auto;padding:10px;font-size:12px}.section-label{margin:0 2px 5px;font-size:11px}.sidebar-section:nth-child(2){display:none}.config-tools{justify-content:flex-end;padding:0 3px}.config-tools .text-button{margin-right:0}.sidebar-section:first-child{margin-bottom:0}.library{width:100%}.library-heading{margin-bottom:17px}.library-heading h2{font-size:20px}.library-heading .button{font-size:12px}.button{min-height:44px}.filter-button{padding:0 10px}.filter-button>span{display:none}.snippet-card{padding:15px}.snippet-toggle h3,.snippet-card>p{font-size:12px}.snippet-meta{font-size:11px}.icon-button{min-width:36px;min-height:36px}.preview{width:100%}.notices{padding-inline:18px}.prompt-area textarea{font-size:12px}.snippet-top{align-items:flex-start}.snippet-toggle{padding-top:5px}.snippet-actions{gap:0}.snippet-actions .icon-button{min-width:25px}}.mobile-category{display:none}.form-error{color:#7d3e19;background:#fff0d8;border-radius:8px;padding:10px 12px}@media (width<=640px){.mobile-category{color:#647063;align-items:center;gap:10px;margin-bottom:12px;font-size:11px;display:flex}.mobile-category select{border:1px solid var(--edge);min-width:0;min-height:44px;color:inherit;font:inherit;background:#fff;border-radius:8px;flex:1;padding:8px 10px}.mobile-category select:focus-visible{outline:2px solid var(--focus);outline-offset:2px}}
