:root{color-scheme:light;--ink:#24203e;--muted:#554770;--paper:#f8f6ff;--purple:#592ec5;--line:#e7dff9;--mint:#0c5e50;--mint-bg:#c9f6e5;font:16px/1.5 Inter,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}header{display:flex;align-items:center;justify-content:space-between;max-width:1100px;margin:auto;padding:1.25rem 1.5rem}.wordmark{font-size:1.6rem;color:var(--purple);font-weight:800;text-decoration:none}main{max-width:1100px;margin:auto;padding:2rem 1.5rem 5rem}h1,h2,p{margin:0 0 .9rem}h1{font-size:clamp(2rem,6vw,3.15rem);line-height:1.08;letter-spacing:-.05em}h2{font-size:1.2rem}.eyebrow{color:var(--purple);text-transform:uppercase;letter-spacing:.1em;font-weight:750;font-size:.8rem}.heading,.actions{display:flex;align-items:center;justify-content:space-between;gap:1rem}.heading{margin-bottom:1.6rem}.layout,.landing{display:grid;grid-template-columns:1fr 1.4fr;gap:1rem}.card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:1.4rem;color:var(--ink)}.auth{max-width:440px}label{font-weight:650;display:grid;gap:.35rem;margin:0 0 1rem}input{font:inherit;border:1px solid #ad9ccd;border-radius:10px;padding:.55rem;width:100%}.button{font:inherit;font-weight:720;text-decoration:none;display:inline-flex;justify-content:center;border:0;padding:.58rem 1rem;min-height:42px;align-items:center;cursor:pointer;border-radius:999px;background:var(--purple);color:white}.button:disabled{opacity:.65;cursor:wait}.quiet{background:#ebe3ff;color:#462497}.badge{background:var(--mint-bg);color:var(--mint);border-radius:999px;padding:.45rem .85rem;font-weight:720}.profile{display:flex;justify-content:space-between;gap:.7rem;padding:.85rem 0;border-bottom:1px solid var(--line)}.profile small{display:block;color:var(--muted)}.error{color:#a42958}dialog{max-width:29rem;width:calc(100% - 32px)}dialog::backdrop{background:#27223c88}.landing{align-items:center;padding-top:clamp(1rem,8vw,6rem)}.hero p:not(.eyebrow){max-width:35ch;color:var(--muted);margin:1rem 0 1.5rem}.shape{height:260px;position:relative;display:grid;place-items:center}.shape i{width:180px;height:180px;position:absolute;border-radius:50%;background:#d8c3ff;transform:translateX(-38px)}.shape i:nth-child(2){background:#b9efd9;transform:translate(38px,-28px);mix-blend-mode:multiply}.shape i:nth-child(3){background:#ffd2e6;transform:translate(26px,45px);mix-blend-mode:multiply}
@media(max-width:720px){.layout,.landing{grid-template-columns:1fr}.heading{align-items:flex-start}.profile{align-items:center}}

.hint {font-size:.88rem;color:var(--muted);min-height:1.2rem}
.profile-card {border-bottom:1px solid var(--line);padding:.65rem 0}
.profile-card .profile {border-bottom:0;padding:.3rem 0}
.profile-card summary {cursor:pointer;color:var(--purple);font-size:.86rem;margin:.55rem 0}
.profile-actions {display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}
.profile-actions .badge {font-size:.75rem;white-space:nowrap}
.profile-actions .failed {background:#fce1ed;color:#872a57}
.facts {display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem .8rem;font-size:.84rem;background:#f8f5ff;border-radius:12px;padding:.7rem;margin:.55rem 0 1rem}
.facts[hidden] {display:none}
.facts dt {color:var(--muted)}
.facts dd {margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:500px){.profile-actions{justify-content:flex-start}.profile-card .profile{flex-wrap:wrap}.facts{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}}

.profile-card .profile {flex-wrap:wrap;align-items:flex-start}
.profile-card .profile-actions {justify-content:flex-start}
.profile-actions .button,.profile-actions .compact {min-height:36px;padding:.35rem .7rem;font-size:.83rem}
.delete-action {color:#86284c}
.danger {background:#86284c;color:#fff}

.traffic-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.traffic-card{border-radius:22px;padding:1.1rem 1.35rem;color:#29204d}
.traffic-card.ingress{background:#e9dfff}.traffic-card.egress{background:#d7f5ec;color:#154c43}
.traffic-title{display:flex;align-items:center;gap:.5rem}
.traffic-title>span:first-child{display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:50%;background:#ffffffa0;font-weight:800}
.traffic-title h2{margin:0}
.traffic-state{margin-left:auto;font-size:.78rem;font-weight:750;background:#ffffffb5;padding:.2rem .57rem;border-radius:999px}
.traffic-volumes{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:.8rem 0}
.traffic-volumes small{display:block;font-size:.82rem}
.traffic-volumes strong{display:block;font-variant-numeric:tabular-nums;font-size:1.42rem}
.traffic-card p{margin:0;font-size:.84rem}
#traffic-since{margin:.65rem 0 1rem}
.file-picker input::file-selector-button{border:0;border-radius:8px;background:#ebe3ff;color:#462497;padding:.4rem .65rem;font-weight:750;margin-right:.45rem;cursor:pointer}
.profile-card .profile{align-items:center;justify-content:space-between}
.profile-name{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.protocol{font-size:.71rem;font-weight:720;padding:.18rem .5rem;color:#482990;background:#eee7ff;border-radius:999px}
.profile-card .profile-actions{margin:.75rem 0 .2rem}
.profile-actions>.button{min-width:60px}
.profile-menu{position:relative}
.profile-card .profile-menu summary{list-style:none;display:flex;align-items:center;min-height:36px;margin:0;padding:.35rem .7rem;border-radius:999px;background:#f3eff8;color:#574267;font-weight:700}
.profile-card .profile-menu summary::-webkit-details-marker{display:none}
.profile-menu summary::after{content:'▾';margin-left:.35rem}
.menu-actions{position:absolute;z-index:3;top:calc(100% + .3rem);left:0;display:grid;gap:.35rem;min-width:9rem;border:1px solid var(--line);border-radius:13px;padding:.5rem;background:white;box-shadow:0 8px 20px #29204d22}
@media(max-width:530px){.traffic-overview{grid-template-columns:1fr}.menu-actions{left:auto;right:0}}
