@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap";*,:before,:after{box-sizing:border-box}body{color:#e2e8f0;-webkit-font-smoothing:antialiased;background:#0a0a0a;margin:0;font-family:Inter,system-ui,sans-serif;font-size:14px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#0f0f0f}::-webkit-scrollbar-thumb{background:#2a2a2a;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#dc2626}.app-shell{background:#0a0a0a;height:100vh;display:flex;overflow:hidden}.sidebar{background:#0f0f0f;border-right:1px solid #1e1e1e;flex-direction:column;width:260px;min-width:260px;display:flex;overflow:hidden}.sidebar-title{letter-spacing:.12em;text-transform:uppercase;color:#dc2626;border-bottom:1px solid #1e1e1e;margin:0;padding:1.25rem 1rem .75rem;font-family:JetBrains Mono,monospace;font-size:.75rem;font-weight:700}.sidebar-section{flex-direction:column;flex:1;padding:.75rem 0;display:flex;overflow:hidden}.sidebar-section-header{letter-spacing:.1em;text-transform:uppercase;color:#4b5563;justify-content:space-between;align-items:center;padding:0 1rem .5rem;font-size:.7rem;font-weight:600;display:flex}.sidebar-new-btn{color:#6b7280;cursor:pointer;background:0 0;border:1px solid #1e1e1e;border-radius:4px;padding:.2rem .5rem;font-family:inherit;font-size:.7rem;transition:all .15s}.sidebar-new-btn:hover{color:#dc2626;border-color:#dc2626}.sidebar-message{color:#4b5563;padding:0 1rem;font-size:.8rem;font-style:italic}.sidebar-message.error{color:#f87171;font-style:normal}.host-list{flex-direction:column;flex:1;gap:2px;margin:0;padding:0 .5rem;list-style:none;display:flex;overflow-y:auto}.host-list-item{cursor:pointer;border:1px solid #0000;border-radius:6px;padding:.6rem .75rem;transition:background .1s}.host-list-item:hover{background:#161616;border-color:#1e1e1e}.host-list-item.active{background:#1a0000;border-color:#7f1d1d}.host-name{color:#e2e8f0;align-items:center;gap:.3rem;font-size:.85rem;font-weight:600;display:flex}.host-meta{color:#4b5563;margin-top:.15rem;font-family:JetBrains Mono,monospace;font-size:.75rem}.dirty-indicator{color:#f59e0b;font-size:1rem;line-height:1}.main-area{background:#0d0d0d;flex-direction:column;flex:1;display:flex;overflow:hidden}.topbar{letter-spacing:.15em;text-transform:uppercase;color:#374151;background:#0f0f0f;border-bottom:1px solid #1e1e1e;align-items:center;gap:.5rem;height:48px;min-height:48px;padding:0 1.25rem;font-family:JetBrains Mono,monospace;font-size:.7rem;font-weight:700;display:flex}.topbar:before{content:"";background:#dc2626;border-radius:50%;width:6px;height:6px;display:inline-block;box-shadow:0 0 6px #dc2626}.content{flex:1;padding:1.5rem;overflow-y:auto}.host-editor{flex-direction:column;gap:1.25rem;max-width:900px;display:flex}.editor-header{border-bottom:1px solid #1e1e1e;flex-direction:column;gap:.2rem;padding-bottom:1rem;display:flex}.editor-title{color:#f1f5f9;letter-spacing:-.01em;margin:0;font-size:1.4rem;font-weight:700}.editor-subtitle{color:#4b5563;font-family:JetBrains Mono,monospace;font-size:.8rem}.editor-actions{align-items:center;gap:.75rem;display:flex}.editor-actions button{cursor:pointer;height:36px;font:inherit;border:none;border-radius:6px;padding:0 1.1rem;font-size:.8rem;font-weight:600;transition:all .15s}.editor-actions button[type=submit]{color:#fff;letter-spacing:.02em;background:#dc2626}.editor-actions button[type=submit]:hover{background:#b91c1c}.editor-actions button[type=submit]:disabled{color:#6b7280;cursor:not-allowed;background:#3f0000}.btn-delete{color:#6b7280!important;background:0 0!important;border:1px solid #1e1e1e!important}.btn-delete:hover{color:#f87171!important;border-color:#7f1d1d!important}.btn-delete:disabled{opacity:.4!important;cursor:not-allowed!important}.editor-dirty{color:#f59e0b;margin-left:auto;font-family:JetBrains Mono,monospace;font-size:.75rem}.editor-tabs{background:#0f0f0f;border:1px solid #1e1e1e;border-radius:8px;gap:2px;padding:3px;display:flex}.editor-tab{cursor:pointer;height:32px;font:inherit;color:#4b5563;white-space:nowrap;background:0 0;border:none;border-radius:6px;padding:0 1rem;font-size:.8rem;font-weight:500;transition:all .15s}.editor-tab:hover{color:#9ca3af;background:#161616}.editor-tab.active{color:#f87171;background:#1a0000;font-weight:600;box-shadow:inset 0 0 0 1px #7f1d1d}.editor-section{background:#111;border:1px solid #1e1e1e;border-radius:10px;padding:1.25rem}.editor-section-title{letter-spacing:.1em;text-transform:uppercase;color:#4b5563;margin:0 0 1rem;font-size:.7rem;font-weight:700}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.form-field{flex-direction:column;gap:.35rem;display:flex}.form-label{color:#6b7280;letter-spacing:.04em;text-transform:uppercase;font-size:.75rem;font-weight:600}.form-input,.form-select{color:#e2e8f0;height:38px;font:inherit;appearance:none;background:#0a0a0a;border:1px solid #1e1e1e;border-radius:6px;padding:0 .75rem;font-size:.875rem;transition:border-color .15s}.form-select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;padding-right:2rem}.form-input:focus,.form-select:focus{border-color:#dc2626;outline:none;box-shadow:0 0 0 2px #dc26261a}.form-input::placeholder{color:#374151}.form-input:disabled,.form-select:disabled{color:#374151;cursor:not-allowed;background:#0d0d0d;border-color:#161616}.form-error{color:#f87171;font-size:.75rem}.section-warning{color:#f87171;background:#1a0000;border:1px solid #7f1d1d;border-radius:6px;grid-column:1/-1;margin:0 0 1rem;padding:.5rem .75rem;font-size:.78rem}.editor-preview{color:#86efac;background:#050505;border:1px solid #1e1e1e;border-radius:6px;max-height:500px;margin:0;padding:1rem;font-family:JetBrains Mono,monospace;font-size:.8rem;line-height:1.6;overflow:auto}.roles-container{flex-wrap:wrap;gap:.5rem;display:flex}.role-chip{cursor:pointer;color:#4b5563;-webkit-user-select:none;user-select:none;background:#0a0a0a;border:1px solid #1e1e1e;border-radius:5px;padding:.35rem .8rem;font-family:JetBrains Mono,monospace;font-size:.8rem;transition:all .15s}.role-chip:hover:not(.required){color:#9ca3af;border-color:#374151}.role-chip.selected{color:#fca5a5;background:#1a0000;border-color:#7f1d1d}.role-chip.required{cursor:default;border-style:dashed}.role-chip.required.selected{color:#f87171;background:#0f0000;border-color:#450a0a}.role-required-mark{color:#dc2626}.app-card{background:#0a0a0a;border:1px solid #1e1e1e;border-radius:8px;margin-bottom:.6rem;transition:border-color .15s;overflow:hidden}.app-card:hover{border-color:#2a2a2a}.app-card--disabled{opacity:.45}.app-card-header{background:#0f0f0f;justify-content:space-between;align-items:center;padding:.6rem .85rem;display:flex}.app-card-info{align-items:center;gap:.5rem;display:flex}.app-card-key{color:#e2e8f0;font-family:JetBrains Mono,monospace;font-size:.85rem;font-weight:600}.app-card-kind{color:#f87171;background:#1a0000;border:1px solid #7f1d1d;border-radius:4px;padding:.1rem .45rem;font-family:JetBrains Mono,monospace;font-size:.7rem}.app-card-actions{align-items:center;gap:.35rem;display:flex}.app-toggle{color:#4b5563;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.3rem;font-size:.75rem;display:flex}.app-toggle input[type=checkbox]{accent-color:#dc2626}.app-btn-icon{cursor:pointer;color:#4b5563;background:0 0;border:1px solid #0000;border-radius:4px;padding:.2rem .4rem;font-family:inherit;font-size:.75rem;transition:all .15s}.app-card-body{border-top:1px solid #1a1a1a;padding:.85rem}.app-add-form{background:#0a0a0a;border:1px dashed #1e1e1e;border-radius:8px;margin-top:.75rem;padding:.85rem}.btn-add-app{color:#4b5563;cursor:pointer;height:34px;font:inherit;background:0 0;border:1px dashed #374151;border-radius:6px;margin-top:.6rem;padding:0 1rem;font-size:.8rem;transition:all .15s}.btn-add-app:hover:not(:disabled){color:#f87171;border-color:#dc2626}.btn-add-app:disabled{opacity:.3;cursor:not-allowed}.section-row{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.user-list{flex-direction:column;gap:.5rem;margin-top:.75rem;display:flex}.user-row{background:#161616;border:1px solid #1e1e1e;border-radius:6px;justify-content:space-between;align-items:center;padding:.6rem .75rem;display:flex}.user-row-info{flex-direction:column;gap:.15rem;display:flex}.user-row-name{color:#e5e7eb;font-size:.875rem;font-weight:600}.user-row-meta{color:#6b7280;font-size:.75rem}.user-row-actions{gap:.4rem;display:flex}.modal-overlay{z-index:1000;background:#000000bf;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#111;border:1px solid #1e1e1e;border-radius:10px;flex-direction:column;width:100%;max-width:540px;max-height:90vh;display:flex;overflow:hidden}.modal-header{border-bottom:1px solid #1e1e1e;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.modal-title{color:#e5e7eb;margin:0;font-size:1rem;font-weight:600}.modal-close{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.2rem .4rem;font-size:1rem;line-height:1;transition:color .15s}.modal-close:hover{color:#f87171}.modal-body{flex:1;padding:1.25rem;overflow-y:auto}.modal-textarea{resize:vertical;min-height:80px;font-family:JetBrains Mono,monospace;font-size:.78rem}.modal-footer{border-top:1px solid #1e1e1e;justify-content:flex-end;gap:.6rem;padding:1rem 1.25rem;display:flex}.modal-btn-cancel{color:#9ca3af;cursor:pointer;height:34px;font:inherit;background:0 0;border:1px solid #374151;border-radius:6px;padding:0 1rem;font-size:.85rem;transition:all .15s}.modal-btn-cancel:hover{color:#e5e7eb;border-color:#6b7280}.modal-btn-save{color:#fff;cursor:pointer;height:34px;font:inherit;background:#dc2626;border:1px solid #dc2626;border-radius:6px;padding:0 1.25rem;font-size:.85rem;font-weight:600;transition:all .15s}.modal-btn-save:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}.modal-btn-save:disabled{opacity:.4;cursor:not-allowed}.app-btn-icon{color:#6b7280;cursor:pointer;height:28px;font:inherit;background:0 0;border:1px solid #374151;border-radius:5px;padding:0 .6rem;font-size:.78rem;transition:all .15s}.app-btn-icon:hover{color:#e5e7eb;border-color:#9ca3af}.app-btn-icon--danger:hover{color:#f87171;border-color:#dc2626}.form-field--checkbox{align-items:center;display:flex}.form-label--checkbox{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.5rem;display:flex}.form-label--checkbox input[type=checkbox]{accent-color:#dc2626;cursor:pointer;width:16px;height:16px}.net-toggle{cursor:pointer;color:#6b7280;-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;font-size:.8rem;display:flex}.net-toggle input[type=checkbox]{accent-color:#dc2626;cursor:pointer;width:14px;height:14px}.net-toggle span{color:#6b7280}
