#vpn-section { scroll-margin-top:5.5rem; }
.vpn-heading { align-items:center; flex-direction:row; }
.vpn-heading-actions { display:flex; align-items:center; gap:.8rem; }
.vpn-button,.vpn-action,.vpn-route { font:inherit; cursor:pointer; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--surface-solid); color:var(--text); }
.vpn-button { padding:.55rem .85rem; font-size:.82rem; font-weight:650; white-space:nowrap; }
.vpn-add-mark { font-size:1.15em; margin-right:.2rem; }
.vpn-button:hover,.vpn-action:hover { background:var(--surface-hover); }
.vpn-button:disabled,.vpn-action:disabled,.vpn-route:disabled { opacity:.5; cursor:wait; }
.vpn-table { min-width:925px; font-size:.78rem; }
.vpn-table th,.vpn-table td { padding:.35rem .65rem; vertical-align:middle; }
.vpn-table thead th { padding:.7rem .65rem; font-size:.7rem; white-space:nowrap; }
.vpn-table .vpn-name { max-width:135px; min-width:85px; padding-left:1rem; font-size:.82rem; font-weight:650; overflow-wrap:anywhere; }
.vpn-secondary td { border-top:0; padding-top:0; padding-bottom:.6rem; }
.vpn-account td:not([rowspan]) { padding-top:.6rem; }
.vpn-connection { white-space:nowrap; }
.vpn-protocol { display:inline-block; width:2.7rem; color:var(--muted); font-size:.62rem; font-weight:600; letter-spacing:.03em; }
.vpn-ip { font-family:var(--font-mono); font-size:.75rem; user-select:all; }
.vpn-numbers { font-family:var(--font-mono); font-size:.73rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.vpn-numbers small { margin-left:.3rem; color:var(--muted); font-size:.61rem; }
.vpn-up { margin-right:.65rem; }
.vpn-status { display:inline-flex; align-items:center; gap:.35rem; color:var(--muted); font-size:.69rem; white-space:nowrap; }
.vpn-status .status-dot { width:5px; height:5px; background:var(--muted); opacity:.6; }
.vpn-connected { color:var(--green); }
.vpn-connected .status-dot { background:var(--green); opacity:1; }
.vpn-row-actions { display:flex; gap:.3rem; }
.vpn-action { display:grid; place-items:center; width:31px; height:31px; padding:6px; }
.vpn-action svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.vpn-delete { color:var(--muted); }
.vpn-delete:hover { color:var(--red); }
.vpn-route-cell { width:90px; padding-right:1rem !important; }
.vpn-route { padding:.4rem .55rem; font-size:.73rem; font-weight:700; min-width:74px; text-align:center; white-space:nowrap; }
.vpn-route-direct { color:var(--muted); background:var(--surface-muted); }
.vpn-route-sgp1 { color:var(--green); border-color:color-mix(in srgb,var(--green) 50%,transparent); background:color-mix(in srgb,var(--green) 13%,var(--surface-solid)); }
.vpn-route-warp { color:var(--orange); border-color:color-mix(in srgb,var(--orange) 50%,transparent); background:color-mix(in srgb,var(--orange) 13%,var(--surface-solid)); }
.vpn-route-note { display:block; margin-top:.25rem; color:var(--muted); font-size:.6rem; line-height:1.3; }
.vpn-route-note:empty { display:none; }
.vpn-empty { padding:1.5rem 1rem !important; color:var(--muted); text-align:center; }
.vpn-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.2rem .8rem; margin-top:.6rem; color:var(--muted); font-size:.7rem; line-height:1.5; }
.vpn-footer,.vpn-help { position:relative; }
.vpn-help { margin:.25rem 0 0; color:var(--muted); font-size:.7rem; line-height:1.5; }
.vpn-notice { margin:.5rem 0 0; color:var(--muted); font-size:.8rem; line-height:1.5; }
.vpn-notice:empty { display:none; }
.vpn-error { color:var(--red); }
.vpn-stale .vpn-numbers,.vpn-stale [data-cell="status"] { opacity:.6; }
.vpn-dialog { box-sizing:border-box; width:min(380px,calc(100vw - 2rem)); padding:1.35rem; border:1px solid var(--line-strong); border-radius:12px; color:var(--text); background:var(--surface-solid); box-shadow:var(--shadow); }
.vpn-dialog::backdrop { background:#0009; backdrop-filter:blur(5px); }
.vpn-dialog h3 { margin:0 0 1rem; font-size:1.1rem; }
.vpn-dialog p { color:var(--muted); font-size:.82rem; line-height:1.5; margin:0 0 1rem; }
.vpn-dialog label { display:block; margin-bottom:.45rem; font-size:.8rem; font-weight:600; }
.vpn-dialog input:not([type=radio]) { width:100%; box-sizing:border-box; font:inherit; font-size:.85rem; padding:.65rem .75rem; border:1px solid var(--line-strong); border-radius:var(--radius); color:var(--text); background:var(--page-bg); }
.vpn-dialog small { display:block; color:var(--muted); margin-top:.45rem; font-size:.69rem; line-height:1.5; }
.vpn-dialog-actions { display:flex; justify-content:flex-end; gap:.5rem; margin-top:1.2rem; }
.vpn-dialog .vpn-error { margin:.65rem 0 0; font-size:.75rem; }
.vpn-dialog .vpn-error:empty { display:none; }
.vpn-primary { background:var(--text); color:var(--page-bg); }
.vpn-primary:hover { background:color-mix(in srgb,var(--text) 90%,var(--page-bg)); }
.vpn-danger { color:var(--red); border-color:color-mix(in srgb,var(--red) 40%,transparent); }
.vpn-protocol-choice { display:grid; grid-template-columns:1fr 1fr; gap:.35rem; padding:4px; margin:0 0 1.15rem; border:1px solid var(--line); border-radius:var(--radius); background:var(--page-bg); }
.vpn-protocol-choice label { position:relative; margin:0; font-size:.8rem; cursor:pointer; }
.vpn-protocol-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.vpn-protocol-choice span { display:block; text-align:center; padding:.6rem; border:1px solid transparent; border-radius:calc(var(--radius) - 2px); color:var(--muted); }
.vpn-protocol-choice input:checked + span { background:var(--surface-solid); color:var(--text); border-color:var(--line-strong); }
.vpn-protocol-choice input:focus-visible + span { outline:2px solid var(--text); outline-offset:2px; }
.vpn-optional { float:right; font-size:.68rem; color:var(--muted); font-weight:400; }
.vpn-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:650px) {
 .vpn-heading-actions { gap:.45rem; }
 #vpn-updated { display:none; }
 .vpn-heading { gap:.6rem; }
 .vpn-dialog { padding:1.15rem; }
 .vpn-table .vpn-name { position:sticky; left:0; z-index:1; background:var(--surface-solid); }
}
