        :root {
            --bg: #f4efe5;
            --bg-2: #efe8d9;
            --panel: rgba(255,255,255,0.9);
            --ink: #18221f;
            --muted: #64726c;
            --accent: #0f766e;
            --warning: #c2410c;
            --danger: #b91c1c;
            --border: #ddd3c2;
            --shadow: 0 18px 45px rgba(51, 38, 11, 0.08);
        }
        * { box-sizing: border-box; }
        body { margin: 0; font-family: Arial, sans-serif; color: var(--ink); background:
            radial-gradient(circle at top left, #fff7ed 0, transparent 28%),
            radial-gradient(circle at top right, #dbeafe 0, transparent 24%),
            linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
        }
        .wrap { max-width: 1420px; margin: 0 auto; padding: 28px; }
        .hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
        .hero h1 { margin: 0; font-size: 38px; letter-spacing: -0.03em; }
        .hero p { margin: 8px 0 0; color: var(--muted); max-width: 760px; line-height: 1.6; }
        .panel { background: var(--panel); border: 1px solid rgba(221, 211, 194, 0.8); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
        .account-menu { position: relative; }
        .account-menu summary { list-style: none; }
        .account-menu summary::-webkit-details-marker { display: none; }
        .account-trigger { background: linear-gradient(180deg, #fff 0%, #f3ece1 100%); border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }
        .account-dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 220px; background: rgba(255,255,255,0.98); border: 1px solid rgba(221, 211, 194, 0.95); border-radius: 20px; box-shadow: 0 24px 50px rgba(34, 22, 9, 0.14); padding: 10px; display: grid; gap: 8px; z-index: 15; }
        .dropdown-item,
        .account-dropdown a.dropdown-item,
        .account-dropdown button.dropdown-item {
            width: 100%;
            border: 0;
            background: #f8f3ea;
            color: var(--ink);
            border-radius: 14px;
            padding: 12px 14px;
            text-align: left;
            font-family: Arial, sans-serif;
            font-size: 14px;
            line-height: 1.2;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            display: block;
            appearance: none;
            -webkit-appearance: none;
        }
        .dropdown-item:hover { background: #efe6d8; }
        .flash { padding: 13px 15px; border-radius: 14px; margin-bottom: 12px; border: 1px solid transparent; }
        .flash.success { background: #dcfce7; color: #166534; border-color: #86efac; }
        .flash.error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
        .toast-stack { position: fixed; top: 18px; right: 18px; display: grid; gap: 10px; width: min(380px, calc(100vw - 24px)); z-index: 2200; pointer-events: none; }
        .flash-toast { margin: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; box-shadow: 0 20px 40px rgba(34, 22, 9, 0.18); backdrop-filter: blur(10px); pointer-events: auto; animation: toast-in .24s ease; }
        .flash-toast span { flex: 1; line-height: 1.45; }
        .flash-dismiss { width: 28px; height: 28px; min-width: 28px; padding: 0; border-radius: 999px; background: rgba(255,255,255,0.72); color: inherit; font-size: 18px; line-height: 1; transform: none !important; }
        .flash-dismiss:hover { opacity: 0.9; }
        .flash-toast.is-leaving { opacity: 0; transform: translateY(-8px) scale(0.98); transition: opacity .2s ease, transform .2s ease; }
        @keyframes toast-in {
            from { opacity: 0; transform: translateY(-10px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        form { display: grid; gap: 12px; }
        label { font-weight: 700; font-size: 13px; color: #33403b; }
        input, textarea, select { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border); font: inherit; background: #fff; }
        textarea { min-height: 96px; resize: vertical; }
        .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .btns { display: flex; flex-wrap: wrap; gap: 10px; }
        button, .btn-link { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 13px; line-height: 1; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, opacity .15s ease; }
        button:hover, .btn-link:hover { transform: translateY(-1px); opacity: 0.95; }
        .primary { background: var(--accent); color: #fff; }
        .secondary { background: #e6ece9; color: var(--ink); }
        .soft-edit { background: #e0ecff; color: #1d4ed8; }
        .soft-refresh { background: #e8f7ef; color: #166534; }
        .soft-ssh { background: #f3e8ff; color: #7c3aed; }
        .soft-feature { background: #fff1db; color: #b45309; }
        .soft-login { background: #fee9ef; color: #be185d; }
        .warn { background: var(--warning); color: #fff; }
        .danger { background: var(--danger); color: #fff; }
        .ghost { background: transparent; border: 1px solid var(--border); color: var(--ink); }
        .small { font-size: 12px; color: var(--muted); line-height: 1.5; }
        .card-title { margin: 0 0 14px; font-size: 21px; letter-spacing: -0.02em; }
        .pill { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
        .pill.ok { background: #dcfce7; color: #166534; }
        .pill.bad { background: #fee2e2; color: #991b1b; }
        .pill.warn { background: #ffedd5; color: #9a3412; }
        .pill.neutral { background: #e5e7eb; color: #374151; }
        .login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
        .login-card { width: 100%; max-width: 430px; }
        .kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
        .kpi-card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,240,230,0.96) 100%); border: 1px solid rgba(221, 211, 194, 0.88); border-radius: 22px; padding: 14px 15px; box-shadow: 0 14px 28px rgba(64, 42, 13, 0.08); }
        .kpi-card::after { content: ""; position: absolute; inset: auto -18px -24px auto; width: 82px; height: 82px; border-radius: 999px; background: radial-gradient(circle, rgba(15,118,110,0.14) 0%, rgba(15,118,110,0) 72%); pointer-events: none; }
        .kpi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
        .kpi-icon { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(15,118,110,0.16) 0%, rgba(18,94,124,0.08) 100%); color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
        .kpi-icon svg { width: 18px; height: 18px; fill: currentColor; }
        .kpi-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
        .kpi-card strong { display: block; margin-top: 10px; font-size: 24px; line-height: 1; letter-spacing: -0.04em; }
        .kpi-meta { margin-top: 6px; font-size: 11px; color: #51605a; }
        .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
        .toolbar form { display: flex; gap: 10px; align-items: center; width: 100%; }
        .toolbar .search { flex: 1; }
        .toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
        .import-box { min-height: 180px; font-family: monospace; }
        .meta-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
        .summary-mini { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
        .summary-mini div { background: #f7f6f2; padding: 10px; border-radius: 12px; }
        .summary-mini strong { display: block; font-size: 18px; margin-top: 4px; }
        .filter-card { margin-bottom: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,238,227,0.94) 100%); }
        .filter-card .toolbar { display: grid; gap: 16px; margin-bottom: 12px; }
        .filter-copy { max-width: 720px; }
        .filter-form { display: flex; gap: 14px; align-items: center; width: 100%; }
        .filter-search, .filter-select { flex: 1 1 0; min-width: 0; position: relative; }
        .filter-search input { width: 100%; box-sizing: border-box; padding-left: 16px; height: 48px; border-radius: 16px; border: 1px solid rgba(191, 176, 152, 0.95); background: #fffdfa; box-shadow: inset 0 1px 2px rgba(74, 57, 26, 0.05); }
        .filter-form select { width: 100%; box-sizing: border-box; height: 48px; border-radius: 16px; background: #fffdfa; }
        .filter-form .btn-link { flex: 0 0 96px; height: 48px; }
        .filter-main { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(720px, 1.8fr); gap: 22px; align-items: end; }
        .filter-card .toolbar-actions { margin: 0; padding-top: 6px; border-top: 1px solid rgba(221, 211, 194, 0.8); }
        .server-grid { display: grid; gap: 18px; }
        .server-card { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,245,237,0.96) 100%); border: 1px solid rgba(221, 211, 194, 0.92); border-radius: 24px; padding: 20px; box-shadow: 0 18px 40px rgba(51, 38, 11, 0.09); }
        .server-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
        .server-card-top h3 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
        .server-host { margin-top: 8px; color: var(--muted); font-size: 14px; }
        .server-status { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
        .server-card-content { position: relative; overflow: hidden; transition: max-height .25s ease; }
        .server-card.is-collapsed .server-card-content { max-height: 270px; }
        .server-card.is-collapsed .server-card-content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(249,245,237,0) 0%, rgba(249,245,237,0.96) 72%, rgba(249,245,237,1) 100%); pointer-events: none; }
        .server-card-toggle-wrap { display: flex; justify-content: center; margin-top: 14px; }
        .server-card-toggle { min-width: 132px; }
        .server-body { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
        .server-section { background: rgba(255,255,255,0.72); border: 1px solid rgba(221, 211, 194, 0.72); border-radius: 18px; padding: 16px; }
        .server-section h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
        .server-section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
        .server-section-header h4 { margin: 0; }
        .detail-list { display: grid; gap: 9px; }
        .detail-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px dashed rgba(221, 211, 194, 0.75); padding-bottom: 7px; }
        .detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
        .detail-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
        .detail-value { text-align: right; font-weight: 700; font-size: 14px; color: var(--ink); word-break: break-word; }
        .detail-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
        .copy-btn { border: 1px solid rgba(191, 176, 152, 0.95); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
        .copy-btn:hover { background: #f6efe4; }
        .copy-btn.is-copied { background: #dcfce7; border-color: #86efac; color: #166534; }
        .server-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
        .resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
        .metric-tile { background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(244,239,230,0.92) 100%); border: 1px solid rgba(221, 211, 194, 0.78); border-radius: 18px; padding: 12px; min-height: 88px; display: grid; gap: 8px; }
        .metric-tile.metric-alert { background: linear-gradient(180deg, #fff1f2 0%, #fee2e2 100%); border-color: #fca5a5; }
        .metric-tile.metric-alert .metric-icon { background: linear-gradient(135deg, rgba(239,68,68,0.16) 0%, rgba(248,113,113,0.12) 100%); color: #b91c1c; }
        .metric-tile.metric-alert .metric-label,
        .metric-tile.metric-alert .metric-value { color: #991b1b; }
        .metric-head { display: flex; align-items: center; gap: 10px; }
        .metric-icon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(15,118,110,0.14) 0%, rgba(59,130,246,0.10) 100%); color: var(--accent); }
        .metric-icon svg { width: 18px; height: 18px; fill: currentColor; }
        .metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
        .metric-value { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.15; }
.service-pill { padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.service-pill.running { background: #dcfce7; color: #166534; }
.service-pill.down { background: #fee2e2; color: #991b1b; }
.service-pill.unknown { background: #e5e7eb; color: #374151; }
.service-restart-btn {
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin-left: auto;
}
.service-restart-btn:hover { background: #fecaca; }
        .summary-grid { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 10px; }
        .summary-item { background: #f7f5ef; border-radius: 14px; padding: 12px; }
        .summary-item span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
        .summary-item strong { display: block; margin-top: 6px; font-size: 24px; }
        .summary-extra { margin-top: 12px; display: grid; gap: 8px; }
        .empty-state { padding: 26px; text-align: center; color: var(--muted); background: rgba(255,255,255,0.76); border: 1px dashed rgba(221, 211, 194, 0.9); border-radius: 22px; }
        .modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(24, 34, 31, 0.34); backdrop-filter: blur(6px); z-index: 30; }
        .modal.is-open { display: flex; }
        .modal-card { width: min(960px, 100%); max-height: calc(100vh - 56px); overflow: auto; background:
            radial-gradient(circle at top left, #fff8ef 0, transparent 26%),
            linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,243,234,0.97) 100%);
            border: 1px solid rgba(221, 211, 194, 0.95); border-radius: 28px; padding: 24px; box-shadow: 0 30px 80px rgba(40, 26, 8, 0.2); }
        .confirm-modal-card { width: min(540px, 100%); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
        .modal-header p { margin: 6px 0 0; color: var(--muted); }
        .modal-feedback { position: sticky; top: -24px; z-index: 4; margin-bottom: 14px; padding-top: 2px; }
        .modal-feedback .flash { box-shadow: 0 14px 34px rgba(153, 27, 27, 0.14); }
        .confirm-copy { margin: 0 0 22px; color: var(--ink); font-size: 15px; line-height: 1.65; }
        .confirm-actions { display: flex; justify-content: flex-end; gap: 12px; }
        .permission-grid { display: grid; gap: 14px; }
        .permission-group { background: rgba(255,255,255,0.72); border: 1px solid rgba(221, 211, 194, 0.72); border-radius: 18px; padding: 16px; }
        .permission-group h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
        .checkbox-list { display: grid; gap: 10px; }
        .checkbox-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(221, 211, 194, 0.75); }
        .checkbox-row:last-child { border-bottom: 0; }
        .checkbox-row input { width: auto; margin: 0; }
        .checkbox-row label { margin: 0; font-size: 14px; color: var(--ink); }
        .security-mfa-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; align-items: stretch; }
        .security-mfa-card { background: rgba(255,255,255,0.78); border: 1px solid rgba(221, 211, 194, 0.78); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
        .security-mfa-check { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 0; min-height: 44px; }
        .security-mfa-check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-width: 18px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; flex: 0 0 18px; accent-color: var(--accent); transform: none; }
        .security-mfa-check span { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
        .security-mfa-card label { margin: 0; }
        .security-mfa-card .small { margin: 0; }
        .security-mfa-method select { margin-top: 2px; }
        .user-admin-list { display: grid; gap: 12px; margin-top: 18px; }
        .user-admin-card { background: rgba(255,255,255,0.72); border: 1px solid rgba(221, 211, 194, 0.72); border-radius: 18px; padding: 16px; }
        .user-admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
        .user-admin-top h4 { margin: 0; font-size: 18px; }
        .user-permission-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
        .close-btn { background: transparent; border: 1px solid var(--border); color: var(--ink); width: 42px; height: 42px; border-radius: 999px; font-size: 22px; line-height: 1; }
        @media (max-width: 1080px) {
            .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .hero { flex-direction: column; }
            .server-body { grid-template-columns: 1fr; }
            .filter-main { grid-template-columns: 1fr; }
            .resource-grid { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 720px) {
            .toast-stack { top: 12px; right: 12px; left: 12px; width: auto; }
            .row { grid-template-columns: 1fr; }
            .security-mfa-row { grid-template-columns: 1fr; }
            .toolbar { flex-direction: column; align-items: stretch; }
            .toolbar form { flex-direction: column; align-items: stretch; }
            .filter-form { grid-template-columns: 1fr; }
            .kpi-grid { grid-template-columns: 1fr 1fr; }
            .account-dropdown { position: static; width: 100%; margin-top: 10px; }
            .modal { padding: 14px; }
            .modal-card { padding: 18px; }
            .server-card-top { flex-direction: column; }
            .server-status { justify-content: flex-start; }
            .detail-row { flex-direction: column; align-items: flex-start; }
            .detail-value { text-align: left; }
            .user-admin-top { flex-direction: column; }
            .resource-grid { grid-template-columns: 1fr; }
        }
