@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;500;600&display=swap');
:root {color-scheme: light; --bg:#F3F5F2; --secondary:#EAF0EC; --surface:#fff; --heading:#203430; --body:#344741; --muted:#596B64; --accent:#426C69; --accent-hover:#315753; --soft:#DCEBE4; --border:#DCE4DD;}
html.dark {color-scheme:dark; --bg:#20252B; --secondary:#292F36; --surface:#303741; --heading:#F4F6F5; --body:#E0E5E2; --muted:#B4C0BA; --accent:#86C5B7; --accent-hover:#6FB3A4; --soft:#2D3B3A; --border:#46515A;}
* { box-sizing:border-box; }
html {scroll-behavior:smooth;} body {margin:0;background:var(--bg);color:var(--body);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;-webkit-font-smoothing:antialiased;}button,textarea {font:inherit;}button {cursor:pointer;}button:disabled {cursor:not-allowed;opacity:.45;}[hidden]{display:none!important;}a {color:inherit;}button:focus-visible,a:focus-visible,textarea:focus-visible {outline:2px solid var(--accent);outline-offset:2px;}
.site-header{position:sticky;top:0;z-index:5;background:var(--bg);border-bottom:1px solid var(--border);}.header-content{max-width:1600px;margin:auto;height:65px;display:flex;justify-content:space-between;align-items:center;padding:0 36px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:700;font-size:21px;color:var(--heading)}.brand img{height:28px;width:28px}.brand-accent{color:var(--accent)}.header-tools{display:flex;align-items:center;gap:6px}.icon-btn{display:flex;align-items:center;justify-content:center;border:none;background:none;color:var(--muted);border-radius:9px;width:38px;height:38px}.icon-btn:hover{background:var(--secondary);color:var(--heading)}.icon-btn svg {height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.main-content{width:100%;max-width:1600px;margin:auto;padding:40px 34px 26px}.hero{text-align:center;margin:0 0 29px}.hero h1{font-family:Lora,Georgia,serif;font-size:32px;font-weight:600;color:var(--heading);letter-spacing:-.7px;margin:0 0 8px}.hero p{color:var(--muted);font-size:16px;margin:0}.tabs{display:flex;align-items:center;overflow:auto;gap:12px;margin:0 0 22px;padding-bottom:4px}.tab{white-space:nowrap;display:inline-flex;align-items:center;gap:9px;padding:12px 16px;border:1px solid transparent;background:transparent;border-radius:10px;color:var(--muted);font-size:14px;font-weight:500}.tab svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.tab:hover{background:var(--secondary);color:var(--heading)}.tab.active{background:var(--soft);color:var(--accent);font-weight:600}
.workspace{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:27px 30px 22px}.panel-heading{margin-bottom:22px}.panel-heading h2{font-size:20px;font-weight:700;letter-spacing:-.45px;margin:0 0 8px;color:var(--heading)}.panel-heading p{font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 11px}.editor-heading h3{font-size:15px;font-weight:650;color:var(--heading);margin:0}.editor-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}.feedback{color:var(--accent);font-size:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px}.edit-card{border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0;background:var(--bg)}.edit-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 15px;background:var(--secondary);border-bottom:1px solid var(--border)}.edit-head strong{color:var(--heading);font-size:13px}.edit-card textarea{width:100%;min-height:288px;resize:vertical;display:block;background:transparent;color:var(--body);padding:16px 17px;line-height:1.8;font-size:14px;border:0;outline:0}.edit-card textarea::placeholder{color:var(--muted);opacity:.8}.edit-card textarea:focus-visible{outline:-webkit-focus-ring-color auto 1px;outline-offset:-2px}.edit-foot{padding:11px 13px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:57px}.edit-foot .actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.word-count{font-size:12px;color:var(--muted)}.mini-btn{border:1px solid var(--border);background:transparent;color:var(--body);border-radius:8px;font-size:12px;font-weight:600;padding:8px 11px}.mini-btn:hover:not(:disabled){background:var(--secondary)}.mini-btn.strong{background:var(--accent);color:white;border-color:var(--accent)}.mini-btn.strong:hover:not(:disabled){background:var(--accent-hover)}html.dark .mini-btn.strong{color:#18352f}.clear-btn{border:0;background:transparent;color:var(--muted);font-size:12px;padding:5px}.clear-btn:hover{color:var(--heading)}.workflow-hint{background:var(--secondary);border:1px solid var(--border);border-radius:10px;padding:12px 16px;color:var(--muted);font-size:12px;line-height:1.8;margin:20px 0}.workflow-hint strong{color:var(--heading)}
.processor{margin-top:16px;border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--bg)}.processor-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:var(--heading);font-weight:700;font-size:15px;padding:4px 2px}.processor-toggle small{display:inline;font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}.processor-toggle .chevron{font-size:21px;color:var(--muted)}.embed-wrapper{padding-top:13px}.embed-tools{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin:0 0 12px;font-size:12px;color:var(--muted)}.embed-tools .right-tools{display:flex;align-items:center;gap:17px}.embed-tools button,.embed-tools a{border:0;padding:3px 0;background:transparent;color:var(--accent);font-size:12px;font-weight:600;text-decoration:none}.embed-tools button:hover,.embed-tools a:hover{text-decoration:underline}iframe{width:100%;height:750px;display:block;border:0;border-radius:11px;background:var(--surface)}
.provider-panel{margin-top:20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;border-radius:12px;border:1px solid var(--border);background:var(--secondary);padding:21px}.provider-icon{color:var(--accent);font-size:20px;font-weight:700;border-radius:12px;background:var(--soft);min-width:42px;height:42px;display:grid;place-items:center}.provider-panel div{flex:1;min-width:200px}.provider-panel h3{margin:0 0 5px;font-size:14px;color:var(--heading)}.provider-panel p{margin:0;line-height:1.7;font-size:12px;color:var(--muted)}.primary-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:0;background:var(--accent);color:white;text-decoration:none;padding:11px 17px;border-radius:9px;font-size:13px;font-weight:600}.primary-link:hover{background:var(--accent-hover)}html.dark .primary-link{color:#203430}
.privacy-note{color:var(--muted);font-size:12px;border-top:1px solid var(--border);line-height:1.8;padding-top:17px;margin-top:24px}.privacy-note a{color:var(--accent)}.footer{border-top:1px solid var(--border);margin-top:45px;padding:25px max(36px,calc((100vw - 1500px)/2));display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px}.footer-name{font-size:17px;font-weight:700;color:var(--heading);margin-bottom:4px}.footer a{color:var(--accent);text-decoration:none}.about-dialog{background:var(--surface);color:var(--body);border:1px solid var(--border);border-radius:15px;max-width:490px;width:calc(100% - 32px);padding:28px;box-shadow:0 18px 70px #0004}.about-dialog::backdrop{background:#0008}.about-dialog h2{font-size:20px;color:var(--heading)}.about-dialog p{font-size:14px;line-height:1.8}.about-dialog .dialog-close{position:absolute;top:10px;right:14px;border:0;background:none;color:var(--muted);font-size:16px}
@media(max-width:780px){.main-content{padding:26px 15px}.header-content{padding:0 18px}.hero h1{font-size:25px}.hero p{font-size:14px}.tabs{gap:3px}.tab{font-size:12px;padding:10px}.tab svg{width:15px;height:15px}.workspace{padding:18px 14px}.two-col{grid-template-columns:1fr}.edit-card textarea{min-height:235px}.footer{padding:25px 18px;align-items:flex-start;flex-direction:column}.provider-panel{align-items:flex-start}.provider-panel .primary-link{margin-left:0}.processor-toggle small{display:block;margin:5px 0 0}iframe{height:750px}.embed-tools .right-tools{gap:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* v3: Put the actual, working Clever tool first; no duplicate Humanizer editor. */
.humanizer-primary .panel-heading.compact{margin-bottom:12px}
.humanizer-primary .primary-processor{margin-top:0;padding:15px;background:var(--bg)}
.humanizer-primary .primary-processor iframe{height:560px;background:var(--surface)}
.humanizer-primary .embed-tools{margin-bottom:12px}
.humanizer-primary .provider-status{font-weight:600;color:var(--heading)}
.humanizer-primary .embed-disclaimer{font-size:12px;line-height:1.65;color:var(--muted);margin:12px 4px 0}
@media(max-width:780px){.humanizer-primary .primary-processor{padding:9px}.humanizer-primary .primary-processor iframe{height:625px}.humanizer-primary .embed-tools{align-items:flex-start}.humanizer-primary .embed-tools .right-tools{flex-wrap:wrap}}
