:root{--ink:#101614;--muted:#65716d;--green:#10a37f;--green-dark:#08745c;--mint:#eaf7f3;--paper:#f5f7f6;--line:#dfe7e3;--white:#fff;--blue:#edf4f7;--shadow:0 22px 60px rgba(15,48,38,.1)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:"Noto Sans",system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,select{cursor:pointer}.hidden{display:none!important}.skip{position:fixed;top:-70px;left:20px;z-index:100;background:#101614;color:#fff;padding:12px;border-radius:10px}.skip:focus{top:20px}.pb-header{height:72px;max-width:1540px;margin:auto;padding:0 28px;display:flex;align-items:center;gap:28px;border-bottom:1px solid #edf1ef}.pb-brand{display:flex;align-items:center;gap:10px;font:700 18px "Noto Sans";text-decoration:none;margin-right:auto}.pb-mark{width:32px;height:32px;border-radius:10px;background:#101614;color:#fff;display:grid;place-items:center}.back{color:#52605b;font-size:13px;font-weight:600;text-decoration:none}.back:hover{color:var(--green)}.header-actions{display:flex;gap:8px;align-items:center}.icon-button,.header-actions select{height:38px;border:1px solid var(--line);background:#fff;border-radius:11px;padding:0 12px;color:#35423d}.icon-button b{font-size:10px;background:var(--mint);color:var(--green-dark);padding:2px 5px;border-radius:8px}main{max-width:1540px;margin:auto;padding:22px 28px 60px}.pb-hero{min-height:295px;border-radius:28px;background:linear-gradient(132deg,#ebf8f4,#f8faf9 62%,#eef4f1);padding:48px 50px;display:grid;grid-template-columns:minmax(420px,1fr) auto;grid-template-rows:1fr auto;gap:26px;position:relative;overflow:hidden}.pb-hero:after{content:"";position:absolute;width:310px;height:310px;border-radius:50%;right:-100px;top:-130px;border:70px solid rgba(16,163,127,.08)}.eyebrow{font-size:10px;letter-spacing:.16em;color:var(--green-dark);font-weight:700;margin:0 0 13px;text-transform:uppercase}.pb-hero h1{font:700 clamp(38px,4vw,62px)/1.04 "Noto Sans";margin:0 0 14px;letter-spacing:-.05em}.pb-hero>div>p:last-child{max-width:720px;color:var(--muted);font-size:16px;line-height:1.65;margin:0}.hero-tools{display:flex;align-items:center;gap:10px;z-index:2}.primary,.secondary{border:0;border-radius:13px;min-height:48px;padding:0 18px;font-weight:600}.primary{background:#101614;color:#fff}.secondary{background:#fff;border:1px solid var(--line);color:#17201d}.primary:hover,.secondary:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(15,40,32,.12)}.hero-stats{display:flex;gap:38px;grid-column:1/-1}.hero-stats span{display:flex;align-items:baseline;gap:7px}.hero-stats strong{font:700 22px "Noto Sans"}.hero-stats small{color:#6d7974;font-size:11px}.search-band{margin:18px 0;display:grid;grid-template-columns:minmax(300px,1fr) auto;gap:12px}.search-box{height:52px;border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;gap:12px;padding:0 15px;background:#fff}.search-box input{border:0;outline:0;flex:1;min-width:0}.search-box kbd{font-size:10px;border:1px solid var(--line);border-radius:6px;padding:4px 6px;color:#84908c}.filter-row{display:flex;gap:8px;flex-wrap:wrap}.filter-row select,.filter-toggle{height:52px;border:1px solid var(--line);background:#fff;border-radius:13px;padding:0 12px;color:#46514d;font-size:12px}.filter-toggle.active{background:#101614;color:#fff}.workspace{display:grid;grid-template-columns:245px minmax(420px,1fr) 370px;gap:18px;align-items:start}.stage-sidebar,.editor-panel{border:1px solid var(--line);border-radius:22px;background:#fff;position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}.stage-sidebar{padding:14px}.aside-title{display:flex;justify-content:space-between;align-items:center;padding:9px 8px 14px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#6b7772}.aside-title b{background:var(--mint);color:var(--green-dark);padding:4px 7px;border-radius:9px}.stage-item{width:100%;border:0;background:transparent;border-radius:12px;display:grid;grid-template-columns:26px 1fr;gap:7px;text-align:left;padding:10px 9px;color:#53605b}.stage-item span{font-size:9px;color:#9aa49f;padding-top:3px}.stage-item strong{font-size:12px;line-height:1.35;font-weight:600}.stage-item:hover,.stage-item.active{background:var(--mint);color:#0d6853}.collection-box{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.collection-box p{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:700;color:#84908c;padding:0 9px}.collection-box button{width:100%;text-align:left;border:0;background:transparent;padding:9px;border-radius:10px;color:#58645f;font-size:12px}.collection-box button:hover{background:#f4f7f5}.prompt-results{min-width:0}.results-head{display:flex;align-items:end;justify-content:space-between;padding:22px 4px 20px}.results-head h2{font:700 30px/1.1 "Noto Sans";margin:0;letter-spacing:-.035em}.view-button{border:1px solid var(--line);background:#fff;border-radius:11px;padding:9px 11px;color:#65716d;font-size:11px}.prompt-cards{display:grid;gap:12px}.prompt-card{border:1px solid var(--line);border-radius:21px;padding:21px;background:#fff;transition:.25s}.prompt-card:hover{border-color:rgba(16,163,127,.35);box-shadow:0 14px 42px rgba(17,48,38,.07);transform:translateY(-2px)}.card-top{display:flex;gap:14px;align-items:flex-start}.stage-badge{width:42px;height:42px;border-radius:13px;background:var(--mint);color:var(--green-dark);display:grid;place-items:center;font:700 11px "Noto Sans";flex:0 0 auto}.card-title{flex:1}.card-title h3{font:700 19px/1.25 "Noto Sans";margin:0 0 7px}.card-title p{color:var(--muted);font-size:12px;line-height:1.55;margin:0}.favorite{border:0;background:transparent;font-size:21px;color:#7d8984;padding:2px}.favorite.active{color:#e05252}.meta{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}.meta span{font-size:9px;text-transform:uppercase;letter-spacing:.07em;padding:5px 8px;border-radius:8px;background:#f3f6f5;color:#68746f}.meta .level-prof{background:#edf2fa;color:#395f9a}.use-case{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#f8faf9;border-radius:13px;padding:12px;margin-bottom:14px}.use-case small{display:block;color:#8b9691;font-size:8px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:4px}.use-case b{font-size:10px;line-height:1.45}.prompt-snippet{font:400 11px/1.55 "Noto Sans Mono",monospace;background:#111a17;color:#d8e7e2;border-radius:13px;padding:13px;max-height:82px;overflow:hidden;white-space:pre-wrap;margin:0 0 14px}.card-actions{display:flex;gap:8px;align-items:center}.card-actions button{min-height:39px;border-radius:10px;border:1px solid var(--line);background:#fff;padding:0 12px;font-size:10px;font-weight:600}.card-actions .fill{background:#101614;color:#fff;border-color:#101614}.card-actions .example{margin-left:auto}.prompt-cards.compact .prompt-card{padding:15px}.prompt-cards.compact .use-case,.prompt-cards.compact .prompt-snippet{display:none}.editor-panel{padding:18px}.editor-empty{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#6b7772}.editor-empty>span{width:58px;height:58px;border-radius:20px;background:var(--mint);display:grid;place-items:center;color:var(--green);font-size:24px}.editor-empty h3{font:700 20px "Noto Sans";color:#17201d;margin:18px 0 8px}.editor-empty p{font-size:12px;line-height:1.6}.editor-head{display:flex;justify-content:space-between;gap:10px}.editor-head p{font-size:9px;letter-spacing:.12em;color:var(--green-dark);font-weight:700;margin:0 0 6px}.editor-head h3{font:700 18px/1.25 "Noto Sans";margin:0}.editor-head>button{border:0;background:#f3f6f5;width:30px;height:30px;border-radius:9px}.quality{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;margin:16px 0;font-size:9px;color:#697570}.quality>div{height:5px;background:#edf1ef;border-radius:6px;overflow:hidden}.quality i{display:block;width:35%;height:100%;background:var(--green);transition:.25s}.mode-switch{background:#f1f5f3;border-radius:10px;padding:3px;display:flex}.mode-switch button{flex:1;border:0;background:transparent;border-radius:8px;padding:7px;font-size:10px}.mode-switch button.active{background:#fff;box-shadow:0 3px 12px rgba(20,40,34,.08)}.variable-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.variable-form label{display:grid;gap:5px;font-size:9px;color:#697570}.variable-form label.wide{grid-column:1/-1}.variable-form input,.variable-form select,.variable-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff;color:#18221e;font-size:10px;outline:0}.variable-form textarea{min-height:70px;resize:vertical}.variable-form input.missing,.variable-form select.missing{border-color:#e8b44f;background:#fffaf0}.file-drop{border:1px dashed #c9d5d0;border-radius:12px;display:grid;grid-template-columns:28px 1fr;gap:2px 8px;align-items:center;padding:10px;cursor:pointer}.file-drop input{display:none}.file-drop>span{grid-row:1/3;width:28px;height:28px;background:var(--mint);border-radius:9px;display:grid;place-items:center}.file-drop b{font-size:9px}.file-drop small{font-size:8px;color:#89948f}.prompt-preview{margin:12px 0;background:#111a17;border-radius:13px;overflow:hidden}.prompt-preview>div{display:flex;justify-content:space-between;padding:10px 11px;border-bottom:1px solid #26322e;color:#8eb4a8;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.prompt-preview button{border:0;background:transparent;color:#b9d8cf;font-size:8px}.prompt-preview pre{margin:0;padding:12px;color:#e1eee9;font:400 10px/1.55 "Noto Sans Mono";white-space:pre-wrap;max-height:170px;overflow:auto}.prompt-preview.expanded pre{max-height:none}.safety-note{display:flex;gap:8px;background:#fff8e8;border:1px solid #f0dfb7;border-radius:11px;padding:10px;color:#6f5a29}.safety-note p{font-size:8px;line-height:1.5;margin:0}.copy-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.wide{width:100%}.copy-actions button{font-size:9px;padding:0 8px}.export-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:7px}.export-actions button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 4px;font-size:8px}.save-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:8px}.save-row select,.save-row button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px;font-size:9px}.empty{text-align:center;padding:90px 20px;color:#74807b}.empty>span{font-size:32px}.empty h3{font:700 21px "Noto Sans";color:#18221e}.empty button{border:0;background:#101614;color:#fff;border-radius:10px;padding:10px 14px}.pb-dialog{width:min(760px,calc(100vw - 28px));max-height:90vh;border:0;border-radius:25px;padding:32px;box-shadow:0 40px 100px rgba(7,25,19,.28);overflow:auto}.pb-dialog::backdrop{background:rgba(8,19,15,.55);backdrop-filter:blur(5px)}.pb-dialog h2{font:700 30px/1.15 "Noto Sans";margin:0 0 10px}.pb-dialog>p:not(.eyebrow){color:var(--muted)}.dialog-close{position:absolute;right:18px;top:18px;border:0;background:#f1f4f3;width:34px;height:34px;border-radius:10px;font-size:19px}.goal-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}.goal-options button{border:1px solid var(--line);background:#fff;border-radius:13px;padding:14px;text-align:left;font-weight:600}.goal-options button:hover{border-color:var(--green);background:var(--mint)}.assistant-result{margin-top:14px;background:var(--mint);border-radius:14px;padding:16px}.assistant-result button{margin-top:10px}.builder-dialog{width:min(1000px,calc(100vw - 28px))}.builder-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.builder-tip{font-size:11px;color:var(--muted)}.builder-block{display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:9px;margin-bottom:7px}.builder-block input[type=text]{border:0;background:#f5f7f6;border-radius:8px;padding:8px;font-size:10px;width:100%}.builder-block button{border:0;background:transparent}.builder-preview{background:#111a17;border-radius:17px;padding:16px;color:#fff}.builder-preview>span{font-size:8px;color:#7ecdb7}.builder-preview pre{min-height:330px;white-space:pre-wrap;font:400 11px/1.6 "Noto Sans Mono";color:#dfece8}.before-after{display:grid;grid-template-columns:1fr 1fr;gap:12px}.before-after article{border:1px solid var(--line);border-radius:14px;overflow:hidden}.before-after article:first-child{background:#fff3f1}.before-after article:last-child{background:#eaf8f3}.before-after span{display:block;padding:11px 13px;font-size:9px;font-weight:700}.before-after pre{white-space:pre-wrap;font:400 10px/1.55 "Noto Sans Mono";padding:0 13px 14px}.why,.response-sample{padding:14px;border-radius:13px;background:#f5f7f6;margin-top:10px}.why p,.response-sample p{font-size:11px;line-height:1.6;margin:6px 0 0}.toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translate(-50%,30px);opacity:0;background:#101614;color:#fff;border-radius:12px;padding:11px 18px;font-size:12px;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1200px){.workspace{grid-template-columns:220px minmax(420px,1fr)}.editor-panel{position:fixed;z-index:40;right:18px;top:18px;bottom:18px;width:min(390px,calc(100vw - 36px));max-height:none;box-shadow:var(--shadow);transform:translateX(115%);transition:.3s}.editor-panel.open{transform:none}.editor-empty{display:none}}
@media(max-width:850px){.pb-header{padding:0 16px}.back span{display:none}main{padding:14px 12px 40px}.pb-hero{padding:34px 24px;grid-template-columns:1fr}.hero-tools{flex-wrap:wrap}.hero-stats{gap:16px;flex-wrap:wrap}.search-band{grid-template-columns:1fr}.workspace{grid-template-columns:1fr}.stage-sidebar{position:static;max-height:none}.stage-sidebar #stage-list{display:flex;overflow:auto;gap:7px;padding-bottom:4px}.stage-sidebar .stage-item{min-width:170px}.stage-sidebar>.stage-item{margin-bottom:7px}.collection-box{display:none}.filter-row{overflow:auto;flex-wrap:nowrap}.filter-row>*{flex:0 0 auto}.results-head{padding-top:10px}}
@media(max-width:560px){.pb-brand span:last-child{display:none}.pb-hero h1{font-size:38px}.pb-hero{border-radius:22px}.hero-tools button{width:100%}.hero-stats{justify-content:space-between}.search-box kbd{display:none}.prompt-card{padding:16px}.use-case{grid-template-columns:1fr}.card-actions{flex-wrap:wrap}.card-actions .example{margin-left:0}.variable-form{grid-template-columns:1fr}.variable-form label.wide{grid-column:auto}.copy-actions{grid-template-columns:1fr}.export-actions{grid-template-columns:1fr 1fr}.goal-options,.builder-layout,.before-after{grid-template-columns:1fr}.pb-dialog{padding:25px 18px}.builder-preview pre{min-height:200px}}
@media print{.pb-header,.pb-hero,.search-band,.stage-sidebar,.prompt-results,.editor-head>button,.mode-switch,.variable-form,.file-drop,.copy-actions,.export-actions,.save-row,.safety-note{display:none!important}.workspace{display:block}.editor-panel{position:static!important;display:block!important;width:auto!important;border:0;box-shadow:none;transform:none!important;max-height:none}.editor-content{display:block!important}.prompt-preview{background:#fff;color:#000}.prompt-preview>div{color:#000;border-bottom:1px solid #ddd}.prompt-preview pre{color:#000;max-height:none;font-size:12pt}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#direction-filter{background:#101614;color:#fff;border-color:#101614;font-weight:700;min-width:190px}
#direction-filter option{background:#fff;color:#101614}
.advanced-link{min-height:48px;padding:0 16px;border-radius:13px;background:#08745c;color:#fff;display:inline-flex;align-items:center;gap:9px;text-decoration:none;font-size:10px;font-weight:800;letter-spacing:.03em;transition:.2s}.advanced-link span{color:#7ae5c6;font-size:17px}.advanced-link b{font-size:16px;margin-left:3px}.advanced-link:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(8,116,92,.2)}
@media(max-width:850px){.advanced-link{width:100%;justify-content:center}}
.search-band.simplified{grid-template-columns:1fr}.search-band.simplified .search-box{max-width:none}.stage-item[data-direction] span{font-weight:800;color:var(--green-dark)}
.hero-tools{flex-wrap:wrap;max-width:620px}.hero-tools .advanced-link{flex:1 0 100%;min-height:98px;padding:0 27px;border-radius:24px;background:linear-gradient(135deg,#0d1714,#08755d);font-size:15px;letter-spacing:.045em;box-shadow:0 24px 55px rgba(8,92,71,.24)}.hero-tools .advanced-link span{width:47px;height:47px;border-radius:15px;background:#7ae5c6;color:#0d1714;display:grid;place-items:center;font-size:23px}.hero-tools .advanced-link b{margin-left:auto;width:42px;height:42px;border-radius:50%;background:#fff;color:#0d1714;display:grid;place-items:center}.hero-tools .advanced-link:hover{box-shadow:0 30px 70px rgba(8,92,71,.32)}
.final-actions{display:grid;grid-template-columns:1.3fr 1fr .7fr;gap:7px;margin-top:12px}.final-actions button{min-height:46px;border:1px solid var(--line);background:#fff;border-radius:11px;padding:0 8px;font-size:9px;font-weight:700}.final-actions .primary{background:#101614;color:#fff;border-color:#101614}
@media(max-width:560px){.hero-tools .advanced-link{min-height:88px;font-size:12px;padding:0 17px}.final-actions{grid-template-columns:1fr}.final-actions button{min-height:48px}}

/* Mobile performance, overflow, and touch-target hardening */
.prompt-card{content-visibility:auto;contain-intrinsic-size:480px}
@media(max-width:560px){html,body{max-width:100%;overflow-x:hidden}.pb-header{gap:8px}.pb-header .icon-button,.pb-header select{min-width:44px;height:44px}.workspace,.prompt-results,.prompt-cards,.prompt-card{min-width:0;max-width:100%}.prompt-card{width:100%}.card-actions button,.stage-item{min-height:44px}.editor-panel{top:12px;right:12px;bottom:12px;width:calc(100vw - 24px);padding:16px}.editor-head>button{width:44px;height:44px;flex:0 0 44px}.variable-form input,.variable-form select,.variable-form textarea{min-height:44px;font-size:16px}}

@media(max-width:560px){.pb-header{height:64px;padding-inline:12px}.pb-header .back{display:none}.pb-brand{margin-right:auto}.header-actions{gap:6px}.pb-hero{padding:28px 18px}.pb-hero h1{font-size:clamp(32px,10vw,38px);line-height:1.08}.pb-hero>div>p:last-child{font-size:14px;line-height:1.55}.hero-tools{width:100%}.hero-tools .primary,.hero-tools .secondary{min-height:50px}.hero-tools .advanced-link{min-height:82px;line-height:1.35;text-align:left}.hero-stats{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:10px}.hero-stats span{min-width:0}.filter-row{margin-inline:-2px;padding:2px 2px 8px;scrollbar-width:none}.filter-row::-webkit-scrollbar,.stage-sidebar #stage-list::-webkit-scrollbar{display:none}.results-head{gap:10px}.results-head h2{font-size:25px}.card-title h3{font-size:17px}.card-actions{display:grid;grid-template-columns:1fr 1fr}.card-actions button{width:100%}.card-actions .example{margin-left:0}.pb-dialog{max-height:92dvh}.editor-panel{max-height:calc(100dvh - 24px);overscroll-behavior:contain}}
@media(max-width:360px){.pb-header .icon-button{padding-inline:9px}.pb-hero{padding-inline:15px}.hero-tools .advanced-link{padding-inline:14px;font-size:11px}.hero-tools .advanced-link span{width:42px;height:42px;flex:0 0 42px}.hero-tools .advanced-link b{width:38px;height:38px;flex:0 0 38px}.prompt-card{padding:14px}.card-top{gap:10px}.card-actions{grid-template-columns:1fr}.results-head h2{font-size:23px}}

/* Keep the optional manual builder available without competing with the library */
.hero-tools #builder-open{position:absolute;top:17px;right:18px;z-index:4;width:auto;min-height:36px;padding:0 11px;border:1px solid rgba(101,113,109,.22);border-radius:10px;background:rgba(255,255,255,.72);color:#6f7b76;font-size:9px;font-weight:600;opacity:.68;box-shadow:none;backdrop-filter:blur(8px)}.hero-tools #builder-open:hover{opacity:1;transform:none;box-shadow:none;background:#fff}.hero-tools #builder-open:focus-visible{opacity:1;outline:3px solid var(--green);outline-offset:2px}
@media(max-width:560px){.pb-hero{padding-top:58px}.hero-tools #builder-open{top:11px;right:11px;width:42px;min-width:42px;min-height:42px;padding:0;font-size:17px;opacity:.58}.hero-tools #builder-open span{display:none}}
