.header-actions,.section-title,.dialog-head,.dialog-actions,.row-actions{display:flex;align-items:center;gap:10px}.section-title,.dialog-head{justify-content:space-between}.section-title span{color:var(--muted)}button.primary{background:linear-gradient(135deg,#236ee7,#765df7);text-align:center;padding:10px 18px;font-weight:700}button.small{padding:7px 10px;background:#1d3859;text-align:center;white-space:nowrap}button.danger{background:#48242c;color:#ffb8c1}.row-actions{white-space:nowrap}dialog{width:min(720px,calc(100% - 28px));border:1px solid var(--line);border-radius:18px;background:#0f1d30;color:var(--text);padding:0;box-shadow:0 30px 100px #000b}dialog::backdrop{background:#020814cc;backdrop-filter:blur(5px)}dialog form{padding:24px}.icon-button{font-size:27px;padding:0 9px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.form-grid label{display:grid;gap:7px;color:var(--muted)}.form-grid input,.form-grid select{width:100%;border:1px solid var(--line);border-radius:10px;background:#091526;color:var(--text);padding:12px;font:inherit}.form-grid .check{display:flex;align-items:center;gap:9px;padding:10px;background:#13243a;border-radius:10px}.form-grid .check input{width:auto}.dialog-actions{justify-content:flex-start}.form-error{padding:11px;background:#48242c;color:#ffc3ca;border-radius:9px;margin-bottom:14px}@media(max-width:600px){.form-grid{grid-template-columns:1fr}.header-actions{align-items:flex-end;flex-direction:column}.row-actions{flex-direction:column}}
.remote-dialog{width:96vw;max-width:none;height:92vh}.remote-head{height:50px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;background:#091526}.remote-actions{display:flex;align-items:center;gap:8px}.remote-dialog iframe{display:block;width:100%;height:calc(100% - 50px);min-height:420px;border:0;background:#050a11}.remote-help{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.connection-status{display:inline-flex;align-items:center;gap:5px;font-weight:700;white-space:nowrap}.connection-status.online{color:#51e08b}.connection-status.offline,.connection-status.not_connected{color:#ff7180}.connection-status.checking,.connection-status.ready,.connection-status.unknown{color:#f6c85f}
.advanced-policy-dialog{width:min(920px,calc(100% - 28px));max-height:92vh}.advanced-policy-dialog form{padding:24px;overflow:auto;max-height:88vh}.advanced-policy-dialog textarea{width:100%;min-height:150px;resize:vertical;border:1px solid var(--line);border-radius:10px;background:#091526;color:var(--text);padding:12px;font:13px ui-monospace,monospace}
.badge.pending_approval{background:#4b3918;color:#ffd479}.badge.rejected,.badge.ended,.badge.expired{background:#47222a;color:#ff9cae}
.badge.critical{background:#5a202b;color:#ffd2d7}.badge.warning{background:#4b3918;color:#ffe09a}.badge.info{background:#183a5b;color:#b9deff}
.badge.not_connected{background:#31394a;color:#c5d0df}.badge.offline,.badge.revoked{background:#47222a;color:#ff9cae}
.editor-page{max-width:1180px;margin:0 auto}.editor-page .editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:6px 0 20px}.editor-page .editor-header h2{margin:0}.editor-page .editor-header p{margin:5px 0 0;color:var(--muted)}.editor-card{background:#0f1d30;border:1px solid var(--line);border-radius:16px;padding:22px;margin:16px 0;box-shadow:0 12px 35px #0002}.editor-card h3{margin:0 0 6px;font-size:17px}.editor-card>p{margin:0 0 16px;color:var(--muted);font-size:14px}.editor-page textarea{width:100%;min-height:180px;resize:vertical;border:1px solid var(--line);border-radius:10px;background:#091526;color:var(--text);padding:12px;font:13px ui-monospace,monospace}.editor-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start;margin:22px 0}.editor-page .form-grid{margin:0}.editor-page .form-grid label{min-width:0}@media(max-width:600px){.editor-page .editor-header{align-items:flex-start;flex-direction:column}.editor-card{padding:16px}}
