:root{--ink:#13201d;--muted:#6d7a76;--paper:#f4f2eb;--card:#fffdf8;--line:#d9ddd6;--green:#174f43;--mint:#b9e6cf;--orange:#ed7041;--red:#a83d32;--shadow:0 24px 70px rgba(21,39,34,.12)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}body{margin:0;min-height:100vh;background:radial-gradient(circle at 85% 10%,rgba(185,230,207,.38),transparent 30rem),var(--paper)}button,input,select{font:inherit}button{cursor:pointer}.auth-page{display:grid;place-items:center;padding:32px}.auth-shell{width:min(1080px,100%);display:grid;grid-template-columns:1.08fr .92fr;min-height:650px;background:var(--green);border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.brand-block{padding:74px;display:flex;flex-direction:column;justify-content:center;color:#eef7f1;position:relative;overflow:hidden}.brand-block:after{content:"";position:absolute;width:380px;height:380px;border:1px solid rgba(255,255,255,.15);border-radius:50%;right:-160px;bottom:-160px;box-shadow:0 0 0 54px rgba(255,255,255,.04),0 0 0 108px rgba(255,255,255,.025)}.mark{display:flex;width:54px;height:54px;gap:6px;transform:rotate(-12deg);margin-bottom:54px}.mark i{display:block;background:var(--mint);border-radius:20px;width:16px}.mark i:first-child{height:35px;margin-top:19px}.mark i:last-child{height:54px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:12px;font-weight:800;margin:0 0 14px;color:var(--orange)}h1,h2,h3,p{margin-top:0}.brand-block h1{font:600 clamp(42px,5vw,70px)/.98 Georgia,serif;letter-spacing:-.04em;margin-bottom:28px}.lede{font-size:17px;line-height:1.65;color:var(--muted);max-width:590px}.brand-block .lede{color:#c4d8d1;max-width:420px}.auth-card{background:var(--card);padding:72px 64px;display:flex;flex-direction:column;justify-content:center}.auth-card h2,.dialog-card h2{font:600 36px/1.1 Georgia,serif;margin-bottom:10px}.muted{color:var(--muted);line-height:1.55}.step{font-weight:800;color:var(--orange);font-size:13px;letter-spacing:.15em;margin-bottom:38px}.step span{color:#aeb8b3}.live-label{font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;margin-bottom:38px}.live-label span,.status i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#32a472;margin-right:8px;box-shadow:0 0 0 4px rgba(50,164,114,.12)}.stack{display:grid;gap:20px;margin-top:24px}.stack.compact{margin-top:20px}.stack label,.form-grid label{font-size:13px;font-weight:750;display:grid;gap:8px}.stack input,.form-grid input,.form-grid select{width:100%;border:1px solid var(--line);background:#fff;padding:13px 14px;border-radius:9px;color:var(--ink);outline:none}.stack input:focus,.form-grid input:focus,.form-grid select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(23,79,67,.1)}.primary,.ghost,.danger,.text-button{border:0;border-radius:9px;font-weight:750}.primary{background:var(--green);color:white;padding:14px 18px;display:flex;justify-content:space-between;align-items:center}.primary:hover{background:#0d3c32}.ghost{background:transparent;border:1px solid var(--line);padding:9px 14px;color:var(--ink)}.danger{background:#f9e8e5;color:var(--red);padding:9px 13px}.text-button{background:transparent;color:var(--green);padding:4px 0;text-align:left}.alert{background:#f9e7e3;color:#7c2d25;border-left:3px solid var(--orange);padding:12px 14px;border-radius:5px;font-size:14px;margin-top:15px}.alert.wide{margin:0 0 24px}.secret-box{background:#eef2ec;border:1px solid var(--line);border-radius:10px;padding:16px;display:grid;gap:4px;margin-top:18px}.secret-box small{color:var(--muted);margin-top:7px}.secret-box code{font-size:15px;letter-spacing:.09em;word-break:break-all}.uri{display:block;word-break:break-all;background:#eee;padding:10px;margin-top:8px;border-radius:6px;font-size:11px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1180px)/2));background:rgba(244,242,235,.82);backdrop-filter:blur(16px);position:sticky;top:0;z-index:5}.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:18px}.mark.small{width:27px;height:27px;margin:0;gap:3px}.mark.small i{width:8px;border-radius:6px}.mark.small i:first-child{height:18px;margin-top:9px}.mark.small i:last-child{height:27px}.top-actions{display:flex;align-items:center;gap:18px}.top-actions form{margin:0}.status{font-size:12px;font-weight:750;color:var(--muted)}.status.online i{background:#32a472}.status.offline i{background:var(--orange);box-shadow:0 0 0 4px rgba(237,112,65,.12)}.status.checking i{background:#c9a339}.page{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:72px 0}.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:48px}.hero h1{font:600 clamp(48px,7vw,82px)/.95 Georgia,serif;letter-spacing:-.045em;margin-bottom:20px}.hero .lede{margin-bottom:0}.add-button{gap:30px;min-width:176px}.overview{display:grid;grid-template-columns:1.3fr .7fr 1fr;border:1px solid var(--line);border-radius:14px;background:rgba(255,253,248,.7);margin-bottom:48px}.overview article{padding:22px 24px;border-right:1px solid var(--line);display:grid;gap:8px;min-width:0}.overview article:last-child{border-right:0}.overview span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:750}.overview strong{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.section-heading h2{font:600 28px Georgia,serif;margin:0}.section-heading p{font-size:13px;color:var(--muted);margin:0}.tunnel-list{border-top:1px solid var(--ink)}.tunnel-row{display:grid;grid-template-columns:84px minmax(160px,1fr) minmax(280px,1.4fr) auto;gap:24px;align-items:center;padding:20px 4px;border-bottom:1px solid var(--line)}.protocol{width:64px;padding:7px 4px;text-align:center;text-transform:uppercase;letter-spacing:.08em;border-radius:20px;font-size:10px;font-weight:850;background:#dfeae6;color:var(--green)}.protocol.udp{background:#f5e9d1;color:#825715}.protocol.both{background:#eadff0;color:#633d78}.tunnel-name{display:grid;gap:5px}.tunnel-name span{color:var(--muted);font-size:12px}.route{display:flex;align-items:center;gap:12px;color:var(--muted)}.route code{font-size:13px;background:#e9ebe5;color:var(--ink);padding:7px 9px;border-radius:5px}.empty-state{text-align:center;border:1px dashed #b9c0ba;border-radius:16px;padding:72px 20px;background:rgba(255,255,255,.3)}.empty-state h3{font:600 25px Georgia,serif;margin-bottom:8px}.empty-state p{color:var(--muted)}.empty-glyph{display:flex;gap:7px;justify-content:center;align-items:center;height:48px;margin-bottom:18px}.empty-glyph span{width:9px;background:var(--green);border-radius:5px}.empty-glyph span:nth-child(1){height:20px}.empty-glyph span:nth-child(2){height:42px}.empty-glyph span:nth-child(3){height:30px}dialog{border:0;padding:0;border-radius:18px;box-shadow:var(--shadow);width:min(620px,calc(100% - 32px));background:var(--card)}dialog::backdrop{background:rgba(12,29,24,.58);backdrop-filter:blur(4px)}.dialog-card{padding:34px}.dialog-head{display:flex;justify-content:space-between}.dialog-head .eyebrow{margin-bottom:7px}.close{border:0;background:transparent;font-size:30px;color:var(--muted);align-self:flex-start}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}.form-grid .full{grid-column:1/-1}.form-grid small{font-weight:500;color:var(--muted)}.check{display:flex!important;grid-template-columns:auto 1fr;align-items:start;padding:14px;background:#eef2ec;border-radius:9px}.check input{width:17px;margin-top:3px}.check span{display:grid;gap:3px}.hidden{display:none!important}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:28px}.dialog-actions .primary{gap:28px}
@media(max-width:800px){.auth-page{padding:0}.auth-shell{display:block;border-radius:0;min-height:100vh}.brand-block{padding:45px 30px}.brand-block .mark{margin-bottom:34px}.brand-block h1{font-size:44px}.auth-card{padding:42px 30px}.hero{display:block}.hero .add-button{margin-top:28px}.overview{grid-template-columns:1fr}.overview article{border-right:0;border-bottom:1px solid var(--line)}.overview article:last-child{border-bottom:0}.section-heading{display:block}.section-heading p{margin-top:8px}.tunnel-row{grid-template-columns:72px 1fr auto}.route{grid-column:2/-1;grid-row:2}.page{padding-top:46px}.status{font-size:0}.status i{margin:0}.form-grid{grid-template-columns:1fr}.form-grid label{grid-column:1!important}}

