.demo-manager .org-page{max-width:1180px}
.demo-create{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;align-items:end}
.demo-create .org-actions,.demo-create .demo-hint{grid-column:1/-1;margin:0}
.demo-address{display:flex;align-items:stretch;border:1px solid #5b6b7b;border-radius:6px;overflow:hidden;background:#fff}
.demo-address .demo-origin{display:flex;align-items:center;padding:0 8px;background:#2a3846;color:#c9d2db;font:14px monospace;white-space:nowrap;max-width:45%;overflow:hidden;text-overflow:ellipsis}
.org-panel .demo-address input{border:0;border-radius:0;min-width:0;flex:1}
.demo-hint{min-height:1.5em;margin:0;color:#b8c6d3}.demo-hint.ok{color:#8fd19e}.demo-hint.bad{color:#ffb4a8}
.demo-warning{color:#ffd184;line-height:1.5}
.demo-list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.demo-table td small{display:block;color:#b8c6d3;font-family:monospace;margin-top:4px;word-break:break-all}
.demo-table .demo-url{font-family:monospace;word-break:break-all;color:#9fd8ff}
.demo-table .demo-actions{display:flex;flex-wrap:wrap;gap:8px}
.demo-table .demo-actions button,.demo-table .demo-actions a{min-height:44px}
.demo-table button.danger,.demo-dialog button.danger{background:#a3261b;border-color:#a3261b;color:#fff}
.demo-table button.danger:disabled,.demo-dialog button.danger:disabled{opacity:.5}
.demo-switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;min-height:44px;font-weight:600}
.demo-switch input{appearance:none;-webkit-appearance:none;width:52px;height:30px;min-height:30px!important;border-radius:999px;background:#5b6b7b;position:relative;margin:0;cursor:pointer;flex:none}
.demo-switch input::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .15s}
.demo-switch input:checked{background:#2e7d32}.demo-switch input:checked::after{left:25px}
.demo-switch input:focus-visible{outline:3px solid #83d6ff;outline-offset:3px}
.demo-status-off{color:#ffb4a8}
.demo-dialog{max-width:min(560px,calc(100vw - 32px));width:100%;border:1px solid #344454;border-radius:12px;background:#18212b;color:#e8edf2;padding:20px;box-sizing:border-box}
.demo-dialog::backdrop{background:rgba(0,0,0,.6)}
.demo-dialog label{display:grid;gap:6px;margin:12px 0}.demo-dialog input{min-height:44px;font:inherit;width:100%;box-sizing:border-box}
.demo-dialog button{min-height:44px;font-size:1rem}
@media (max-width:820px){
 .demo-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .demo-table,.demo-table tbody,.demo-table tr,.demo-table td{display:block;width:100%;box-sizing:border-box}
 .demo-table tr{border:1px solid #344454;border-radius:10px;margin:0 0 14px;padding:4px 0}
 .demo-table td{border-bottom:0;padding:8px 14px}
 .demo-table td::before{content:attr(data-label);display:block;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:#8fa1b2;margin-bottom:4px}
}
.demo-roster-dialog{max-width:min(680px,calc(100vw - 32px))}
.demo-roster-dialog textarea{width:100%;box-sizing:border-box;font:14px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;min-height:220px}
.demo-roster-example{background:#0f161d;border:1px solid #344454;border-radius:8px;padding:10px 12px;margin:8px 0;font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#c9d2db;white-space:pre}
.demo-roster-mode{border:1px solid #344454;border-radius:8px;padding:8px 12px;margin:12px 0}.demo-roster-mode .org-check{display:flex;align-items:center;gap:10px;margin:6px 0}.demo-roster-mode input{width:20px;min-height:20px}
.demo-roster-preview:empty{display:none}.demo-roster-preview{border:1px solid #344454;border-radius:8px;padding:10px 12px;margin:12px 0;background:#0f161d}.demo-roster-preview ul{margin:6px 0 0;padding-left:20px}.demo-roster-preview .warn{color:#ffd184}
