:root{--bg:#f5f4f0;--surface:#fff;--sunken:#efede7;--ink:#17191c;--muted:#6a6f76;--line:#e2dfd7;--accent:#0f6b5f;--accent-ink:#fff;--accent-soft:#e2f1ee;--warn:#9a5b00;--warn-soft:#fbf0d9;--bad:#a3322b;--bad-soft:#fbe6e3;--side:#15181b;--side-ink:#c9cdd2;--radius:10px;--mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;font:14px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif}h1,h2,h3,p{margin:0}h1{letter-spacing:-.01em;font-size:22px}h2{font-size:15px}h3{font-size:13px}a{color:var(--accent)}button,input,select,textarea{font:inherit;color:inherit}.shell{grid-template-columns:220px 1fr;min-height:100vh;display:grid}.side{background:var(--side);color:var(--side-ink);flex-direction:column;gap:4px;height:100vh;padding:18px 12px;display:flex;position:sticky;top:0}.brand{color:#fff;letter-spacing:-.01em;padding:4px 10px 16px;font-size:15px;font-weight:650}.brand span{color:#6fd0c0}.nav{color:inherit;border-radius:8px;align-items:center;gap:10px;padding:8px 10px;text-decoration:none;display:flex}.nav:hover{color:#fff;background:#22262b}.nav.on{color:#fff;background:#2a2f35}.nav svg{opacity:.85;flex:none;width:16px;height:16px}.side-demo{color:#f0cf8a;background:#2a2416;border-radius:8px;margin:12px 4px 0;padding:9px 10px;font-size:12px;line-height:1.4}.side-foot{border-top:1px solid #2a2f35;gap:6px;margin-top:auto;padding:10px;font-size:12px;display:grid}.dot{background:#5b6168;border-radius:50%;width:7px;height:7px;margin-right:7px;display:inline-block}.dot.on{background:#45c9a5}.main{min-width:0;max-width:1280px;padding:28px 32px 64px}.head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.sub{color:var(--muted);max-width:70ch;margin-top:4px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}.card+.card,.stack>*+*{margin-top:16px}.card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.step{font:600 11px/1 var(--mono);color:var(--accent);background:var(--accent-soft);border-radius:5px;margin-right:8px;padding:4px 6px}.cols{grid-template-columns:1fr 1fr;align-items:start;gap:16px;display:grid}.cols-3{grid-template-columns:repeat(3,1fr);gap:12px;display:grid}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:var(--mono);font-size:12px}.btn{border:1px solid var(--line);background:var(--surface);cursor:pointer;white-space:nowrap;color:var(--ink);border-radius:8px;align-items:center;gap:6px;padding:7px 12px;font-weight:550;text-decoration:none;display:inline-flex}.btn:hover{border-color:#c9c5ba}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.primary:hover{filter:brightness(1.08)}.btn.ghost{color:var(--muted);background:0 0;border-color:#0000}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.sm{padding:4px 9px;font-size:12px}label.field{color:var(--muted);gap:5px;font-size:12px;font-weight:550;display:grid}input[type=text],input[type=password],input[type=number],input[type=url],select,textarea{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--ink);border-radius:8px;padding:8px 10px;font-size:14px;font-weight:400}textarea{resize:vertical;min-height:110px;line-height:1.5}input:focus,select:focus,textarea:focus,.btn:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.check{border:1px solid var(--line);cursor:pointer;background:var(--surface);border-radius:8px;align-items:flex-start;gap:9px;padding:8px 10px;display:flex}.check input{accent-color:var(--accent);margin-top:3px}.check.locked{background:var(--sunken);cursor:default}.check b{font-weight:600;display:block}.check span{color:var(--muted);font-size:12px}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--line);cursor:pointer;background:var(--surface);border-radius:999px;padding:3px 10px;font-size:12px}.chip.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent);font-weight:600}.chip:disabled{cursor:not-allowed;opacity:.5}.tag{background:var(--sunken);color:var(--muted);white-space:nowrap;border-radius:5px;padding:2px 6px;font-size:11px;font-weight:600;display:inline-block}.tag.good{background:var(--accent-soft);color:var(--accent)}.tag.warn{background:var(--warn-soft);color:var(--warn)}.tag.bad{background:var(--bad-soft);color:var(--bad)}.note{background:var(--warn-soft);color:var(--warn);border-radius:8px;padding:9px 12px;font-size:13px}.note.bad{background:var(--bad-soft);color:var(--bad)}.note.info{background:var(--sunken);color:var(--muted)}.seg{border:1px solid var(--line);background:var(--sunken);border-radius:8px;padding:2px;display:inline-flex}.seg button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:6px;padding:4px 12px;font-weight:550}.seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px #00000014}.drop{border-radius:var(--radius);text-align:center;cursor:pointer;background:var(--surface);border:1.5px dashed #c9c5ba;padding:22px;transition:background .12s,border-color .12s}.drop.over,.drop:hover{border-color:var(--accent);background:var(--accent-soft)}.drop b{display:block}.table-wrap{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap;background:var(--sunken);padding:9px 12px;font-size:11px;font-weight:600}td{border-bottom:1px solid var(--line);vertical-align:top;padding:9px 12px}tr:last-child td{border-bottom:0}tr.click{cursor:pointer}tr.click:hover td,td.detail{background:#faf9f6}.bar{background:var(--sunken);border-radius:3px;height:6px;overflow:hidden}.bar i{background:var(--accent);height:100%;transition:width .3s;display:block}.stats{flex-wrap:wrap;gap:18px;display:flex}.stat b{font-variant-numeric:tabular-nums;letter-spacing:-.01em;font-size:20px;display:block}.stat span{color:var(--muted);font-size:12px}.chat{flex-direction:column;height:calc(100vh - 150px);min-height:420px;display:flex}.chat-log{flex-direction:column;flex:1;gap:12px;padding:4px 2px 12px;display:flex;overflow-y:auto}.bubble{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;max-width:78%;padding:10px 13px}.bubble.user{background:var(--ink);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}.bubble.assistant{background:var(--sunken);border-bottom-left-radius:4px;align-self:flex-start}.chat-box{border:1px solid var(--line);background:var(--surface);border-radius:12px;gap:8px;padding:8px;display:flex}.chat-box textarea{resize:none;border:0;min-height:44px;max-height:160px;padding:6px}.chat-box textarea:focus{outline:0}.msg{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:10px 12px}.msg+.msg{margin-top:8px}.msg-label{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:4px;font-size:11px;font-weight:600}.msg-body{white-space:pre-wrap;overflow-wrap:anywhere}.example{border:1px solid var(--line);border-radius:var(--radius);background:#fcfbf9;padding:14px}.example+.example{margin-top:12px}.empty{text-align:center;color:var(--muted);padding:28px 12px}@media (max-width:900px){.shell{grid-template-columns:1fr}.side{flex-flow:wrap;height:auto;position:static}.side-foot,.brand{display:none}.side-demo{width:100%;margin:4px 0 0}.main{padding:18px 16px 48px}.cols,.cols-3{grid-template-columns:1fr}.bubble{max-width:92%}}.msg-body a{text-underline-offset:2px;font-weight:600;text-decoration:underline}.insert-row{border-bottom:1px solid var(--line);grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px;padding:8px 0;display:grid}.insert-row:last-child{border-bottom:0}.switch{cursor:pointer;align-items:center;gap:10px;font-weight:550;display:inline-flex;position:relative}.switch input{opacity:0;width:0;height:0;position:absolute}.switch i{background:#c9c5ba;border-radius:11px;flex:none;width:38px;height:22px;transition:background .15s;position:relative}.switch i:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #0003}.switch input:checked+i{background:var(--accent)}.switch input:checked+i:after{transform:translate(16px)}.switch input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}@media (max-width:900px){.insert-row{grid-template-columns:1fr;gap:4px}}.connector{border-top:1px solid var(--line);padding:14px 0}.connector:first-of-type{border-top:0;padding-top:0}.connector:last-child{padding-bottom:0}.side-user{border-bottom:1px solid #2a2f35;gap:2px;margin-bottom:4px;padding-bottom:8px;display:grid}.side-user b{color:#fff;font-weight:600}.side-user span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.side-user button{color:#6fd0c0;cursor:pointer;background:0 0;border:0;justify-self:start;padding:0;font-size:12px}.auth-wrap{place-items:center;min-height:100vh;padding:24px 16px;display:grid}.auth-card{width:100%;max-width:400px}.auth-brand{letter-spacing:-.01em;margin-bottom:18px;font-size:18px;font-weight:650}.auth-brand span{color:var(--accent)}
