:root { color-scheme: dark; --bg:#212121; --panel:#171717; --line:#2f2f2f; --text:#ececec; --muted:#9b9b9b; --user:#2f2f2f; --green:#3fb950; --amber:#d29922; --red:#f85149; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family: system-ui,-apple-system,"Segoe UI",sans-serif; height:100vh; overflow:hidden; }
.app { display:grid; grid-template-columns: 290px 1fr 280px; height:100vh; }
.sidebar, .log { background:var(--panel); padding:18px; overflow-y:auto; }
.sidebar { border-right:1px solid var(--line); }
.log { border-left:1px solid var(--line); }
h1 { font-size:1.15rem; margin:0 0 6px; line-height:1.3; }
h2 { font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:22px 0 8px; }
.muted { color:var(--muted); } .small { font-size:.78rem; margin-top:6px; }
.toggle { display:flex; gap:10px; align-items:flex-start; padding:8px 0; cursor:pointer; }
.toggle small { display:block; color:var(--muted); font-size:.78rem; }
.attack-list { display:flex; flex-direction:column; gap:6px; }
.group { font-size:.7rem; color:var(--muted); margin:10px 0 2px; }
.attack { text-align:left; background:#202020; border:1px solid var(--line); color:var(--text); padding:8px 10px; border-radius:8px; cursor:pointer; font:inherit; font-size:.86rem; }
.attack:hover { border-color:#555; }
.attack small { display:block; color:var(--muted); font-size:.74rem; margin-top:2px; }
.text { width:100%; background:#202020; border:1px solid var(--line); color:var(--text); padding:7px 9px; border-radius:6px; font:inherit; font-size:.82rem; }
.chat { display:flex; flex-direction:column; min-width:0; height:100vh; }
.messages { flex:1; overflow-y:auto; padding:24px 0; }
.empty { max-width:640px; margin:18vh auto 0; text-align:center; }
.msg { max-width:760px; margin:0 auto 22px; padding:0 20px; }
.msg.user .bubble { background:var(--user); margin-left:auto; max-width:85%; border-radius:18px; padding:10px 16px; white-space:pre-wrap; word-break:break-word; width:fit-content; }
.msg.ai .bubble { white-space:pre-wrap; word-break:break-word; line-height:1.6; }
.msg .meta { margin-top:10px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:.8rem; color:var(--muted); }
.badge { padding:3px 10px; border-radius:999px; font-weight:600; font-size:.78rem; border:1px solid; }
.badge.blocked { color:var(--green); border-color:var(--green); background:#3fb95018; }
.badge.partial { color:var(--amber); border-color:var(--amber); background:#d2992218; }
.badge.succeeded { color:var(--red); border-color:var(--red); background:#f8514918; }
.composer { display:flex; gap:10px; max-width:760px; width:100%; margin:0 auto; padding:12px 20px 24px; }
.composer textarea { flex:1; resize:none; background:#2f2f2f; border:none; color:var(--text); border-radius:16px; padding:14px 16px; font:inherit; max-height:200px; outline:none; }
.composer button { background:#ececec; color:#111; border:none; border-radius:16px; padding:0 22px; font-weight:600; cursor:pointer; }
.composer button:disabled { opacity:.5; cursor:wait; }
.run { border:1px solid var(--line); border-radius:8px; padding:8px 10px; margin-bottom:8px; font-size:.78rem; background:#202020; }
.run .p { color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:4px 0; }
.run .d { color:var(--muted); }
.typing { color:var(--muted); }
@media (max-width: 1000px) { .app { grid-template-columns: 1fr; grid-template-rows:auto 1fr; height:auto; } body { overflow:auto; } .log { display:none; } .chat { height:80vh; } .sidebar { border-right:none; } }
.empty h2 { font-size:1.4rem; text-transform:none; letter-spacing:0; color:var(--text); margin:0 0 8px; }
.intro { padding:12px 20px; border-bottom:1px solid var(--line); font-size:.86rem; color:var(--muted); line-height:1.5; }
.intro b { color:var(--text); } .intro a { color:#58a6ff; margin-left:6px; white-space:nowrap; }
.notice { margin:12px 20px 0; padding:12px 14px; border:1px solid var(--amber); background:#d2992214; border-radius:10px; font-size:.86rem; line-height:1.5; }
.notice[hidden] { display:none; }
.linkbtn { background:none; border:none; color:#58a6ff; cursor:pointer; font:inherit; padding:0; margin-left:6px; text-decoration:underline; }
