:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif;color:#16273a;background:#f6f8fa;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100dvh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit}.container{max-width:1240px;margin:auto;padding-inline:28px}.site-shell{min-height:100vh;background:radial-gradient(circle at 86% 5%,rgba(79,215,196,.065),transparent 24%),#f6f8fa}.topbar{height:91px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9eef2}.brand{display:flex;align-items:center;gap:13px;text-decoration:none}.brand-logo{width:43px;height:43px;display:grid;place-items:center;color:#132b3a;border-radius:14px;background:#73e3cd;font-size:28px;font-weight:900;box-shadow:0 8px 26px rgba(80,205,181,.26)}.brand b{display:block;font-size:20px;letter-spacing:-.6px}.brand small{display:block;font-size:11px;margin-top:2px;color:#738391}.top-actions{display:flex;align-items:center;gap:17px}.free-tag{display:inline-flex;gap:8px;align-items:center;font-size:12px;color:#166953;font-weight:750;background:#e5f6f0;padding:8px 12px;border-radius:30px}.live-dot{width:7px;height:7px;background:#22b27a;border-radius:50%;box-shadow:0 0 0 4px #bdf0dd}.top-link{font-size:13px;text-decoration:none;font-weight:750;color:#344657}.top-link:hover{text-decoration:underline}.hero{text-align:center;padding:42px 0 36px}.eyebrow{font-size:12px;font-weight:800;color:#168c77;letter-spacing:.2px;background:#e8f7f3;border:1px solid #d2ede5;border-radius:50px;padding:8px 14px;display:inline-flex;gap:8px;align-items:center}.star-icon{font-size:14px}.hero h1{font-size:clamp(30px,4.4vw,49px);line-height:1.36;margin:17px 0 12px;letter-spacing:-1.8px;font-weight:850}.hero h1 span{color:#188c77}.hero p{font-size:15px;line-height:1.9;color:#68798b;max-width:700px;margin:0 auto}.hero-notes{display:flex;gap:19px;align-items:center;justify-content:center;margin-top:18px;font-size:12px;font-weight:700;color:#6e8391}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.panel{background:white;border:1px solid #e9edf1;border-radius:20px;box-shadow:0 17px 50px rgba(19,46,65,.045);padding:27px;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.section-kicker{color:#93a3af;font-size:11px;font-weight:850;letter-spacing:1px}.section-heading h2{font-size:21px;margin:5px 0 0;letter-spacing:-.3px}.hint-chip{font-size:11px;color:#158c75;background:#edfaf6;border-radius:8px;padding:8px 10px;font-weight:800}.label-line{margin-bottom:11px;font-size:13px;font-weight:750}.categories{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:24px}.category{border:1px solid #e6ebef;border-radius:9px;padding:9px 11px;background:#f8fafb;color:#677686;font-size:12px;font-weight:750;transition:all .18s}.category span{font-size:15px;margin-left:4px;vertical-align:-1px}.category:hover{border-color:#66ccb5}.category.active{border-color:#0e2538;background:#12283d;color:white;box-shadow:0 5px 13px rgba(18,40,61,.13)}.textarea-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px;font-size:13px;font-weight:800}.text-counter{color:#a6b3bd;font-size:11px;font-weight:600}textarea,input,select{color:#1b3447;outline:none;border:1px solid #e5ebef;background:#fafbfc;transition:border-color .18s,box-shadow .18s}textarea:focus,input:focus,select:focus{border-color:#40bdab;box-shadow:0 0 0 3px rgba(64,189,171,.11)}textarea{resize:vertical;display:block;width:100%;padding:15px;border-radius:12px;line-height:1.9;font-size:13px;min-height:96px}#fieldRequest{min-height:188px}textarea::placeholder,input::placeholder{color:#a7b2bd}.samples{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0 23px}.samples>span{font-size:11px;color:#9aa6b1}.example{border:1px solid #e9edf1;color:#607484;background:#fff;font-size:11px;padding:6px 10px;border-radius:8px}.example:hover{border-color:#42c8b2;color:#127a68}.advanced{border:1px solid #e9edf1;border-radius:11px;overflow:hidden;margin-bottom:20px}.advanced summary,#aiSettings summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:800;font-size:13px;padding:14px 15px;color:#375164}.advanced summary::-webkit-details-marker,#aiSettings summary::-webkit-details-marker{display:none}.advanced summary small{font-size:11px;color:#a4b1b9;margin-right:5px;font-weight:600}.controls-icon{color:#178e7a;font-size:19px;margin-left:8px}.chevron{font-size:22px;color:#8997a1;transition:transform .2s}.advanced[open] .chevron{transform:rotate(180deg)}.advanced-content{padding:5px 15px 16px;border-top:1px solid #eff2f5}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{margin-top:14px;min-width:0}.field label{font-size:12px;font-weight:750;display:block;margin-bottom:8px}.field small{display:block;color:#8796a3;font-size:11px;line-height:1.8;margin-top:7px}.field .optional{font-size:10px;color:#99a9b6;font-weight:500}.field select,.field input{width:100%;height:43px;border-radius:9px;padding:0 10px;font-size:12px}.field textarea{font-size:12px;padding:9px 10px}.main-actions{display:flex;gap:10px}.primary-action{border:0;border-radius:11px;min-height:50px;display:flex;justify-content:center;align-items:center;gap:11px;background:#142b40;color:#fff;font-size:13px;font-weight:850;flex:1;box-shadow:0 10px 24px rgba(20,43,64,.17);transition:transform .15s,background .15s}.primary-action:hover{background:#1c3b53;transform:translateY(-1px)}.primary-action>span:first-child{color:#83e6cb;font-size:17px}.secondary-action{border:1px solid #e5ebef;background:#fff;color:#7f8e98;padding:0 21px;border-radius:11px;font-size:12px;font-weight:700}.under-actions{font-size:11px;color:#97a6af;text-align:center;margin:13px 0 0;line-height:1.7}.result-panel{padding-bottom:23px}.result-heading{margin-bottom:22px}.status-pill{font-size:11px;background:#f0f3f6;color:#8495a3;border-radius:30px;padding:7px 11px;white-space:nowrap}.status-pill.ready{color:#11745e;background:#e3f6ef}.output-tools{display:flex;align-items:center;gap:8px;margin-bottom:12px}.output-tools button{border:1px solid #e5ebef;background:#fff;color:#566a78;border-radius:8px;font-size:11px;padding:8px 11px;font-weight:700}.output-tools button:not(:disabled):hover{border-color:#42c5ae;color:#11826e}.output-wrap{border:1px solid #e5ebee;border-radius:12px;background:#f9fbfc;min-height:397px;max-height:485px;overflow:auto;overscroll-behavior:contain}.empty-state{min-height:395px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.empty-symbol{font-size:44px;display:grid;place-items:center;border-radius:22px;width:77px;height:77px;background:#e8f7f3;color:#1bad95;margin-bottom:20px}.empty-state strong{color:#2c4153;font-size:17px}.empty-state p{font-size:12px;line-height:1.9;color:#97a6b1;max-width:235px}#outputText{white-space:pre-wrap;overflow-wrap:anywhere;unicode-bidi:plaintext;text-align:start;color:#293e4b;font-family:inherit;font-size:12.5px;line-height:2;min-height:397px;margin:0;padding:20px}.result-meta{display:flex;justify-content:space-between;gap:9px;color:#a3afb8;font-size:11px;margin:12px 0 20px}.quality-tips{padding:15px 17px;border:1px solid #e7efec;background:#fbfefd;border-radius:10px;margin:0 0 18px}.quality-tips h3{font-size:12px;margin:0 0 9px}.quality-tips ul{margin:0;padding:0 17px 0 0;color:#667e88;font-size:11px;line-height:1.9}.ai-card{background:#f5f9f9;border:1px solid #e4edec;border-radius:14px;padding:17px}.ai-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ai-card-head>div{display:flex;align-items:center;gap:7px;font-size:12px}.ai-glyph{color:#16a58b;font-size:20px}.optional-tag{font-size:10px;color:#81939a;background:white;border:1px solid #e1e9e7;padding:4px 9px;border-radius:100px}.ai-card p{color:#71868f;font-size:11px;line-height:1.85;margin:8px 0 13px}#aiSettings{border:1px solid #e0e8e7;border-radius:9px;margin-bottom:12px;background:white}#aiSettings summary{font-size:11px;padding:11px 12px}#aiSettings .field{margin:0 12px 8px}#aiSettings .field input{direction:ltr;text-align:left}.minor-link{font-size:11px;text-decoration:none;display:inline-block;margin:0 12px 12px;color:#138e76;font-weight:750}.ai-action{width:100%;border-radius:9px;border:1px solid #c5e8dd;color:#166f60;background:#e6f7f0;min-height:39px;font-size:12px;font-weight:800;display:flex;gap:9px;align-items:center;justify-content:center}.ai-action:not(:disabled):hover{background:#d8f3e9}.ai-message{font-size:11px;line-height:1.8;color:#748a90;margin-top:7px}.ai-message:empty{display:none}.ai-message.error{color:#a3423d}.ai-message.success{color:#146e58}.bottom-row{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:22px 0}.bottom-row>div{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid #e8eef1;padding:17px;border-radius:12px}.bottom-icon{width:34px;height:34px;display:grid;place-items:center;background:#e6f6f0;color:#21967f;border-radius:9px;flex-shrink:0;font-size:20px}.bottom-row b{font-size:12px}.bottom-row p{font-size:11px;color:#8999a6;margin:5px 0 0;line-height:1.8}footer{display:flex;justify-content:space-between;gap:15px;color:#a0aeb8;font-size:11px;padding:0 0 30px}.toast{position:fixed;z-index:10;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:all .2s;color:#fff;background:#203d4b;box-shadow:0 15px 40px #162f3950;border-radius:10px;padding:12px 18px;font-size:12px;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}:focus-visible{outline:3px solid #27ae97;outline-offset:2px}@media(max-width:940px){.workspace{grid-template-columns:1fr}.hero{padding:31px 0 29px}.output-wrap{max-height:560px}.bottom-row{margin-top:18px}}@media(max-width:610px){.container{padding-inline:15px}.topbar{height:69px}.brand-logo{width:38px;height:38px;font-size:25px;border-radius:12px}.brand{gap:9px}.brand b{font-size:18px}.brand small{font-size:10px}.top-actions{gap:9px}.free-tag{padding:7px 8px;font-size:10px}.top-link{font-size:11px}.hero{padding:27px 0 25px}.hero h1{font-size:32px;line-height:1.43;letter-spacing:-.8px}.hero p{font-size:12px;line-height:1.9}.hero-notes{gap:10px;font-size:10px;flex-wrap:wrap}.panel{padding:19px 16px;border-radius:15px}.section-heading{margin-bottom:22px}.section-heading h2{font-size:18px}.categories{gap:6px}.category{font-size:11px;padding:9px 9px}.category span{margin-left:3px;font-size:12px}.hint-chip{font-size:10px}.samples>span{width:100%}.two-col{grid-template-columns:1fr}.result-panel{padding:19px 16px}.bottom-row{grid-template-columns:1fr;gap:10px}.output-wrap{min-height:320px;max-height:450px}.empty-state{min-height:320px}#outputText{min-height:320px;padding:13px;font-size:12px}footer{flex-direction:column;gap:5px;text-align:center}.hero-notes span{white-space:nowrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Explicitly honor the hidden attribute, including flex empty states. */
[hidden]{display:none!important}

/* Mobile-friendly always-visible feedback for preview mode and invalid input. */
.runtime-banner{padding:11px 13px;margin-top:12px;border-radius:10px;background:#fff6e6;border:1px solid #f1d7a5;color:#80550e;font-size:12px;line-height:1.8}
.runtime-banner.is-ready{background:#e9f7f1;border-color:#c3e7d9;color:#176d58}
.field-message{padding:12px 13px;margin:10px 0 0;background:#fff1ef;border:1px solid #edc0b9;border-radius:10px;color:#99382b;font-weight:700;font-size:12px;line-height:1.8}
textarea[aria-invalid="true"]{border-color:#bf3b2f;box-shadow:0 0 0 3px #f4d9d4}

/* Private GitHub vault v3 */
.vault-section{margin-bottom:20px;border-color:#cee7df;background:linear-gradient(145deg,#ffffff 67%,#f3faf8)}
.vault-heading{margin-bottom:10px}.vault-description{font-size:12px;line-height:2;color:#536f7d;margin:5px 0 13px}.vault-status{border:1px solid #d7e8e4;background:#edf8f3;color:#176450;padding:12px 14px;border-radius:10px;line-height:1.8;font-size:12px;margin-bottom:12px;font-weight:650;overflow-wrap:anywhere}.vault-status[data-state="error"]{color:#943c31;background:#fff1ed;border-color:#f0c3bd}.vault-status[data-state="pending"],.vault-status[data-state="saving"]{background:#fff8e9;color:#805b19;border-color:#eadbb3}.vault-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.vault-fields .field{margin-top:6px}.vault-guides{display:flex;flex-wrap:wrap;gap:10px;margin:9px 0}.vault-guides a{border:1px solid #bbdfd4;border-radius:9px;padding:9px 11px;text-decoration:none;color:#087c65;font-size:12px;font-weight:800;background:#fff}.vault-hint,.vault-disclaimer{font-size:11px;line-height:2;color:#6c8190;margin:8px 0}.vault-primary{margin-top:12px;background:#127b66;color:#fff;border:0;border-radius:9px;padding:12px 15px;font-weight:800;font-size:12px}.vault-secondary{border:1px solid #c7ddd7;border-radius:9px;background:white;color:#126959;padding:11px 13px;font-weight:750;font-size:12px}.vault-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.vault-history{margin-top:15px;padding:11px 13px;background:#fff;border-radius:10px;border:1px solid #e5efeb}.vault-history summary{cursor:pointer;color:#264857;font-size:12px;font-weight:800}.vault-history-items{display:flex;flex-direction:column;gap:7px;margin-top:12px;color:#7c8c93;font-size:12px}.vault-item{width:100%;padding:11px;background:#f7faf9;border-radius:9px;border:1px solid #e4ede8;text-align:right;display:flex;gap:12px;justify-content:space-between;align-items:center;color:#304b58;font-size:11px}.vault-item:hover{background:#eff9f4}.vault-item span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}.vault-item small{font-size:10px;color:#718a95;white-space:nowrap}.vault-disclaimer{margin-top:12px}.vault-setup input{width:100%;padding:11px;border-radius:9px;height:44px}.vault-history-count{font-size:10px}
@media(max-width:700px){.vault-fields{grid-template-columns:1fr}.vault-section{padding:17px 15px}.vault-actions button{flex:1}}
