:root{--ink:#182820;--muted:#66736b;--green:#216b4a;--lime:#c9f27c;--paper:#f5f7f0;--line:#e1e7dd;--shadow:0 18px 55px rgba(27,57,39,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.topbar{height:76px;padding:0 max(5vw,22px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}
.brand{font-size:20px;font-weight:700;letter-spacing:-.7px;color:var(--ink);text-decoration:none}.brand b{color:var(--green)}.brand-mark{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--lime);margin-right:8px;color:var(--green)}
.local-pill{font-size:12px;color:#365745;border:1px solid #dbe8d6;border-radius:99px;padding:9px 13px;background:#f9fff4}.local-pill span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4aab69;margin-right:7px}
.shell{max-width:1180px;margin:auto;padding:46px 24px 24px}.hero{max-width:790px;margin:0 auto 36px;text-align:center}.eyebrow,.step{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--green)}.eyebrow{display:inline-block;border:1px solid #dce8d5;background:#fafff3;border-radius:99px;padding:8px 12px}
h1{font-size:clamp(38px,5vw,64px);line-height:1.03;letter-spacing:-3px;margin:19px 0 17px}h1 em{font-family:Georgia,serif;font-weight:500;color:var(--green)}.hero>p{font-size:16px;line-height:1.7;color:var(--muted);max-width:680px;margin:0 auto}
.hero-points{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-top:20px;font-size:12px;color:#3b654b}
.workspace{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.panel-heading h2{font-size:20px;letter-spacing:-.5px;margin:7px 0 0}.spark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f0f8df;color:var(--green);font-size:22px}.draft-pill{font-size:9px;letter-spacing:.8px;color:#68806e;background:#f3f7ee;padding:8px 9px;border-radius:6px}
form label{display:block;font-size:12px;font-weight:700;margin:17px 0 8px}label strong{color:#c24e40}input,select,textarea{width:100%;font:inherit;font-size:13px;color:var(--ink);background:#fcfdfb;border:1px solid #dce4da;border-radius:9px;padding:12px 13px;outline:none;transition:border .2s,box-shadow .2s}input:focus,select:focus,textarea:focus{border-color:#6ba77d;box-shadow:0 0 0 3px #e9f5e9}textarea{resize:vertical;line-height:1.55}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hint{font-size:11px;line-height:1.5;color:#7a857c;margin:8px 0 16px}
button{font:inherit;cursor:pointer;border:0;border-radius:10px}.form-panel form>button,#generateBtn{width:100%;padding:14px 16px;background:var(--green);color:#fff;font-weight:700;font-size:13px;display:flex;justify-content:center;align-items:center;gap:9px;box-shadow:0 7px 15px #216b4a25}#generateBtn:hover{background:#174f36}#generateBtn:disabled{opacity:.65;cursor:wait}.arrow{margin-left:auto;font-size:17px}#generateBtn span:first-child{color:var(--lime)}
.result-panel{display:flex;flex-direction:column}.empty-state{flex:1;min-height:360px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px 22px}.empty-art{width:100px;height:100px;border-radius:30px;background:#f1f7e7;display:grid;place-items:center;position:relative;color:var(--green);font-size:36px;margin-bottom:20px}.empty-art i,.empty-art b{position:absolute;font-style:normal;color:#8cbd56;font-size:20px}.empty-art i{right:7px;top:10px}.empty-art b{left:9px;bottom:8px}.empty-state h3,.loading-state h3{font-size:18px;letter-spacing:-.4px;margin:0 0 9px}.empty-state p,.loading-state p{font-size:13px;line-height:1.7;color:var(--muted);max-width:310px;margin:0}.hidden{display:none!important}
#resultText{min-height:400px;background:#fbfcf9}.result-actions{display:flex;gap:10px;margin-top:12px}.secondary{flex:1;padding:11px 12px;border:1px solid #dbe4d8;background:#fff;color:#2d5e43;font-size:12px;font-weight:700}.secondary:hover{background:#f3f8ed}.privacy-note{font-size:11px;color:#7a857c;line-height:1.5;margin:14px 0 0}.error-box{background:#fff2f0;border:1px solid #f2cbc5;color:#8f3026;border-radius:10px;padding:14px;font-size:13px;line-height:1.6;margin-top:16px}.loading-state{flex:1;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.loader{width:36px;height:36px;border:3px solid #e5eedf;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite;margin-bottom:18px}@keyframes spin{to{transform:rotate(360deg)}}
.bottom-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.mini-card{display:flex;gap:13px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px}.mini-icon{flex-shrink:0;display:grid;place-items:center;width:34px;height:34px;background:#eff7e4;border-radius:10px;color:var(--green);font-size:18px}.mini-card h3{font-size:12px;margin:2px 0 6px}.mini-card p{font-size:11px;color:var(--muted);line-height:1.55;margin:0}footer{display:flex;justify-content:space-between;gap:10px;padding:25px 2px 5px;color:#7b887d;font-size:11px}
@media(max-width:850px){.workspace{grid-template-columns:1fr}.bottom-grid{grid-template-columns:1fr}.hero{margin-bottom:28px}.panel{padding:22px}.empty-state,.loading-state{min-height:260px}}
@media(max-width:480px){.topbar{height:64px}.brand{font-size:17px}.local-pill{font-size:10px;padding:7px 9px}.shell{padding:30px 14px 18px}h1{letter-spacing:-1.8px}.hero>p{font-size:14px}.hero-points{gap:9px;flex-direction:column;align-items:center}.two-col{grid-template-columns:1fr;gap:0}.panel{padding:18px}.panel-heading h2{font-size:18px}footer{flex-direction:column}}
