/* Editor compartilhado: etapas e ações fixas, seleção e rascunho lado a lado. */
.vpn-editor{--ve-accent:var(--ws-primary,var(--central-accent,var(--primary,#3658a4)));--ve-soft:var(--surface-soft,var(--central-soft,var(--canvas,#f4f6f9)));--ve-ink:var(--ink,var(--text,#203344));--ve-muted:var(--subtle,var(--muted,#617084));--ve-line:var(--line,var(--border,#d9e2e9));--ve-surface:var(--surface,var(--card,#fff));min-width:0;color:var(--ve-ink);line-height:1.45}
.vpn-editor *{box-sizing:border-box}.vpn-editor [hidden]{display:none!important}.vpn-editor h3{font-size:17px;margin:0 0 5px}.vpn-editor p{font-size:12px;color:var(--ve-muted);margin:7px 0;line-height:1.5}.vpn-editor label{display:grid!important;gap:5px!important;text-transform:none!important;letter-spacing:0!important;font-size:12px!important;min-width:0}.vpn-editor input:not([type=checkbox]),.vpn-editor select{width:100%;min-width:0;min-height:44px;font-size:16px}.vpn-editor button{min-height:40px;white-space:normal;cursor:pointer}.vpn-editor button:disabled{cursor:default;opacity:.65}.vpn-editor small{display:block;font-size:11px;color:var(--ve-muted);overflow-wrap:anywhere}.vpn-editor b{overflow-wrap:anywhere}.vpn-editor button:focus-visible,.vpn-editor summary:focus-visible{outline:2px solid var(--ve-accent);outline-offset:2px}
.vpn-editor-host{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;height:min(76dvh,820px);max-height:100%;box-sizing:border-box}.vpn-editor-host .vpn-editor{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;width:100%}.vpn-editor-steps{display:flex;list-style:none;padding:0;margin:0 0 12px;gap:10px;flex-shrink:0}.vpn-editor-steps li{display:flex;align-items:center;gap:8px;flex:1;font-size:12px;color:var(--ve-muted);padding:0 0 10px;border-bottom:2px solid var(--ve-line);min-width:0}.vpn-editor-steps li.active{color:var(--ve-accent);border-color:currentColor;font-weight:700}.vpn-editor-steps b{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;border:1px solid currentColor;border-radius:50%;font-size:12px}.vpn-editor-content{flex:1;min-height:0;overflow:auto;padding:0 2px}.vpn-editor-content>section{min-width:0}.vpn-editor[data-step="2"] .vpn-editor-content{display:flex;overflow:hidden}.vpn-editor-destinations{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px}
.vpn-editor-destination-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,42%);gap:14px;align-items:end;flex-shrink:0}.vpn-editor-destination-head p{margin:0}.vpn-editor-router{margin:0}.vpn-editor-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr);gap:12px;flex:1;min-height:0}.vpn-editor-picker,.vpn-editor-selected{min-width:0;min-height:0;border:1px solid var(--ve-line);border-radius:12px;background:var(--ve-surface);overflow:hidden}.vpn-editor-picker{display:flex;flex-direction:column}.vpn-editor-selected{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
.vpn-editor-manual{margin:0;padding:0 12px;border-bottom:1px solid var(--ve-line);flex-shrink:0;max-height:62%;overflow:auto;background:var(--ve-soft)}.vpn-editor-manual>summary{cursor:pointer;min-height:40px;padding:10px 0;font-size:12px;font-weight:650}.vpn-editor-manual[open]{padding-bottom:10px}.vpn-editor-builder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:5px}.vpn-editor-builder-actions{display:flex;align-items:end;gap:7px;flex-wrap:wrap;grid-column:1/-1}.vpn-editor-manual .vpn-editor-note{padding:0;background:transparent;margin-bottom:0}
.vpn-editor-catalog{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:10px;gap:8px}.vpn-editor-search{display:flex;align-items:end;gap:7px;flex-shrink:0}.vpn-editor-search label{flex:1}.vpn-editor-search>button{min-height:44px}.vpn-editor-catalog-tabs{display:flex;gap:5px;flex-shrink:0}.vpn-editor-catalog-tabs button{flex:1;border-radius:8px;min-height:36px;font-size:12px}.vpn-editor-catalog-tabs [aria-pressed=true],.vpn-editor-mobile-tabs [aria-pressed=true]{background:var(--ve-accent)!important;color:var(--on-primary,#fff)!important;border-color:var(--ve-accent)!important}
.vpn-editor [data-ve-catalog]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:7px}.vpn-editor-catalog-info{display:flex;justify-content:space-between;gap:8px;align-items:start;flex-wrap:wrap;flex-shrink:0}.vpn-editor-catalog-info summary{font-size:11px;color:var(--ve-muted);cursor:pointer}.vpn-editor-catalog-info details[open]{flex-basis:100%;max-height:100px;overflow:auto}.vpn-editor-results{display:flex;flex-direction:column;gap:7px;overflow:auto;min-height:0;flex:1;overscroll-behavior:contain;scrollbar-gutter:stable}.vpn-editor-results>article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--ve-line);border-radius:9px;padding:10px;font-size:13px;flex-shrink:0}.vpn-editor-results>article small{margin-top:3px}.vpn-editor-results .vpn-editor-row-actions{flex-direction:row;align-items:center;flex-wrap:nowrap}.vpn-editor-results button{min-height:36px;font-size:11px;padding:7px 10px}.vpn-editor-limit{flex-shrink:0;padding-top:4px}
.vpn-editor-list-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--ve-line)}.vpn-editor-list-head b{font-size:14px}.vpn-editor-list-head small{margin-top:4px}.vpn-editor-draft-badge{padding:4px 8px;font-size:10px;color:var(--ve-muted);background:var(--ve-soft);border-radius:20px}.vpn-editor-route-search{padding:10px 12px}.vpn-editor [data-ve-routes]{overflow:auto;min-height:0;padding:0 12px;overscroll-behavior:contain;scrollbar-gutter:stable}.vpn-editor-targets{list-style:none;padding:0;margin:0}.vpn-editor-targets>li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid var(--ve-line)}.vpn-editor-targets>li:last-child{border-bottom:0}.vpn-editor-targets small{margin-bottom:4px}.vpn-editor-targets b{display:block;font-size:14px}.vpn-editor-targets span{display:block;font-size:11px;color:var(--ve-muted);margin-top:3px}.vpn-editor-row-actions{display:flex;gap:5px;flex-wrap:wrap}.vpn-editor-targets .vpn-editor-row-actions{justify-content:flex-end}.vpn-editor-targets button{font-size:11px;padding:7px 9px}.vpn-editor-selected>.vpn-editor-note{border-radius:0;margin:0;padding:9px 12px;border-top:1px solid var(--ve-line);font-size:11px}
.vpn-editor-note,.vpn-editor-empty{padding:12px;background:var(--ve-soft);border-radius:9px;overflow-wrap:anywhere}.vpn-editor-empty{font-size:12px!important;text-align:center;margin:0!important}.vpn-editor-network{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.vpn-editor-network>div{border:1px solid var(--ve-line);padding:12px;border-radius:10px;background:var(--ve-soft)}.vpn-editor-network dt{font-size:12px;color:var(--ve-muted)}.vpn-editor-network dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}.vpn-editor-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vpn-editor-review article{border:1px solid var(--ve-line);padding:14px;border-radius:12px;min-width:0}.vpn-editor-review h4{margin:0 0 10px}.vpn-editor-review ul{padding-left:18px;font-size:12px}.vpn-editor-review summary{font-size:12px;cursor:pointer;padding:8px 0;min-height:36px}
.vpn-editor .vpn-editor-check{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;border:1px solid var(--ve-line);padding:12px;margin:16px 0;border-radius:10px;cursor:pointer}.vpn-editor-check input[type=checkbox]{appearance:auto!important;width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px!important;margin:0!important;position:static!important}
.vpn-editor-feedback{flex-shrink:0;max-height:76px;overflow:auto}.vpn-editor-error{color:var(--danger,#ba3447)!important;margin:6px 0!important}.vpn-editor-error:empty{display:none}.vpn-editor-foot{display:flex;justify-content:space-between;gap:10px;flex-shrink:0;margin-top:10px;padding:12px 0 0;background:var(--ve-surface);border-top:1px solid var(--ve-line)}.vpn-editor-foot>div{display:flex;gap:7px}.vpn-editor-foot button{min-height:44px}.vpn-editor-mobile-tabs{display:none}
html body #modalHost .modal.vpn-editor-dialog{width:min(1440px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;height:min(880px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important}.vpn-editor-dialog .modal-head{flex-shrink:0}.vpn-editor-dialog>.vpn-editor-host{height:auto!important;max-height:none!important}
dialog.vpn-editor-dialog{width:min(1440px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(880px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)}.vpn-editor-dialog .central-dialog-body:has(.vpn-editor-host){display:flex;flex-direction:column;min-height:0;overflow:hidden}.vpn-editor-dialog .vpn-editor-host{max-width:100%}
@media(max-width:760px){.vpn-editor-destination-head{grid-template-columns:minmax(0,1fr);gap:8px}.vpn-editor-destination-head>div p{display:none}.vpn-editor h3{font-size:15px}.vpn-editor-columns{display:flex;flex-direction:column}.vpn-editor-picker,.vpn-editor-selected{flex:1}.vpn-editor-mobile-tabs{display:flex;gap:7px;flex-shrink:0}.vpn-editor-mobile-tabs button{flex:1;min-height:44px}.vpn-editor[data-mobile-pane=select] .vpn-editor-selected,.vpn-editor[data-mobile-pane=selected] .vpn-editor-picker{display:none}.vpn-editor-selected{grid-template-rows:auto auto minmax(0,1fr) auto}.vpn-editor-network,.vpn-editor-review{grid-template-columns:minmax(0,1fr)}.vpn-editor-steps{gap:5px;margin-bottom:9px}.vpn-editor-steps li{font-size:10px;gap:5px;padding-bottom:8px}.vpn-editor-steps b{width:22px;height:22px;flex-basis:22px;font-size:11px}.vpn-editor .vpn-editor-foot{gap:6px;padding-top:9px;margin-top:8px}.vpn-editor-foot>div{gap:5px;min-width:0}.vpn-editor-foot button{font-size:11px;padding:8px!important}.vpn-editor-catalog{padding:8px}.vpn-editor-search>button{font-size:11px;max-width:100px}.vpn-editor-results>article{padding:9px;gap:8px}.vpn-editor-results button{min-height:44px}.vpn-editor-targets button{min-height:44px}.vpn-editor-builder{grid-template-columns:minmax(0,1fr);gap:8px}.vpn-editor-manual{max-height:75%}.vpn-editor-manual>summary{font-size:11px}.vpn-editor-catalog-tabs button{min-height:40px}.vpn-editor-list-head{padding:10px}.vpn-editor-note{font-size:11px}.vpn-editor-host{height:calc(100dvh - 110px)}html body #modalHost .modal.vpn-editor-dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)!important}dialog.vpn-editor-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}
@layer dmkTheme{html body .vpn-editor .vpn-editor-check input[type=checkbox]{appearance:auto!important;width:20px!important;height:20px!important;min-height:20px!important;min-width:20px!important;max-width:20px!important;flex:0 0 20px!important;margin:0!important;position:static!important;opacity:1!important}}
.isp-state.isp-state-muted{color:var(--subtle);background:transparent}.pvpn-overview-table td .btn+.btn{margin-left:6px}
.vpn-editor label{margin:0!important}.vpn-editor-picker:has(.vpn-editor-manual[open]) .vpn-editor-catalog{display:none}.vpn-editor-picker .vpn-editor-manual[open]{max-height:none;flex:1;min-height:0;overflow:auto}
html body #modalHost .vpn-editor-dialog .modal-head h2{font-size:18px!important;line-height:1.3;margin:0!important}
@layer dmkTheme{html body #modalHost .vpn-editor-dialog .modal-head{padding:12px 18px!important}html body #modalHost .vpn-editor-dialog .modal-head h2{margin:0!important;font-size:18px!important}}

.vpn-editor-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.vpn-editor-catalog{gap:6px}.vpn-editor-manual>summary{min-height:36px;padding:9px 0}
@media(max-height:700px) and (min-width:761px){.vpn-editor-destination-head>div p{display:none}.vpn-editor-steps{margin-bottom:8px}.vpn-editor-catalog-info{gap:4px}}
@media(max-width:760px){.vpn-editor-results .vpn-editor-row-actions{flex-direction:column;align-items:stretch}.vpn-editor-manual>summary{min-height:44px}}
@layer dmkTheme{@media(max-width:760px){html body .vpn-editor :is(input:not([type=checkbox]),select){font-size:16px!important}}}
