:root{--bg: #f2f3f5;--surface: #ffffff;--surface-2: #f8f9fb;--surface-3: #eceef1;--border: #e4e6eb;--divider: #eef0f3;--text: #16181d;--text-2: #3d434d;--muted: #5f6672;--faint: #8b919c;--accent: #2563eb;--accent-strong: #1d4ed8;--accent-soft: #e8effd;--on-accent: #ffffff;--warn: #8a4b00;--warn-soft: #fff1d6;--danger: #b42318;--danger-strong: #d92d20;--danger-soft: #fef3f2;--danger-border: #f3c1bc;--ok: #157f3c;--ok-soft: #e7f6ec;--overlay: rgba(16, 24, 40, .45);--shadow: 0 16px 36px rgba(16, 24, 40, .16);--toast: #16181d;--toast-text: #ffffff;--toast-link: #93b4ff;color-scheme:light}:root[data-theme=dark]{--bg: #0f1115;--surface: #181b21;--surface-2: #1e222a;--surface-3: #262b34;--border: #2a2f38;--divider: #232831;--text: #eef0f3;--text-2: #c9ced6;--muted: #9aa1ad;--faint: #6f7682;--accent: #4f8bff;--accent-strong: #3b78f5;--accent-soft: #1b2a47;--on-accent: #ffffff;--warn: #ffc56b;--warn-soft: #3a2a0d;--danger: #ff8a80;--danger-strong: #e5484d;--danger-soft: #3a1a1a;--danger-border: #5c2626;--ok: #5fd08a;--ok-soft: #133222;--overlay: rgba(0, 0, 0, .6);--shadow: 0 16px 36px rgba(0, 0, 0, .5);--toast: #eef0f3;--toast-text: #16181d;--toast-link: #1d4ed8;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}body{overscroll-behavior-y:none}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.muted{color:var(--muted)}.app{min-height:100dvh;padding-bottom:calc(260px + env(safe-area-inset-bottom))}.page{max-width:1200px;margin:0 auto;padding:calc(12px + env(safe-area-inset-top)) 16px 24px}.layout{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}.layout-main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:12px}.layout-aside{flex:1 1 320px;min-width:0;display:none;flex-direction:column;gap:16px;position:sticky;top:16px}.header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 4px}.header h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.02em}.header-sub{font-size:13px;color:var(--muted);margin-top:2px}.header-actions{display:flex;gap:8px}.icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;padding:0;flex:none}.icon-btn.plain{border:none;background:transparent;color:var(--muted);width:40px;height:40px}.icon-btn.plain:hover{background:var(--surface-3)}.avatar{width:44px;height:44px;border-radius:22px;border:none;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:16px;display:inline-flex;align-items:center;justify-content:center;text-transform:uppercase;flex:none}.back-header{display:flex;align-items:center;gap:4px;padding:4px 0 8px;margin-left:-8px}.back-header h1{margin:0;font-size:20px;font-weight:700}.back-btn{width:44px;height:44px;border:none;background:transparent;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;padding:0}.search{display:flex;align-items:center;gap:8px;height:50px;padding:0 6px 0 14px;background:var(--surface);border:1px solid var(--border);border-radius:14px}.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.search input{flex:1;min-width:0;border:none;outline:none;background:transparent;font-size:16px}.search-btn{height:38px;min-width:38px;border-radius:10px;border:none;background:var(--surface-3);display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;font-size:14px;font-weight:500}.search-btn.primary{background:var(--accent);color:var(--on-accent)}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 4px;min-height:32px}.check-label{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:500;background:none;border:none;padding:6px 0}.cb{width:22px;height:22px;border-radius:7px;border:2px solid var(--faint);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;color:var(--on-accent);transition:background .12s,border-color .12s}.cb.small{width:20px;height:20px;border-radius:6px}.cb[aria-checked=true],.cb[aria-checked=mixed]{background:var(--accent);border-color:var(--accent)}.cb-hit{width:44px;height:44px;margin:-11px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;padding:0;flex:none}.list{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}.empty{padding:40px 24px;text-align:center;color:var(--muted);line-height:1.5}.empty b{color:var(--text)}.row-wrap{position:relative;border-bottom:1px solid var(--divider);overflow:hidden}.row-wrap:last-child{border-bottom:none}.swipe-zone{position:relative;overflow:hidden}.row-wrap.danger:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--danger-strong);z-index:2}.swipe-actions{position:absolute;top:0;right:0;bottom:0;display:flex}.swipe-actions button{width:76px;border:none;color:#fff;font-size:12px;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.swipe-refresh{background:var(--accent)}.swipe-delete{background:var(--danger-strong)}.row{position:relative;background:var(--surface);display:flex;align-items:center;gap:12px;padding:12px 6px 12px 14px;min-height:64px;touch-action:pan-y;transition:transform .2s ease}.row.dragging{transition:none}.row-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;cursor:pointer}.row-title{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-title .sub{font-weight:400;color:var(--muted)}.row-meta{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.row-meta .err{color:var(--danger)}.row-actions{display:flex;align-items:center}.badge{font-size:11px;font-weight:700;border-radius:6px;padding:2px 7px;white-space:nowrap}.badge.warn{color:var(--warn);background:var(--warn-soft)}.badge.danger{color:#fff;background:var(--danger-strong)}.badge.ok{color:var(--ok);background:var(--ok-soft)}.badge.info{color:var(--accent);background:var(--accent-soft)}.badge.neutral{color:var(--muted);background:var(--surface-3);font-weight:600}.progress{height:4px;border-radius:2px;background:var(--accent-soft);overflow:hidden;flex:1;max-width:220px;position:relative}.progress:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;width:40%;background:var(--accent);border-radius:2px;animation:slide 1.2s ease-in-out infinite}@keyframes slide{0%{transform:translate(-100%)}to{transform:translate(250%)}}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.children{background:var(--surface-2);border-top:1px solid var(--divider)}.child{display:flex;flex-direction:column;gap:8px;padding:10px 14px 10px 50px;border-bottom:1px solid var(--divider)}.child:last-child{border-bottom:none}.child-line{display:flex;align-items:center;gap:12px}.child-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.child-title{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.child-title.off{color:var(--muted)}.child-note{font-size:12px;color:var(--muted)}.child-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:32px}.seg{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;background:var(--surface-3);border-radius:10px;padding:3px}.seg.three{grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.seg button{height:32px;border:none;border-radius:8px;background:transparent;font-size:13px;font-weight:500;color:var(--muted);padding:0 10px}.seg.big button{height:40px;font-size:14px}.seg button[aria-checked=true]{background:var(--surface);color:var(--text);font-weight:600;box-shadow:0 1px 2px #1018281a}.link-btn{border:none;background:transparent;color:var(--accent);font-size:13px;font-weight:600;padding:6px 0}.banner{margin:0 12px 12px;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;font-size:13px;line-height:1.45}.banner.danger{background:var(--danger-soft)}.banner.warn{background:var(--warn-soft)}.banner-text{display:flex;gap:10px;color:var(--text-2)}.banner-actions{display:flex;gap:8px;flex-wrap:wrap}.btn{height:50px;border-radius:14px;border:none;background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:600;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.dock-row .btn{white-space:nowrap;min-width:0;padding:0 12px}.btn:hover:not(:disabled){background:var(--accent-strong)}.btn.secondary:hover:not(:disabled),.btn.outline:hover:not(:disabled){background:var(--surface-3)}.btn.ghost:hover:not(:disabled){background:var(--surface-3)}.btn.danger:hover:not(:disabled){background:var(--danger)}.btn:disabled{background:var(--surface-3);color:var(--faint)}.btn.secondary{background:var(--surface-3);color:var(--text)}.btn.ghost{background:transparent;color:var(--muted);height:44px}.btn.danger{background:var(--danger-strong);color:#fff}.btn.small{height:40px;font-size:14px;border-radius:11px;padding:0 14px}.btn.outline{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn.block{width:100%}.split{display:flex;height:50px;border-radius:14px;overflow:visible;position:relative}.split>button{border:none;background:var(--accent);color:var(--on-accent);font-weight:600;font-size:15px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.split>button:first-child{border-radius:14px 0 0 14px;padding:0 12px 0 14px;flex:1}.split>button:nth-child(2){border-radius:0 14px 14px 0;width:40px;background:var(--accent-strong);border-left:1px solid rgba(255,255,255,.25)}.split>button:disabled{background:var(--surface-3);color:var(--faint);border-left-color:var(--border)}.dock{position:fixed;left:0;right:0;bottom:0;z-index:20;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--border);padding:10px 16px calc(12px + env(safe-area-inset-bottom))}.dock-inner{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:10px}.dock-row{display:flex;gap:8px}.dock-status{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px;min-height:18px}.dock-status b{color:var(--text)}.meter{height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden;flex:1;max-width:160px}.meter>div{height:100%;border-radius:3px;background:var(--accent)}.meter.warn>div{background:#e19b1b}.meter.danger>div{background:var(--danger-strong)}.level-warn{color:var(--warn)}.level-danger{color:var(--danger)}.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}.section-title{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:0 4px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;color:var(--muted);font-weight:500}.input{height:48px;border:1px solid var(--border);border-radius:12px;padding:0 14px;font-size:16px;background:var(--surface);outline:none;width:100%}.input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}textarea.input{height:96px;padding:12px 14px;resize:vertical}.hint{font-size:12px;color:var(--muted);line-height:1.4}.error-text{font-size:13px;color:var(--danger)}.menu-list{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}.menu-row{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;padding:8px 14px;border:none;border-bottom:1px solid var(--divider);background:transparent;text-align:left;font-size:15px}.menu-row:last-child{border-bottom:none}.menu-row .grow{flex:1;display:flex;flex-direction:column;gap:2px}.menu-row.danger{color:var(--danger)}.popover{position:absolute;z-index:30;min-width:250px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:6px}.popover button{width:100%;display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:none;border-radius:10px;background:transparent;text-align:left;font-size:14px}.popover button:hover:not(:disabled){background:var(--surface-3)}.popover button.danger{color:var(--danger)}.popover button:disabled{color:var(--faint)}.popover small{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:2px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:var(--overlay);display:flex;align-items:flex-end;justify-content:center;animation:fade .15s ease}@keyframes fade{0%{opacity:0}}.sheet{width:100%;max-width:520px;max-height:88dvh;overflow-y:auto;background:var(--surface);border-radius:24px 24px 0 0;padding:0 20px;display:flex;flex-direction:column;gap:16px;overscroll-behavior:contain;animation:up .2s ease}.sheet>*{flex-shrink:0}@keyframes up{0%{transform:translateY(40px)}}.sheet-grip{margin-top:10px;align-self:center;width:40px;height:5px;border-radius:3px;background:var(--border)}.sheet h2{margin:0;font-size:21px;font-weight:700;letter-spacing:-.01em}.sheet p{margin:0;font-size:15px;line-height:1.45;color:var(--text-2)}.stats{display:flex;flex-direction:column;gap:6px;background:var(--surface-2);border-radius:14px;padding:12px 14px}.stats div{display:flex;justify-content:space-between;font-size:14px}.stats span:first-child{color:var(--muted)}.stats span:last-child{font-weight:600}.sheet-head{position:sticky;top:0;z-index:1;background:var(--surface);display:flex;flex-direction:column;gap:8px;padding:6px 0 12px;margin-bottom:-4px}.sheet-actions{position:sticky;bottom:0;z-index:1;margin-top:auto;background:var(--surface);box-shadow:0 -10px 12px -10px #1018282e;padding:12px 0 calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px}.icon-tile{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex:none}.icon-tile.warn{background:var(--warn-soft);color:var(--warn)}.icon-tile.ok{background:var(--ok-soft);color:var(--ok)}.icon-tile.info{background:var(--accent-soft);color:var(--accent)}.radio-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);text-align:left;width:100%}.radio-row[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}.subnet-list{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;overflow:hidden}.subnet{display:flex;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--divider);font-size:14px;font-variant-numeric:tabular-nums}.subnet:last-child{border-bottom:none}.subnet.in-block{padding-left:24px}.subnet-block{display:flex;flex-direction:column;gap:2px;padding:10px 12px 6px;background:var(--surface-2);border-bottom:1px solid var(--divider);font-size:13px;font-variant-numeric:tabular-nums}.subnet-block span{font-size:12px;color:var(--muted)}.toast{position:fixed;left:16px;right:16px;bottom:calc(220px + env(safe-area-inset-bottom));z-index:50;max-width:480px;margin:0 auto;background:var(--toast);color:var(--toast-text);border-radius:14px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:var(--shadow);font-size:14px;animation:up .2s ease}.toast button{border:none;background:transparent;color:var(--toast-link);font-weight:600;padding:6px 4px;flex:none}.auth{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:32px 20px}.auth-card{width:100%;max-width:400px}.brand{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.brand-logo{width:72px;height:72px;border-radius:20px}.brand h1{margin:0;font-size:26px;font-weight:700;letter-spacing:-.02em}.drop{border:1.5px dashed var(--faint);border-radius:16px;background:var(--surface);padding:28px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;cursor:pointer}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tile{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px}.tile b{font-size:22px}.tile span{font-size:12px;color:var(--muted)}.dot{width:8px;height:8px;border-radius:4px;flex:none}@media (min-width: 960px){.app{padding-bottom:24px}.layout-aside{display:flex}.dock.mobile-only{display:none}.toast{bottom:24px}.overlay{align-items:center}.sheet{border-radius:24px}.sheet-grip{display:none}}.layout-aside .dock-row{flex-direction:column}.layout-aside .split>button:first-child{flex:1}.layout-aside .dock-row>.btn{flex:none!important}@media (min-width: 960px){.mobile-only-inline{display:none!important}}
