#toon-test-entry{white-space:nowrap;border:1px solid #9db8df;background:#f4f8ff;color:#235391;font-weight:700}
#toon-test-dialog{box-sizing:border-box;width:min(1080px,calc(100vw - 24px));max-height:92dvh;padding:24px;border:1px solid #bfd0e6;border-radius:20px;color:#233549;background:#fff;overflow:auto}
#toon-test-dialog::backdrop{background:rgba(19,34,53,.58)}
#toon-test-dialog *,#toon-test-dialog *::before{box-sizing:border-box}
#toon-test-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
#toon-test-dialog h2{margin:5px 0 10px;font-size:24px}#toon-test-dialog h3{font-size:17px;margin:14px 0 8px}
#toon-test-dialog small{font-size:12px;color:#586d83}#toon-test-dialog p{line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#toon-test-dialog button,#toon-test-dialog a{font-size:14px}#toon-test-dialog button{min-height:40px;padding:9px 13px;border:1px solid #bccbdd;border-radius:9px;background:#fff;cursor:pointer;color:#233549}
#toon-test-dialog button:disabled{opacity:.55;cursor:wait}#toon-test-dialog a{color:#245b9b;line-height:1.6}
#toon-test-dialog .test-notice{padding:12px 15px;background:#f3f7fd;border-radius:10px;font-size:13px;margin:6px 0 14px}
#toon-test-dialog .test-status{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid #dbe4ef}
#toon-test-dialog .test-status span{font-size:13px;color:#617289}
#toon-test-dialog .test-columns{display:grid;grid-template-columns:230px minmax(0,1fr);gap:25px;margin-top:15px}
#toon-test-dialog .test-columns main{min-width:0;background:none}#toon-test-dialog label{font-size:13px;display:block;font-weight:700}
#toon-test-seed{width:100%;min-height:155px;resize:vertical;padding:12px;border:1px solid #dbe4ef;border-radius:10px;background:#fafcff;color:#30445b;font:inherit;font-size:13px;line-height:1.6;margin:8px 0 10px}
#toon-test-progress{list-style:none;padding:0;margin:0 0 18px}#toon-test-progress li{display:flex;gap:10px;align-items:center;padding:10px 0}
#toon-test-progress li>span{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#ecf0f5;color:#7a889b;font-size:12px}
#toon-test-progress strong{font-size:13px;display:block}#toon-test-progress small{display:block;margin-top:2px}
#toon-test-progress .done>span{background:#dcf4e7;color:#176341}#toon-test-progress .running>span{background:#ddeaff;color:#194e91;outline:2px solid #a4c7f7;outline-offset:2px}
#toon-test-dialog details{border:1px solid #dbe4ef;border-radius:9px;padding:10px 12px;margin:8px 0;font-size:13px}#toon-test-dialog summary{cursor:pointer;font-weight:600}
#toon-test-dialog .test-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#toon-test-dialog figure{margin:0}#toon-test-dialog figure img{width:100%;aspect-ratio:1;object-fit:contain;border:1px solid #dbe4ef;border-radius:10px;background:#f8fafc}
#toon-test-dialog figcaption{font-size:12px;text-align:center;color:#526881;margin:5px 0}#toon-test-dialog .test-empty{padding:30px 15px;text-align:center;color:#63778d;font-size:14px;background:#f8fafc;border-radius:10px}
#toon-test-dialog .test-saved{padding:14px;background:#eefaf3;border:1px solid #b3dec3;border-radius:12px}#toon-test-dialog .test-saved h3{color:#226543;margin-top:0}
#toon-test-error:not([hidden]){display:block;background:#fff6eb;border:1px solid #ecd0aa;border-radius:10px;padding:14px;margin-top:12px;font-size:14px;line-height:1.6}
#toon-test-dialog footer{margin-top:18px;padding-top:14px;border-top:1px solid #dbe4ef}#toon-test-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:9px}
#toon-test-controls a{background:#235c9f;color:white;text-decoration:none;padding:10px 14px;border-radius:9px}#toon-test-dialog #toon-test-log{max-height:220px;overflow:auto}
@media(max-width:680px){#toon-test-dialog{padding:15px;width:calc(100vw - 14px);max-height:95dvh;border-radius:13px}#toon-test-dialog h2{font-size:20px}#toon-test-dialog .test-columns{grid-template-columns:1fr;gap:12px}#toon-test-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px}#toon-test-progress li{padding:7px 0}#toon-test-progress strong{font-size:12px}#toon-test-dialog .test-status{align-items:center}#toon-test-dialog .test-status span{white-space:nowrap;font-size:11px}#toon-test-entry{font-size:12px;padding:7px}.topbar:has(#toon-test-entry) .row{flex-wrap:wrap}}
