:root{
  color-scheme:light;
  --canvas:#f4f6fa;--surface:#fff;--surface2:#f8f9fc;--line:#e7eaf0;
  --ink:#1b2430;--muted:#7d8794;--blue:#2878f0;--blue-soft:#eaf2ff;
  --green:#20a76b;--green-soft:#e8f7ef;--orange:#d98b16;--orange-soft:#fff3dd;
  --red:#d85858;--red-soft:#ffeded;--purple:#7b61d1;--purple-soft:#f0edff;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif
}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}
body>main label{display:block;margin:18px 0 6px;color:#586474;font-size:13px;font-weight:600}body>main input{display:block;width:100%;margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit}body>main form button{margin-top:20px}
#admin-link[hidden]{display:none}.signed-in-user{font-size:10px;color:#667282}.logout-form{margin:0}.logout-button{border:0;background:none;color:var(--blue);font:600 10px inherit;cursor:pointer;padding:4px}
.admin-page{max-width:1120px;margin:0 auto;padding:36px 30px}.admin-header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}.admin-header h1{font-size:27px}.admin-create{padding:20px}.admin-create h2{margin:0 0 15px;font-size:15px}.admin-create form{display:grid;grid-template-columns:1fr 1.3fr 1fr auto;align-items:end;gap:12px}.admin-create label{font-size:10px;color:#788391}.admin-create input,.admin-create select{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:12px inherit}.admin-create button{white-space:nowrap}.admin-note,#admin-feedback{font-size:10px;color:#7d8794}.admin-actions{font-family:inherit!important}.admin-actions button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:5px 7px;margin:2px;color:#526173;font:10px inherit;cursor:pointer}.admin-actions button:hover{border-color:#9bbcf3;color:var(--blue)}
.app-shell{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:rgba(255,255,255,.88);backdrop-filter:blur(22px);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:27px 16px 18px;z-index:5}
.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;padding:0 8px 34px}
.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#3988ff,#1763d7);display:grid;place-items:center;color:#fff;font-size:14px;font-weight:700;box-shadow:0 5px 13px #2878f033}
.brand strong,.brand small,.connection-card strong,.connection-card small,.user-card strong,.user-card small{display:block}
.brand strong{font-size:14px;letter-spacing:-.2px}.brand small{font-size:9px;letter-spacing:1px;color:#929ba7;margin-top:4px;font-weight:600}
.workspace-label,.nav-label{font-size:9px;letter-spacing:1.15px;font-weight:700;color:#a2aab5;padding:0 11px;margin-bottom:9px}
.workspace{height:42px;display:flex;align-items:center;gap:9px;padding:0 11px;margin-bottom:30px;border:1px solid var(--line);background:var(--surface2);border-radius:10px;font-size:12px;font-weight:550}
.workspace-dot,.status-dot,.pulse{width:7px;height:7px;border-radius:50%;background:var(--green)}
.chevron{margin-left:auto;color:#a2aab5}
.nav-list{display:flex;flex-direction:column;gap:5px}
.nav-item{color:#788391;text-decoration:none;padding:11px 12px;border-radius:10px;display:flex;align-items:center;gap:11px;font-size:12px;font-weight:550;transition:background .15s,color .15s}
.nav-item:hover{background:#f4f6fa;color:var(--ink)}.nav-item.active{background:var(--blue-soft);color:var(--blue)}
.nav-icon{width:17px;text-align:center;font-size:16px;color:#8793a1}.nav-item.active .nav-icon{color:var(--blue)}
.nav-count{margin-left:auto;background:#dce9ff;padding:3px 7px;border-radius:8px;font-size:10px;color:#3d73c2}
.sidebar-bottom{margin-top:auto}.connection-card{display:flex;align-items:center;gap:10px;background:#f5f9ff;border:1px solid #e7effb;padding:12px;border-radius:11px;margin-bottom:15px}
.pulse{box-shadow:0 0 0 4px #20a76b18}.connection-card strong,.user-card strong{font-size:11px;font-weight:650}.connection-card small,.user-card small{font-size:10px;color:var(--muted);margin-top:3px}
.connection-card small{color:#6d8d7c}.user-card{display:flex;align-items:center;gap:9px;padding:7px 4px}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e7edf6;color:#53657d;font-size:10px;font-weight:700}.avatar.small{width:31px;height:31px}
.more{margin-left:auto;color:#8e99a7;font-size:18px}
.main-content{min-width:0;flex:1;margin-left:252px;padding:0 38px 28px;max-width:1750px}
.topbar{height:66px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6e9ef}
.breadcrumbs{color:#818b98;font-size:11px}.breadcrumbs span{padding:0 9px;color:#b5bdc7}.breadcrumbs strong{color:#35404d;font-weight:600}
.top-actions{display:flex;align-items:center;gap:17px}
.demo-pill{font-size:9px;letter-spacing:.55px;font-weight:700;color:#9c741f;border:1px solid #f0dfbb;background:#fff9ed;padding:7px 10px;border-radius:20px}
.demo-pill i,.live-label i,.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--orange);margin-right:6px}
.demo-pill.live{background:var(--green-soft);border-color:#d3eddf;color:#248658}.demo-pill.live i{background:var(--green)}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;padding:31px 0 23px}
.eyebrow{font-size:9px;font-weight:700;letter-spacing:.9px;color:#8993a0;margin:0 0 8px}.live-dot{background:var(--green);margin-left:7px;box-shadow:0 0 0 3px #20a76b17}
h1{font-size:27px;letter-spacing:-.9px;margin:0;font-weight:700}.subheading{color:#838d99;margin:7px 0 0;font-size:12px}
.refresh-button{background:var(--surface);color:#435061;border:1px solid #e2e6ed;border-radius:9px;padding:9px 13px;font:600 11px inherit;box-shadow:0 2px 5px #15223508;cursor:pointer}
.refresh-button:hover{border-color:#b9d0f7;background:#fcfdff}.refresh-button span{font-size:15px;color:var(--blue);vertical-align:-1px;margin-right:5px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.metric-card,.panel,.router-card{background:var(--surface);border:1px solid #e9ecf1;border-radius:14px;box-shadow:0 2px 8px #233b5907}
.metric-card{min-height:128px;padding:16px 17px}
.metric-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.6px;font-weight:700;color:#8993a0}
.metric-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:15px}
.cyan{color:#2d78df;background:#eaf3ff}.purple{color:var(--purple);background:var(--purple-soft)}.green{color:var(--green);background:var(--green-soft)}.amber{color:var(--orange);background:var(--orange-soft)}
.metric-value{display:flex;align-items:baseline;gap:7px;margin-top:6px}.metric-value strong{font-size:27px;letter-spacing:-1px;font-weight:700}.metric-value span{font-size:10px;color:#8993a0}
.metric-foot{display:flex;align-items:center;gap:7px;margin-top:8px;color:#7d8793;font-size:10px}.metric-foot .status-dot{width:6px;height:6px}.metric-muted{color:#8993a0!important}
.section-block{margin-top:29px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-heading h2,.panel h2{font-weight:700;font-size:15px;letter-spacing:-.25px;margin:0}.section-heading p,.panel-heading p{font-size:10px;color:#8993a0;margin:4px 0 0}
.text-link,.panel-footer a{color:var(--blue);text-decoration:none;font-size:10px;font-weight:600}.text-link span{font-size:14px;margin-left:4px}
.router-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.router-card{padding:16px 17px}
.router-card-head{display:flex;align-items:flex-start;justify-content:space-between}.router-name{display:flex;align-items:center;gap:11px}
.router-icon{width:35px;height:35px;border-radius:11px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;font-size:17px}
.router-name h3{font-size:13px;font-weight:650;margin:0}.router-name p{font:10px ui-monospace,SFMono-Regular,Menlo,monospace;color:#8a95a2;margin:4px 0 0}
.state-badge{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:20px;font-size:9px;font-weight:650}.state-badge.online{background:var(--green-soft);color:#248658}.state-badge.warning{background:var(--orange-soft);color:#a77419}.state-badge i{width:5px;height:5px;border-radius:50%;background:currentColor}
.router-location{font-size:10px;color:#8993a0;margin:12px 0 13px}.router-stats{display:grid;grid-template-columns:repeat(4,1fr);padding:12px 0;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}
.router-stat{border-right:1px solid #edf0f4;padding-left:12px}.router-stat:first-child{padding-left:0}.router-stat:last-child{border:0}.router-stat span{display:block;color:#929ba7;font-size:8px;letter-spacing:.4px;font-weight:650;margin-bottom:5px}.router-stat strong{font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#455160}
.router-card-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:11px}.resource{display:flex;align-items:center;gap:5px;font-size:9px;color:#8993a0}.resource strong{color:#576371;font:600 10px ui-monospace,SFMono-Regular,Menlo,monospace}
.resource-meter{width:38px;height:4px;background:#edf0f5;border-radius:8px;overflow:hidden;margin-left:2px}.resource-meter i{display:block;height:100%;background:var(--blue);border-radius:8px}
.details-link{color:var(--blue);text-decoration:none;font-size:10px;font-weight:600}.router-error{font-size:10px;color:var(--red);margin:8px 0 0}
.lower-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:13px;margin-top:27px}.panel{min-width:0;overflow:hidden}
.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 17px 13px}.panel-title{display:flex;align-items:center;gap:9px}.panel-title h2{font-size:14px}
.heading-icon{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-size:13px}.live-label{font-size:8px;letter-spacing:.6px;font-weight:700;color:#248658}.live-label i{width:5px;height:5px;background:var(--green);box-shadow:0 0 0 3px #20a76b16}
.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}
th{text-align:left;font-size:8px;letter-spacing:.55px;font-weight:700;color:#929ba7;padding:10px;background:#fafbfd;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4}
th:first-child,td:first-child{padding-left:17px}td{font-size:10px;color:#55616f;padding:11px 10px;border-bottom:1px solid #f0f2f5}
td:nth-child(1){font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#3d4856}td:nth-child(3),td:nth-child(5){font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#788391;font-size:9px}
.table-router{color:#87919e!important;font-family:inherit!important}.peer-state{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:#248658}.peer-state.down{color:var(--red)}.peer-state i{width:5px;height:5px;border-radius:50%;background:currentColor}
.empty-row{color:#98a2ad!important;text-align:center;font-family:inherit!important;padding:19px}
.panel-footer{display:flex;justify-content:space-between;align-items:center;padding:11px 17px;color:#8b95a1;font-size:9px}.tunnel-list{padding:0 16px}
.tunnel-row{display:flex;align-items:center;gap:10px;padding:11px 1px;border-bottom:1px solid #f0f2f5}.tunnel-kind{width:29px;height:29px;border:1px solid #e8edf3;border-radius:9px;display:grid;place-items:center;color:#738297;font-size:13px;flex-shrink:0}
.tunnel-info{min-width:0;flex:1}.tunnel-info strong{display:block;font:600 10px ui-monospace,SFMono-Regular,Menlo,monospace;color:#465261}.tunnel-info small{display:block;color:#8b95a1;font-size:9px;margin-top:4px;overflow:hidden;text-overflow:ellipsis}
.tunnel-trailing{text-align:right}.tunnel-trailing strong{display:block;font:500 9px ui-monospace,SFMono-Regular,Menlo,monospace;color:#76818f}.tunnel-trailing small{display:flex;align-items:center;justify-content:flex-end;gap:4px;color:#248658;font-size:9px;margin-top:4px}.tunnel-trailing small.down{color:var(--red)}.tunnel-trailing i{width:5px;height:5px;border-radius:50%;background:currentColor}
.page-footer{display:flex;justify-content:space-between;color:#98a1ad;font-size:9px;padding:21px 1px 0}.page-footer b{font-weight:500;color:#818c99;margin-left:5px}
@media(max-width:1100px){.main-content{padding:0 24px 24px}.sidebar{width:220px}.main-content{margin-left:220px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lower-grid{grid-template-columns:1fr}}
@media(max-width:720px){.app-shell{display:block}.sidebar{inset:auto 0 0;width:100%;height:66px;padding:6px 8px;background:rgba(255,255,255,.94);border:0;border-top:1px solid var(--line);backdrop-filter:blur(20px)}.brand,.workspace-label,.workspace,.nav-label,.sidebar-bottom{display:none}.nav-list{height:100%;display:flex;flex-direction:row;justify-content:space-around;gap:2px}.nav-item,.nav-item.active{height:52px;min-width:51px;flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:3px 2px;background:transparent;font-size:8px;color:#8993a0}.nav-item.active{color:var(--blue)}.nav-icon{font-size:16px}.nav-count{display:none}.main-content{margin:0;padding:0 14px 88px}.topbar{height:55px}.breadcrumbs{font-size:10px}.top-actions{gap:9px}.demo-pill{font-size:7px;padding:6px 8px}.page-heading{align-items:flex-start;gap:13px;flex-direction:column;padding:23px 0 17px}.page-heading h1{font-size:25px}.subheading{max-width:350px;line-height:1.5}.refresh-button{align-self:flex-end;margin-top:-3px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{padding:12px;min-height:113px}.metric-top{font-size:7px}.metric-icon{width:25px;height:25px}.metric-value strong{font-size:23px}.metric-value span{font-size:9px}.metric-foot{font-size:8px;line-height:1.3}.section-block{margin-top:23px}.router-grid{grid-template-columns:1fr}.router-card{padding:14px}.router-stats{grid-template-columns:repeat(4,1fr)}.router-stat{padding-left:6px}.router-stat span{font-size:7px}.router-stat strong{font-size:9px}.router-card-bottom{gap:7px}.resource-meter{width:25px}.lower-grid{margin-top:22px}.tunnel-list{display:block}.panel-footer{gap:8px;flex-wrap:wrap}.page-footer{gap:7px;flex-direction:column}.panel-heading{padding:14px}.table-wrap{margin-left:0;margin-right:0}}
@media(max-width:720px){.admin-page{padding:24px 14px}.admin-header{align-items:flex-start;gap:12px;flex-direction:column}.admin-create form{grid-template-columns:1fr}.admin-actions button{font-size:9px}.signed-in-user{display:none}}
