:root{
  --agw-bg:#f7f8fb;
  --agw-surface:#fff;
  --agw-surface-2:#f1f3f7;
  --agw-text:#171821;
  --agw-muted:#666b7a;
  --agw-border:#e3e6ee;
  --agw-primary:#5b43f5;
  --agw-primary-2:#7b61ff;
  --agw-danger:#b42318;
  --agw-success:#067647;
  --agw-shadow:0 18px 60px rgba(26,28,43,.08);
  --agw-radius:18px;
}
.agw-tool-page,.agw-directory,.agw-prompt-grid,.agw-guest-form-wrap{color:var(--agw-text)}
.agw-tool-intro{font-size:1.08rem;line-height:1.7;color:var(--agw-muted);max-width:850px;margin:.5rem 0 1.5rem}
.agw-tool-app{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:0 0 42px;padding:18px;border:1px solid var(--agw-border);background:var(--agw-surface);box-shadow:var(--agw-shadow);border-radius:24px}
.agw-tool-app-compact{margin:26px auto 0;max-width:1100px}
.agw-tool-form-wrap,.agw-result{min-width:0;border:1px solid var(--agw-border);background:var(--agw-bg);border-radius:16px;padding:20px}
.agw-tool-form{display:grid;gap:15px}
.agw-field{display:grid;gap:7px}.agw-field label{font-size:.86rem;font-weight:700;color:var(--agw-text)}.agw-field label span{color:var(--agw-primary)}
.agw-field textarea,.agw-field input[type=text],.agw-field input[type=email],.agw-field input[type=search],.agw-field select,.agw-guest-form input[type=text],.agw-guest-form input[type=email],.agw-guest-form textarea,.agw-directory-search{width:100%;box-sizing:border-box;border:1px solid var(--agw-border);background:var(--agw-surface);color:var(--agw-text);border-radius:12px;padding:12px 13px;font:inherit;outline:none;transition:border-color .2s,box-shadow .2s}
.agw-field textarea{min-height:145px;resize:vertical}.agw-field input[type=file]{width:100%;padding:12px;border:1px dashed var(--agw-border);background:var(--agw-surface);border-radius:12px}
.agw-field textarea:focus,.agw-field input:focus,.agw-field select:focus,.agw-guest-form input:focus,.agw-guest-form textarea:focus,.agw-directory-search:focus{border-color:var(--agw-primary);box-shadow:0 0 0 3px rgba(91,67,245,.11)}
.agw-tool-submit-row,.agw-inline-actions{display:flex;gap:9px;flex-wrap:wrap}.agw-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;border-radius:11px;padding:10px 15px;border:1px solid transparent;text-decoration:none;font-weight:750;font-size:.92rem;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.agw-button:hover{transform:translateY(-1px)}
.agw-button-primary{background:var(--agw-primary);color:#fff;box-shadow:0 8px 22px rgba(91,67,245,.2)}.agw-button-primary:hover{background:var(--agw-primary-2);color:#fff}.agw-button-secondary{background:var(--agw-surface);color:var(--agw-text);border-color:var(--agw-border)}.agw-button-ghost{background:transparent;color:var(--agw-muted);border-color:var(--agw-border)}
.agw-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.agw-tool-privacy{font-size:.78rem;color:var(--agw-muted);margin:0}
.agw-result{display:flex;flex-direction:column;min-height:330px;background:linear-gradient(180deg,var(--agw-surface) 0%,var(--agw-bg) 100%)}.agw-result-empty,.agw-result-loading,.agw-result-error{margin:auto;text-align:center;color:var(--agw-muted);max-width:350px}.agw-result-empty strong,.agw-result-error strong{display:block;color:var(--agw-text);margin:8px 0}.agw-result-empty p,.agw-result-error p{margin:0}.agw-result-spark{display:grid;place-items:center;width:45px;height:45px;margin:auto;border-radius:14px;background:rgba(91,67,245,.1);color:var(--agw-primary);font-size:1.25rem}
.agw-result-loading span{display:inline-block;width:8px;height:8px;margin:0 3px;border-radius:50%;background:var(--agw-primary);animation:agwPulse 1s infinite alternate}.agw-result-loading span:nth-child(2){animation-delay:.2s}.agw-result-loading span:nth-child(3){animation-delay:.4s}@keyframes agwPulse{from{opacity:.25;transform:translateY(0)}to{opacity:1;transform:translateY(-5px)}}
.agw-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:13px;border-bottom:1px solid var(--agw-border)}.agw-result-head>div:first-child{display:grid;gap:2px}.agw-result-label,.agw-eyebrow{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;font-weight:800;color:var(--agw-primary)}.agw-result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.agw-result-actions button{border:1px solid var(--agw-border);background:var(--agw-surface);color:var(--agw-text);padding:7px 9px;border-radius:8px;font-size:.76rem;font-weight:700;cursor:pointer}.agw-result-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;margin:15px 0 0;color:var(--agw-text);max-height:600px;overflow:auto}.agw-result-error strong{color:var(--agw-danger)}
.agw-editorial-content{max-width:860px;margin:42px auto 0;line-height:1.78}.agw-editorial-content h2{margin-top:1.8em}.agw-editorial-content h3{margin-top:1.5em}.agw-editorial-content p,.agw-editorial-content li{color:var(--agw-muted)}
.agw-faqs,.agw-related{max-width:1100px;margin:50px auto 0}.agw-faqs details{border-top:1px solid var(--agw-border);padding:14px 0}.agw-faqs details:last-child{border-bottom:1px solid var(--agw-border)}.agw-faqs summary{cursor:pointer;font-weight:750}.agw-faqs details div{color:var(--agw-muted);line-height:1.7}
.agw-section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.agw-section-heading h2{margin:4px 0 0}.agw-section-heading>a{font-weight:700;text-decoration:none;color:var(--agw-primary)}
.agw-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.agw-tool-card,.agw-prompt-card{display:flex;position:relative;min-width:0;padding:17px;border:1px solid var(--agw-border);background:var(--agw-surface);border-radius:15px;text-decoration:none;color:var(--agw-text);transition:border-color .15s,transform .15s,box-shadow .15s}.agw-tool-card:hover,.agw-prompt-card:hover{border-color:rgba(91,67,245,.35);transform:translateY(-2px);box-shadow:0 12px 30px rgba(26,28,43,.06)}
.agw-tool-icon{flex:0 0 40px;height:40px;display:grid;place-items:center;border-radius:11px;background:var(--agw-surface-2);font-weight:850;color:var(--agw-primary);margin-right:12px}.agw-tool-card-copy{display:grid;gap:5px;min-width:0;padding-right:18px}.agw-tool-card-copy span{font-size:.82rem;line-height:1.45;color:var(--agw-muted)}.agw-card-arrow{position:absolute;right:14px;top:15px;color:var(--agw-primary)}
.agw-prompt-card{display:grid;gap:8px;min-height:145px}.agw-prompt-card>span:not(.agw-eyebrow):not(.agw-card-arrow){color:var(--agw-muted);font-size:.86rem;line-height:1.45}.agw-prompt-card .agw-card-arrow{position:static;margin-top:auto;font-size:.82rem;font-weight:750}
.agw-directory-controls{display:grid;gap:14px;margin-bottom:22px}.agw-directory-search{max-width:650px;padding:14px 15px}.agw-filter-row{display:flex;gap:8px;flex-wrap:wrap}.agw-filter-row button{border:1px solid var(--agw-border);background:var(--agw-surface);color:var(--agw-muted);padding:8px 11px;border-radius:999px;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}.agw-filter-row button.is-active{background:var(--agw-text);border-color:var(--agw-text);color:#fff}.agw-tool-card[hidden]{display:none}
.agw-prompt-box{border:1px solid var(--agw-border);background:var(--agw-surface);border-radius:18px;overflow:hidden;box-shadow:var(--agw-shadow)}.agw-prompt-box-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--agw-border);font-weight:750}.agw-prompt-box-head button{border:0;background:var(--agw-primary);color:#fff;border-radius:9px;padding:7px 10px;cursor:pointer;font-weight:700}.agw-prompt-box pre{white-space:pre-wrap;margin:0;padding:20px;line-height:1.7;font:inherit;background:var(--agw-bg)}.agw-prompt-models,.agw-prompt-vars{color:var(--agw-muted)}
.agw-study-detail{max-width:860px;margin:36px auto 0;border-top:1px solid var(--agw-border);padding-top:24px}.agw-study-detail p{color:var(--agw-muted);line-height:1.75}
.agw-guest-form-wrap{max-width:860px}.agw-guest-form{display:grid;gap:16px}.agw-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.agw-guest-form p{display:grid;gap:6px;margin:0}.agw-guest-form label{font-weight:700;font-size:.86rem}.agw-hp{position:absolute!important;left:-9999px!important}.agw-form-notice{padding:12px 14px;border-radius:10px;margin-bottom:16px}.agw-form-notice.success{background:#ecfdf3;color:var(--agw-success)}.agw-form-notice.error{background:#fef3f2;color:var(--agw-danger)}
@media(max-width:900px){.agw-tool-app{grid-template-columns:1fr}.agw-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.agw-result{min-height:260px}}
@media(max-width:600px){.agw-tool-app{padding:10px;border-radius:17px}.agw-tool-form-wrap,.agw-result{padding:15px;border-radius:13px}.agw-card-grid{grid-template-columns:1fr}.agw-form-grid{grid-template-columns:1fr}.agw-result-head{display:grid}.agw-result-actions{justify-content:flex-start}.agw-section-heading{align-items:flex-start;display:grid}.agw-tool-submit-row .agw-button{flex:1}}
.agw-prompt-customizer{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px;align-items:start;margin:0 0 18px;padding:20px;border:1px solid var(--agw-border);background:var(--agw-surface);border-radius:17px}.agw-prompt-customizer h2{font-size:1.2rem;margin:4px 0 7px}.agw-prompt-customizer p{margin:0;color:var(--agw-muted);font-size:.86rem}.agw-prompt-variable-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.agw-prompt-variable-grid label{display:grid;gap:5px;font-size:.8rem;font-weight:750}.agw-prompt-variable-grid input{width:100%;border:1px solid var(--agw-border);background:var(--agw-bg);color:var(--agw-text);border-radius:10px;padding:10px 11px;outline:none}.agw-prompt-variable-grid input:focus{border-color:var(--agw-primary);box-shadow:0 0 0 3px rgba(91,67,245,.1)}
@media(max-width:700px){.agw-prompt-customizer{grid-template-columns:1fr}.agw-prompt-variable-grid{grid-template-columns:1fr}}
