﻿   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            height: 100vh;
            overflow: hidden;
            margin: 0;
            padding: 0;
            font-size: 13px;
            line-height: 1.5;
        }

        .container {
            height: 99vh;
            margin: 0.5vh auto;
            width: 99vw;
            display: flex;
            flex-direction: column;
            background: #f5f5f5;
            border-radius: 4px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }

        .filter-container {
            background: #fff;
            border-bottom: 1px solid #e0e0e0;
            border-radius: 4px 4px 0 0;
            padding: 6px 10px;
        }

        .filter-row {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
        }

        .filter-row:last-child {
            margin-bottom: 0;
        }

        .filter-label {
            font-size: 11px;
            font-weight: 600;
            color: #333;
            min-width: 48px;
            margin-right: 6px;
        }

        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .filter-option {
            padding: 2px 8px;
            cursor: pointer;
            font-size: 11px;
            color: #666;
            background: #f5f5f5;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .filter-option:hover {
            background: #e8f4ff;
            color: #1890ff;
            border-color: #1890ff;
        }

        .filter-option.active {
            background: #1890ff;
            color: #fff;
            border-color: #1890ff;
        }

        .content {
            flex: 1;
            overflow-y: auto;
            padding: 8px 12px;
            background: #fff;
            border-radius: 0 0 4px 4px;
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .host-section {
            margin-bottom: 4px;
        }

        .host-row {
            padding: 2px 0;
            line-height: 1.6;
        }

        .host-label {
            color: #333;
            font-weight: 600;
        }

        .host-label .host-ip {
            color: #888;
            font-weight: normal;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            margin-left: 4px;
        }

        .host-links {
            display: inline;
        }

        .text-link {
            color: #1890ff;
            text-decoration: none;
        }

        .text-link:hover {
            text-decoration: underline;
        }

        .link-sep {
            color: #ccc;
            margin: 0 2px;
        }

        .region-wrapper {
            position: relative;
            padding-top: 2px;
            margin-bottom: 10px;
            border-bottom: 1px dashed #eee;
            padding-bottom: 6px;
        }

        .region-wrapper:last-child {
            border-bottom: none;
        }

        .region-badge {
            display: inline-block;
            background: #52c41a;
            color: #fff;
            font-size: 11px;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 3px;
            margin-bottom: 4px;
        }

        .incus-inline-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 24px;
            padding: 4px 0 6px;
            line-height: 1.6;
        }

        .incus-item {
            display: inline-flex;
            align-items: baseline;
            white-space: nowrap;
            gap: 10px;
            margin-right: 28px;
        }

        .incus-item:last-child {
            margin-right: 0;
        }

        .incus-num {
            color: #888;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            font-weight: 600;
        }

        .incus-link {
            font-weight: 500;
        }

        .toolbar-row {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 4px;
        }

        .edit-toggle {
            padding: 2px 10px;
            font-size: 11px;
            border: 1px solid #1890ff;
            background: #fff;
            color: #1890ff;
            border-radius: 10px;
            cursor: pointer;
        }

        .edit-toggle.active {
            background: #1890ff;
            color: #fff;
        }

        .inline-actions {
            display: inline-flex;
            gap: 2px;
            margin-left: 4px;
        }

        .inline-btn {
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
            padding: 0 3px;
            border-radius: 3px;
        }

        .inline-btn.edit-btn { color: #1890ff; }
        .inline-btn.del-btn { color: #ff4d4f; }
        .inline-btn.add-btn {
            color: #52c41a;
            font-size: 11px;
            padding: 2px 8px;
            border: 1px dashed #52c41a;
            border-radius: 10px;
            background: #f6ffed;
            margin-left: 8px;
        }

        .edit-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.35);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .edit-modal.show {
            display: flex;
        }

        .edit-modal-box {
            background: #fff;
            border-radius: 6px;
            padding: 16px 18px;
            width: 90%;
            max-width: 420px;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .edit-modal-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .form-row {
            margin-bottom: 8px;
        }

        .form-row label {
            display: block;
            font-size: 11px;
            color: #666;
            margin-bottom: 3px;
        }

        .form-row input,
        .form-row select {
            width: 100%;
            padding: 5px 8px;
            font-size: 12px;
            border: 1px solid #d9d9d9;
            border-radius: 4px;
        }

        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 14px;
        }

        .btn-cancel, .btn-save {
            padding: 4px 14px;
            font-size: 12px;
            border-radius: 4px;
            cursor: pointer;
            border: 1px solid #d9d9d9;
            background: #fff;
        }

        .btn-save {
            background: #1890ff;
            color: #fff;
            border-color: #1890ff;
        }

        .region-badge-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }

