Spaces:
Running
Running
Update index.html
Browse files115 unmodified lines116117118119120121180 unmodified lines302303304305306307114 unmodified lines4224234244254264272 unmodified lines43043143243343443511 unmodified lines4474484494504514521 unmodified line45445545645745845946046146246326 unmodified lines49049149249349449523 unmodified lines51952052152252352446 unmodified lines57157257357457557656 unmodified lines6336346356366376386396 unmodified lines64664764864965065165265390 unmodified lines7447457467477487492 unmodified lines75275375475575675775875995 unmodified lines855856857858859860861862863864865866115 unmodified linesgrid-template-columns: 340px 1fr;gap: 32px;align-items: start;}@media (max-width: 768px) {180 unmodified lines/* OUTPUT AREA */.output-area {min-height: 500px;}.output-header {114 unmodified linesborder: 1px solid var(--border);border-radius: 12px;overflow: hidden;}.level-card-header {2 unmodified linesdisplay: flex;align-items: center;gap: 12px;}.level-dot {11 unmodified linesfont-size: 15px;font-weight: 700;color: var(--heading);}.level-card-subtitle {1 unmodified linefont-size: 11px;color: var(--muted);margin-left: auto;}.level-card-body {padding: 24px;}/* CONTENT SECTIONS */26 unmodified linesfont-size: 14px;line-height: 1.75;color: var(--text);}.section ul {23 unmodified linesline-height: 1.65;color: #c9d1d9;position: relative;}.code-block-header {46 unmodified linesdisplay: flex;align-items: center;gap: 14px;}.system-banner-icon {56 unmodified lines@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }/* RAW VIEW */.raw-view {display: none;background: #060810;6 unmodified linescolor: #c9d1d9;white-space: pre-wrap;word-break: break-word;max-height: 600px;overflow-y: auto;}.raw-view.visible { display: block; }90 unmodified lines<span class="btn-text"></span></div></button></div></aside>2 unmodified lines<div class="output-header"><div class="output-title">Generated Prompt</div><div class="output-actions" id="outputActions" style="display:none"><button class="btn-sm" onclick="toggleRaw()">β Raw</button><button class="btn-sm" onclick="copyAll()">β Copy All</button></div></div>95 unmodified linesdocument.querySelector('[onclick="toggleRaw()"]').textContent = showingRaw ? 'β Structured' : 'β Raw';}async function copyAll() {try {await navigator.clipboard.writeText(rawText);const btn = document.querySelector('[onclick="copyAll()"]');btn.textContent = 'β Copied!';setTimeout(() => btn.textContent = 'β Copy All', 2000);} catch (e) {}}115 unmodified lines116117118119120121122123124125126127128129180 unmodified lines310311312313314315316317318114 unmodified lines4334344354364374384394402 unmodified lines44344444544644744844911 unmodified lines4614624634644654664674684694704711 unmodified line47347447547647747847948048148248348448548626 unmodified lines51351451551651751851952023 unmodified lines54454554654754854955055155255355446 unmodified lines60160260360460560660760860961056 unmodified lines6676686696706716726736746756766776786796806816826 unmodified lines68969069169269369469569669769869970090 unmodified lines7917927937947957967977987992 unmodified lines80280380480580680780880981095 unmodified lines906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935115 unmodified linesgrid-template-columns: 340px 1fr;gap: 32px;align-items: start;/* Prevent children from blowing out the grid */width: 100%;}/* Critical: grid children must not exceed their track */.layout > * {min-width: 0;width: 100%;}@media (max-width: 768px) {180 unmodified lines/* OUTPUT AREA */.output-area {min-height: 500px;min-width: 0;width: 100%;overflow: hidden;}.output-header {114 unmodified linesborder: 1px solid var(--border);border-radius: 12px;overflow: hidden;min-width: 0;width: 100%;}.level-card-header {2 unmodified linesdisplay: flex;align-items: center;gap: 12px;min-width: 0;}.level-dot {11 unmodified linesfont-size: 15px;font-weight: 700;color: var(--heading);min-width: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;flex: 1;}.level-card-subtitle {1 unmodified linefont-size: 11px;color: var(--muted);margin-left: auto;white-space: nowrap;flex-shrink: 0;}.level-card-body {padding: 24px;min-width: 0;overflow: hidden;}/* CONTENT SECTIONS */26 unmodified linesfont-size: 14px;line-height: 1.75;color: var(--text);overflow-wrap: break-word;word-break: break-word;}.section ul {23 unmodified linesline-height: 1.65;color: #c9d1d9;position: relative;max-width: 100%;width: 100%;box-sizing: border-box;word-break: normal;white-space: pre;}.code-block-header {46 unmodified linesdisplay: flex;align-items: center;gap: 14px;min-width: 0;width: 100%;box-sizing: border-box;overflow: hidden;}.system-banner-icon {56 unmodified lines@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }#structuredOutput {min-width: 0;width: 100%;overflow: hidden;}.level-panel {min-width: 0;width: 100%;}.raw-view {display: none;background: #060810;6 unmodified linescolor: #c9d1d9;white-space: pre-wrap;word-break: break-word;overflow-wrap: break-word;max-height: 600px;overflow-y: auto;overflow-x: hidden;width: 100%;box-sizing: border-box;}.raw-view.visible { display: block; }90 unmodified lines<span class="btn-text"></span></div></button><div style="text-align:center;margin-top:12px"><button class="btn-sm" style="width:100%;justify-content:center;display:flex" onclick="copyPromptSidebar(this)">β Copy Prompt Only</button></div></div></aside>2 unmodified lines<div class="output-header"><div class="output-title">Generated Prompt</div><div class="output-actions" id="outputActions" style="display:none"><button class="btn-sm" onclick="copyPrompt(this)">β Copy Prompt</button><button class="btn-sm" onclick="toggleRaw()">β Raw</button><button class="btn-sm" onclick="copyAll()">β Copy Output</button></div></div>95 unmodified linesdocument.querySelector('[onclick="toggleRaw()"]').textContent = showingRaw ? 'β Structured' : 'β Raw';}async function copyPrompt(btn) {const systemName = document.getElementById('systemName').value.trim();const desc = document.getElementById('systemDesc').value.trim();if (!systemName) {alert('Enter a system name first.');return;}const prompt = buildPrompt(systemName, desc);try {await navigator.clipboard.writeText(prompt);const label = btn.textContent;btn.textContent = 'β Copied!';setTimeout(() => btn.textContent = label, 2000);} catch (e) {}}function copyPromptSidebar(btn) { copyPrompt(btn); }async function copyAll() {try {await navigator.clipboard.writeText(rawText);const btn = document.querySelector('[onclick="copyAll()"]');btn.textContent = 'β Copied!';setTimeout(() => btn.textContent = 'β Copy Output', 2000);} catch (e) {}}
index.html+72-3