.adm-root{display:flex;flex-direction:column;min-height:0;height:100%;font-family:Inter,system-ui,-apple-system,sans-serif;color:#111;font-size:.85rem}.adm-root[data-mode=panel] .adm-history{display:none}.adm-root[data-mode=panel][data-view=history] .adm-history{display:flex}.adm-root[data-mode=panel][data-view=history] .adm-chat{display:none}.adm-root[data-mode=workspace]{flex-direction:row}.adm-root[data-mode=workspace] .adm-history{width:230px;flex-shrink:0;border-right:1px solid #e5e7eb;display:none}.adm-root[data-mode=workspace][data-view=history] .adm-history{display:flex}.adm-history{flex-direction:column;min-height:0;flex:1}.adm-chat{flex:1;display:flex;flex-direction:column;min-height:0;min-width:0}.adm-chat.adm-dragover{outline:2px dashed #3b82f6;outline-offset:-4px}.adm-messages{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.75rem;background:#f7f8fa;line-height:1.45}.adm-msg{margin-bottom:.6rem;padding:.55rem .7rem;border-radius:8px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word}.adm-msg.adm-user{background:#111;color:#fff;margin-left:2rem}.adm-msg.adm-user .adm-msg-chip{display:inline-block;background:#ffffff2e;border:1px solid rgba(255,255,255,.25);border-radius:4px;padding:2px 6px;font-family:JetBrains Mono,ui-monospace,Menlo,monospace;font-size:.7rem;margin-bottom:.35rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.adm-msg.adm-assistant{background:#fff;border:1px solid #e5e7eb;margin-right:2rem}.adm-msg.adm-system{background:transparent;color:#6b7280;font-size:.78rem;padding:.25rem 0}.adm-md{white-space:normal}.adm-md p{margin:0 0 .5rem}.adm-md p:last-child{margin-bottom:0}.adm-md h3,.adm-md h4,.adm-md h5,.adm-md h6{margin:.7rem 0 .35rem;font-weight:600;line-height:1.3}.adm-md h3:first-child,.adm-md h4:first-child,.adm-md h5:first-child,.adm-md h6:first-child{margin-top:0}.adm-md h3{font-size:.98rem}.adm-md h4{font-size:.92rem}.adm-md h5,.adm-md h6{font-size:.86rem}.adm-md ul,.adm-md ol{margin:0 0 .5rem;padding-left:1.25rem}.adm-md ul:last-child,.adm-md ol:last-child{margin-bottom:0}.adm-md li{margin:.15rem 0}.adm-md code{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:4px;padding:.05rem .3rem;font-family:JetBrains Mono,ui-monospace,Menlo,monospace;font-size:.78rem}.adm-md pre{background:#f6f8fa;border:1px solid #e5e7eb;border-radius:6px;padding:.55rem .7rem;margin:0 0 .5rem;overflow-x:auto;white-space:pre}.adm-md pre:last-child{margin-bottom:0}.adm-md pre code{background:transparent;border:none;padding:0;font-size:.76rem}.adm-md a{color:#1e40af}.adm-question{border-left:3px solid #3b82f6}.adm-question-text{font-weight:500}.adm-question-choices{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.55rem}.adm-choice-btn{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;border-radius:999px;padding:.3rem .8rem;font-size:.8rem;cursor:pointer;font-family:inherit}.adm-choice-btn:hover{background:#dbeafe}.adm-choice-btn:disabled{opacity:.5;cursor:not-allowed}.adm-question-hint{color:#6b7280;font-size:.72rem;margin-top:.45rem}.adm-actions{margin:.4rem 2rem .6rem 0;border:1px solid #e5e7eb;border-radius:8px;background:#fafbfc;overflow:hidden}.adm-actions summary{list-style:none;cursor:pointer;padding:.5rem .7rem;font-size:.8rem;color:#374151;display:flex;align-items:center;gap:.4rem;user-select:none}.adm-actions summary::-webkit-details-marker{display:none}.adm-actions summary:before{content:"▸";font-size:.7rem;color:#9ca3af;transition:transform .15s;display:inline-block}.adm-actions[open] summary:before{transform:rotate(90deg)}.adm-actions summary:hover{background:#f3f4f6}.adm-actions .adm-actions-body{padding:.2rem .7rem .55rem 1.4rem;font-size:.78rem;color:#4b5563}.adm-action-item{padding:.18rem 0;display:flex;align-items:center;gap:.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adm-action-item .adm-action-path{font-family:JetBrains Mono,ui-monospace,Menlo,monospace;font-size:.72rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis}.adm-action-item.error{color:#b91c1c}.adm-action-spinner{display:inline-block;width:10px;height:10px;border:2px solid #d1d5db;border-top-color:#6b7280;border-radius:50%;animation:adm-spin .7s linear infinite;margin-right:.3rem;flex-shrink:0}@keyframes adm-spin{to{transform:rotate(360deg)}}.adm-typing{color:#6b7280;font-size:.78rem;padding:.2rem 0}.adm-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;border-radius:6px;padding:.4rem .55rem;margin:.4rem 2rem .6rem 0;font-size:.78rem;white-space:pre-wrap}.adm-chips{padding:0;background:#fff;flex-shrink:0}.adm-chips:not(:empty){display:flex;flex-wrap:wrap;gap:.3rem;padding:.5rem .6rem 0;border-top:1px solid #e5e7eb}.adm-chip{display:inline-flex;align-items:center;gap:.3rem;background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;border-radius:999px;padding:.2rem .55rem;font-family:JetBrains Mono,ui-monospace,Menlo,monospace;font-size:.7rem;max-width:100%}.adm-chip .adm-chip-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}.adm-chip button{background:transparent;border:none;color:#1e40af;cursor:pointer;font-size:.95rem;line-height:1;padding:0}.adm-chip button:hover{color:#b91c1c}.adm-composer{border-top:1px solid #e5e7eb;padding:.6rem;display:flex;gap:.4rem;align-items:stretch;background:#fff;flex-shrink:0;margin:0}.adm-input{flex:1;min-width:0;min-height:40px;max-height:120px;padding:.5rem;border:1px solid #d1d5db;border-radius:6px;font-family:inherit;font-size:.85rem;resize:vertical}.adm-input:focus{outline:2px solid #111;outline-offset:-1px}.adm-tool-btn{background:#fff;color:#374151;border:1px solid #d1d5db;border-radius:6px;width:38px;flex-shrink:0;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}.adm-tool-btn:hover{background:#f3f4f6;color:#111}.adm-root[data-picking="1"] .adm-pick-btn{background:#3b82f6;color:#fff;border-color:#3b82f6}.adm-send-btn{background:#111;color:#fff;border:none;border-radius:6px;padding:0 .9rem;font-weight:500;cursor:pointer;font-size:.85rem;flex-shrink:0}.adm-send-btn:disabled{background:#9ca3af;cursor:not-allowed}.adm-history-toolbar{padding:.6rem;background:#fff;border-bottom:1px solid #e5e7eb;flex-shrink:0}.adm-new-btn{width:100%;background:#111;color:#fff;border:none;border-radius:6px;padding:.55rem .9rem;font-weight:500;cursor:pointer;font-size:.85rem}.adm-new-btn:hover{background:#000}.adm-history-list{flex:1 1 0;min-height:0;overflow-y:auto;padding:.5rem;background:#f7f8fa}.adm-history-empty{padding:1.2rem .6rem;text-align:center;color:#6b7280;font-size:.82rem}.adm-muted-dark{color:#6b7280;font-size:.82rem;padding:.6rem}.adm-conv{display:flex;align-items:flex-start;gap:.4rem;padding:.55rem .6rem;background:#fff;border:1px solid #e5e7eb;border-radius:6px;margin-bottom:.4rem;cursor:pointer;transition:background .1s}.adm-conv:hover{background:#f3f4f6}.adm-conv.active{border-color:#111;background:#fafafa}.adm-conv-body{flex:1;min-width:0}.adm-conv-title{font-size:.82rem;font-weight:500;color:#111;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:.15rem}.adm-conv-meta{font-size:.7rem;color:#6b7280}.adm-conv-del{background:transparent;border:none;color:#9ca3af;cursor:pointer;font-size:.95rem;line-height:1;padding:2px 5px;border-radius:4px}.adm-conv-del:hover{background:#fee2e2;color:#b91c1c}.adm-deploy{flex-shrink:0;background:#fff;border-top:1px solid #e5e7eb;padding:.5rem .6rem;font-size:.8rem}.adm-deploy[hidden]{display:none!important}.adm-deploy-row{display:flex;align-items:center;gap:.45rem}.adm-deploy-row+.adm-deploy-row{margin-top:.5rem}.adm-deploy-row[hidden]{display:none!important}.adm-deploy-spacer{flex:1}.adm-deploy-status{color:#374151;display:inline-flex;align-items:center;gap:.35rem;min-width:0}.adm-deploy-status:before{content:"";width:8px;height:8px;border-radius:50%;background:#10b981;flex-shrink:0}.adm-deploy-status.pending:before{background:#f59e0b}.adm-deploy-status.building:before{background:#3b82f6;animation:adm-pulse 1s ease-in-out infinite}.adm-deploy-status.failed:before{background:#ef4444}@keyframes adm-pulse{50%{opacity:.3}}.adm-deploy-link{color:#1e40af;text-decoration:none;font-weight:500;white-space:nowrap;flex-shrink:0}.adm-deploy-link:hover{text-decoration:underline}.adm-deploy-link[hidden]{display:none!important}.adm-deploy-ghost{background:#fff;border:1px solid #d1d5db;color:#374151;border-radius:6px;padding:.3rem .6rem;font-size:.78rem;cursor:pointer}.adm-deploy-ghost:hover{background:#f3f4f6}.adm-deploy-publish{flex:1;background:#16a34a;color:#fff;border:none;border-radius:6px;padding:.4rem .7rem;font-size:.82rem;font-weight:600;cursor:pointer}.adm-deploy-publish:hover{background:#15803d}.adm-deploy-publish:disabled,.adm-deploy-ghost:disabled{opacity:.5;cursor:not-allowed}.adm-versions-panel{margin-top:.5rem;border:1px solid #e5e7eb;border-radius:6px;background:#f9fafb;max-height:180px;overflow-y:auto}.adm-versions-panel[hidden]{display:none!important}.adm-version{display:flex;align-items:center;gap:.4rem;padding:.4rem .55rem;border-bottom:1px solid #eef0f2;font-size:.75rem}.adm-version:last-child{border-bottom:none}.adm-version-id{font-family:JetBrains Mono,ui-monospace,Menlo,monospace;font-size:.68rem;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.adm-version-badge{font-size:.62rem;padding:1px 5px;border-radius:999px;flex-shrink:0;background:#d1fae5;color:#065f46}.adm-version-badge.preview{background:#dbeafe;color:#1e40af}.adm-version-rollback{background:transparent;border:1px solid #d1d5db;color:#374151;border-radius:5px;padding:.15rem .45rem;font-size:.7rem;cursor:pointer;flex-shrink:0}.adm-version-rollback:hover{background:#fee2e2;border-color:#fecaca;color:#b91c1c}.adm-picker-highlight{position:fixed;pointer-events:none;box-sizing:border-box;border:2px solid #3b82f6;outline:1px solid rgba(255,255,255,.9);outline-offset:-3px;background:#3b82f62e;box-shadow:0 0 0 9999px #0000000f,0 4px 14px #3b82f659;z-index:2147483646;transition:left .06s ease-out,top .06s ease-out,width .06s ease-out,height .06s ease-out}.adm-picker-label{position:fixed;pointer-events:none;background:#3b82f6;color:#fff;font:11px/1.2 JetBrains Mono,ui-monospace,Menlo,monospace;padding:3px 6px;border-radius:3px;z-index:2147483646;white-space:nowrap;max-width:60vw;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 6px #00000040}.adm-picker-hint{position:fixed;top:12px;left:50%;transform:translate(-50%);background:#111;color:#fff;padding:.5rem .9rem;border-radius:999px;font-size:.8rem;z-index:2147483647;box-shadow:0 4px 12px #0003;pointer-events:none}html[data-adm-picking="1"],html[data-adm-picking="1"] *,html[data-adm-picking="1"] *:before,html[data-adm-picking="1"] *:after,html[data-adm-picking="1"] a,html[data-adm-picking="1"] button,html[data-adm-picking="1"] input,html[data-adm-picking="1"] textarea,html[data-adm-picking="1"] select,html[data-adm-picking="1"] label,html[data-adm-picking="1"] [role=button],html[data-adm-picking="1"] [tabindex]{cursor:crosshair!important}
