﻿



:root {
    
    --bg:      #090a0b;
    --panel:   #161616;
    --surface: #111213;
    --card:    rgba(244,244,243,0.04);
    --raised:  #1f1f1f;
    --hover:   rgba(244,244,243,0.06);

    --line:  rgba(244,244,243,0.10);
    --line2: rgba(244,244,243,0.14);

    --t1: #f6f7f8;
    --t2: hsl(208,10%,43%);
    --t3: hsl(208,10%,43%);

    --online:    #22c55e;
    --danger:    #ef4444;
    --info:      #42bda0;

    --font:      'Schibsted Grotesk', 'Geist', system-ui, sans-serif;
    --font-mono: 'Geist Mono', 'Cascadia Mono', ui-monospace, monospace;

    --r:    8px;
    --r-lg: 12px;

    --topbar-h:  78px;
    --sidebar-w: 256px;
}



*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg);
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.013) 0px,
        rgba(255,255,255,0.013) 1px,
        transparent 1px,
        transparent 10px
    );
    color: var(--t1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow: hidden;
}

::selection {
    background: var(--line2);
    color: var(--t1);
}



.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: calc(var(--sidebar-w) + 36px);
    background: rgba(9,10,11,0.55);
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.topbar-icon-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: -4px;
}

.topbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar-title {
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--t1);
    user-select: none;
    text-shadow: 0 0 22px rgba(255,255,255,0.12);
}

.topbar-sub {
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: hsl(208,10%,35%);
    letter-spacing: 0;
    line-height: 1;
    user-select: none;
}


.topbar-profile {
    position: absolute;
    right: calc(var(--sidebar-w) + 36px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
    flex-shrink: 0;
}

.topbar-username {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: 0;
    user-select: none;
    white-space: nowrap;
}


.topbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.topbar-center-link {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: hsl(208,10%,43%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.12s;
}

.topbar-center-link:hover { color: var(--t1); }



#dashBg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
#dashBg.active { opacity: 1; }

.layout {
    display: flex;
    height: calc(100vh - var(--topbar-h));
    margin-top: var(--topbar-h);
    position: relative;
    z-index: 1;
}



.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 6px 8px 14px;
    overflow: hidden;
}

.nav-category {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(66,189,160,0.90);
    padding: 18px 10px 6px;
    user-select: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 600;
    color: hsl(208,10%,43%);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    user-select: none;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.1s;
}

.nav-item:hover {
    background: var(--hover);
    color: var(--t1);
}

.nav-item:hover svg { opacity: 0.9; }

.nav-item.active {
    background: rgba(66,189,160,0.12);
    color: var(--t1);
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 39px;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: rgba(66,189,160,0.90);
}

.nav-item.active svg { opacity: 1; }

.nav-badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--t1);
}



.main {
    flex: 1;
    overflow-y: auto;
    background: transparent;
    min-width: 0;
    display: flex;
    flex-direction: column;
}



.page {
    padding: 32px 28px 24px 28px;
    min-height: 100%;
}

.page-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.page-header h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--t1);
    line-height: 1;
    margin-bottom: 4px;
}

.page-header h1 span {
    color: #5ecfbc;
    margin-left: 3px;
}

.page-header p {
    font-size: 12px;
    font-weight: 600;
    color: hsl(208,10%,35%);
}



.client-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}


.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
    max-width: 340px;
    height: 44px;
    background: rgb(9,10,11);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-search:focus-within {
    outline: 2px solid rgba(66,189,160,0.3);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(66,189,160,0.2);
}

.filter-search-icon {
    width: 14px;
    height: 14px;
    color: var(--t2);
    flex-shrink: 0;
}

.filter-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--t1);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    min-width: 0;
}

.filter-search input::placeholder {
    color: var(--t3);
    font-weight: 500;
}

.filter-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--t3);
    padding: 0;
    flex-shrink: 0;
    border-radius: 4px;
    transition: color 0.12s;
}

.filter-clear:hover { color: var(--t2); }
.filter-clear svg   { width: 12px; height: 12px; }



.filter-pills {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    background: rgb(11,12,13);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 6px;
    padding: 3px;
}

.filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 13px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: rgba(244,244,243,0.65);
    transition: color 0.12s, background 0.12s;
    white-space: nowrap;
    user-select: none;
}

.filter-pill:hover {
    color: var(--t1);
    background: rgba(255,255,255,0.06);
}


.filter-pill.active {
    background: rgba(66,189,160,0.90);
    color: #ffffff;
}
.filter-pill.active:hover { background: rgba(66,189,160,1); }


.pill-count {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(244,244,243,0.42);
    transition: color 0.12s;
}

.filter-pill.active .pill-count { color: rgba(255,255,255,0.80); }
.filter-pill:hover  .pill-count { color: rgba(244,244,243,0.75); }




.home-wrap {
    padding: 24px 28px 20px 28px;
    margin: 16px;
    height: calc(100vh - var(--topbar-h) - 32px);
    display: flex;
    flex-direction: column;
    background: rgb(11,12,14);
    border: 1px solid rgba(244,244,243,0.08);
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.clients-wrap {
    padding: 32px 28px 24px 28px;
    margin: 16px;
    flex: 1;
    display: flex;
    background: rgb(11,12,14);
    border: 1px solid rgba(244,244,243,0.08);
    border-radius: 8px;
    flex-direction: column;
}

.clients-panel {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.stat-grid-panel {
    flex: 1;
    min-height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto 1fr;
    gap: 16px;
    flex: 1;
    min-height: 0;
}


.activity-card-wrap {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.activity-header {
    flex-shrink: 0;
}

.activity-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-height: 0;
    max-height: 240px;
}

.activity-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.activity-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.activity-bar-fill {
    width: 100%;
    background: rgba(66, 189, 160, 0.45);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease;
}

.activity-bar-col.today .activity-bar-fill {
    background: rgba(66, 189, 160, 0.9);
}

.activity-bar-day {
    font-size: 9px;
    font-weight: 700;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.activity-bar-col.today .activity-bar-day {
    color: var(--t1);
}

.activity-footer {
    display: flex;
    gap: 28px;
    padding-top: 12px;
    border-top: 1px solid rgba(244,244,243,0.08);
    flex-shrink: 0;
    justify-content: center;
}

.activity-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.activity-kpi-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--t1);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.activity-kpi-lbl {
    font-size: 9px;
    font-weight: 700;
    color: var(--t2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.rn-card-wrap {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.stat-card {
    background: linear-gradient(160deg, rgb(26,26,26) 0%, rgb(19,19,19) 100%);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: default;
}

.stat-card:hover {
    border-color: rgba(244,244,243,0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.40), 0 0 0 1px rgba(0,0,0,0.20) inset;
}



.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.stat-card-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--t2);
}

.stat-card-icon {
    width: 26px;
    height: 26px;
    color: rgba(66,189,160,0.75);
    flex-shrink: 0;
}

.stat-card-sm {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.stat-card-num {
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: var(--t1);
}



.stat-card-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(244,244,243,0.82);
}



.toast.has-icon {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.toast-coin-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.has-icon .toast-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}




.rn-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rn-list::-webkit-scrollbar        { width: 4px; }
.rn-list::-webkit-scrollbar-track  { background: transparent; }
.rn-list::-webkit-scrollbar-thumb  { background: var(--line2); border-radius: 2px; }


.rn-empty {
    padding: 12px 4px 4px;
    font-size: 12px;
    color: var(--t3);
}


.rn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgb(11,12,14);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}


.rn-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66,189,160,0.12);
    border-radius: 8px;
}


.rn-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rn-row-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rn-row-sub {
    font-size: 11px;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.rn-time {
    font-size: 10px;
    color: var(--t3);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}



.table-wrap {}

.table-head {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 90px 28px;
    padding: 0 12px;
    height: 36px;
    align-items: center;
    background: transparent;
    position: relative;
}


.table-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--line);
}

.table-head span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--t2);
}

.client-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 90px 28px;
    padding: 0 12px;
    height: 48px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    border-radius: var(--r);
    transition: background 0.12s;
}

.client-row:last-child { border-bottom: none; }
.client-row:hover      { background: var(--hover); }

.cell-ip,
.cell-host,
.cell-priv,
.cell-country {
    font-size: 13px;
    font-weight: 500;
    color: var(--t1);
}

.cell-ip {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.cell-host {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.status {
    font-size: 13px;
    font-weight: 500;
}

.status.online  { color: var(--t1); }
.status.offline { color: var(--t2); }


.row-op-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--line2);
    border-top-color: var(--t2);
    animation: spin 0.75s linear infinite;
    justify-self: center;
}


.table-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 52px 24px;
    text-align: center;
}

.table-empty svg  { color: var(--t3); margin-bottom: 4px; }
.table-empty p    { font-size: 13px; font-weight: 700; color: var(--t2); }
.table-empty span { font-size: 11px; font-weight: 600; color: var(--t3); }



@keyframes ctx-open {
    from { opacity: 0; transform: scale(0.95) translateY(-6px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.context-menu {
    position: fixed;
    background: rgb(9,10,11);
    border: 1px solid var(--line2);
    border-radius: var(--r-lg);
    z-index: 400;
    min-width: 220px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    animation: ctx-open 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}


.ctx-header {
    padding: 13px 14px 11px;
    border-bottom: 1px solid var(--line);
}

.ctx-header-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctx-header-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--t2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}


.ctx-body {
    padding: 4px;
}

.ctx-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--t3);
    padding: 8px 10px 3px;
    user-select: none;
}

.ctx-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    cursor: pointer;
    border-radius: calc(var(--r) - 2px);
    transition: background 0.08s;
}

.ctx-item:hover { background: var(--hover); }

.ctx-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--t2);
    transition: color 0.08s;
}

.ctx-item:hover svg { color: var(--t1); }

.ctx-sep {
    height: 1px;
    background: var(--line1);
    margin: 4px 10px;
}



.settings-section {
    background: rgb(22,22,22);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    overflow: hidden;
    max-width: 660px;
    position: relative;
    transition: border-color 0.15s;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
}

.settings-section:hover {
    border-color: var(--line2);
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 14px;
}

.settings-section-header svg {
    width: 14px;
    height: 14px;
    color: var(--t2);
    flex-shrink: 0;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
}

.settings-section-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--t2);
}

.settings-body {
    padding: 18px 20px 16px;
}

.settings-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--t2);
}

.settings-input {
    width: 100%;
    background: rgb(9,10,11);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    height: 44px;
    padding: 0 13px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 400;
    color: rgba(246,247,248,0.90);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    letter-spacing: 0.01em;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.settings-input:focus {
    border-color: rgba(244,244,243,0.18);
    outline: 2px solid rgba(66,189,160,0.30);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(66,189,160,0.20);
}

.settings-input::placeholder {
    color: rgba(244,244,243,0.32);
}

.notif-msg-textarea.settings-input {
    height: auto;
    min-height: 80px;
    padding: 11px 13px;
    resize: vertical;
}

.notif-msg-textarea {
    resize: vertical;
    min-height: 68px;
    line-height: 1.55;
}

.settings-footer {
    display: flex;
    flex-direction: column;
    padding: 0 20px 16px;
}

.settings-footer .settings-hint-msg {
    padding: 8px 18px 6px;
}

.settings-footer .settings-hint-msg:empty { display: none; }

.settings-footer .settings-save-btn {
    display: block;
    margin: 0 16px 12px;
    border-radius: 4px;
    padding: 10px 20px;
    text-align: center;
}


.settings-save-btn {
    background: rgba(66,189,160,0.90);
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.14s;
}
.settings-save-btn:hover { background: rgba(66,189,160,1); }

.settings-hint-msg {
    font-size: 12px;
    font-weight: 600;
    color: var(--t3);
    flex: 1;
}
.settings-hint-msg.acct-msg-ok  { color: var(--online); }
.settings-hint-msg.acct-msg-err { color: var(--danger); }


.acct-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 1000px;
    align-items: stretch;
}

.acct-col-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.acct-col-left .settings-footer {
    margin-top: auto;
}

.acct-sections .settings-section,
.acct-col-right {
    max-width: none;
}

.acct-col-right { display: flex; flex-direction: column; }

.acct-section--profile .settings-section-header { padding: 18px 20px 14px; }
.acct-section--profile .settings-section-header svg { width: 16px; height: 16px; }
.acct-section--profile .settings-section-title { font-size: 15px; }

.acct-section--md .settings-section-header { padding: 15px 18px 12px; }
.acct-section--md .settings-section-header svg { width: 15px; height: 15px; }
.acct-section--md .settings-section-title { font-size: 14px; }

.acct-avatar-row {
    display: flex;
    justify-content: center;
    padding: 0 0 16px;
}

.acct-section--profile .settings-body {
    padding: 0 20px 12px !important;
}

.acct-avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: rgba(244,244,243,0.30);
    position: relative;
}

#acctAvatarPlaceholder {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-4px);
}

.acct-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acct-avatar-clickable {
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.acct-avatar-clickable:hover { border-color: var(--line2); color: rgba(244,244,243,0.55); }

.acct-avatar-clickable::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0);
    transition: background 0.15s;
}
.acct-avatar-clickable:hover::after { background: rgba(0,0,0,0.28); }



.save-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--t3);
    transition: color 0.18s;
    min-width: 40px;
    text-align: right;
}

.save-status.ok  { color: var(--online); }
.save-status.err { color: var(--danger); }


.btn-action {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: rgba(244,244,243,0.75);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.btn-action:hover { background: rgba(255,255,255,0.14); color: rgba(244,244,243,1); }
.btn-action.btn-danger { color: #f87171; border-color: rgba(239,68,68,0.25); }
.btn-action.btn-danger:hover { background: rgba(239,68,68,0.15); }

.btn-save {
    background: rgba(66,189,160,0.90);
    border: none;
    border-radius: 4px;
    padding: 11px 20px;
    width: 100%;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-save:hover {
    background: rgba(66,189,160,1);
    box-shadow: 0 0 0 3px rgba(66,189,160,0.25);
}

.btn-save:active {
    background: rgba(44,76,196,1);
    transform: scale(0.98);
    box-shadow: none;
    transition-duration: 0.06s;
}



.bld-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 0 20px;
}

.bld-card {
    background: linear-gradient(160deg, rgb(26,26,26) 0%, rgb(19,19,19) 100%);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.bld-card:hover {
    border-color: rgba(244,244,243,0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.40);
}

.bld-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bld-card-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bld-card-icon svg {
    width: 18px; height: 18px;
    color: rgba(66,189,160,0.85);
}

.bld-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.01em;
}
.bld-card-sub {
    font-size: 11px;
    font-weight: 500;
    color: hsl(208,10%,43%);
    margin-top: 2px;
}
.bld-card-ext {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: rgba(66,189,160,0.75);
}

.bld-card-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.bld-field-label {
    font-size: 10px;
    font-weight: 600;
    color: hsl(208,10%,43%);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bld-input {
    height: 34px !important;
    font-size: 12px !important;
}

.bld-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(244,244,243,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bld-build-btn {
    background: rgba(66,189,160,0.90);
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    width: 100%;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.bld-build-btn:hover {
    background: rgba(66,189,160,1);
    box-shadow: 0 0 0 3px rgba(66,189,160,0.25);
}
.bld-build-btn:active {
    transform: scale(0.98);
    transition-duration: 0.06s;
}
.bld-build-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.build-type-btn {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 18px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.build-type-btn:hover {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-hover, var(--border));
}
.build-type-btn.active {
    background: rgba(66,189,160,0.15);
    border-color: rgba(66,189,160,0.60);
    color: rgb(66,189,160);
    font-weight: 600;
}

.settings-hint {
    font-size: 12px;
    color: var(--t2);
    margin: 0 0 14px;
    line-height: 1.5;
}

.hint-placeholder {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(66,189,160,0.90);
    background: rgba(66,189,160,0.10);
    border-radius: 3px;
    padding: 1px 5px;
}

.clipper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.clipper-coin {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clipper-coin-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--t3);
    min-width: 36px;
    letter-spacing: 0.04em;
}

.clipper-coin-input {
    flex: 1;
    font-size: 11px;
    padding: 5px 8px;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--line2);
    border-radius: 22px;
    transition: background .2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    transition: transform .2s, background .2s;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(66,189,160,0.90);
    border: none;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: #fff;
}



.toast-container {
    position: fixed;
    top: calc(var(--topbar-h) + 14px);
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(18px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateX(0)    scale(1); }
    to   { opacity: 0; transform: translateX(18px) scale(0.97); }
}

.toast {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 20px 17px;
    background: rgba(8, 8, 9, 0.55);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid var(--line);
    border-top-width: 1px;
    border-radius: 12px;
    box-shadow: rgba(0,0,0,0.6) 0px 24px 48px -12px;
    min-width: 260px;
    max-width: 360px;
    animation: toast-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
}


.toast::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    opacity: 0.55;
    border-radius: 12px 12px 0 0;
}

.toast.ok::before   { background: var(--online); }
.toast.err::before  { background: var(--danger); }
.toast.warn::before { background: rgba(255,255,255,0.3); }

.toast.hiding {
    animation: toast-out 0.16s ease forwards;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    line-height: 1;
}

.toast-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(5px) saturate(0.7);
    -webkit-backdrop-filter: blur(5px) saturate(0.7);
    z-index: 290;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}



.wallet-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 500px;
    height: 76vh;
    max-height: 76vh;
    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: var(--r-lg);
    z-index: 295;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 12px 48px rgba(0,0,0,0.90),
        0 4px 16px rgba(0,0,0,0.70);
}


#walletDrawerContent,
#discordDrawerContent,
#shellDrawerContent,
#taskDrawerContent,
#keylogDrawerContent,
#screenDrawerContent,
#fmDrawerContent,
#hostsDrawerContent {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.wallet-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}



.wd-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 20px 20px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.wd-client-info {
    flex: 1;
    min-width: 0;
}

.wd-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.wd-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.wd-sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--t2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.wd-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--t2);
    flex-shrink: 0;
    transition: color 0.15s;
}


.wd-header > .wd-close {
    position: absolute;
    top: 8px;
    right: 8px;
}

.wd-close svg {
    width: 14px;
    height: 14px;
}

.wd-close:hover {
    background: transparent;
    color: var(--t1);
}



.wd-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 18px 10px;
    flex-shrink: 0;
}

.wd-stat-card {
    background: linear-gradient(160deg, rgb(26,26,26) 0%, rgb(19,19,19) 100%);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 10px 14px 9px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: default;
}

.wd-stat-card:hover {
    border-color: rgba(244,244,243,0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.40), 0 0 0 1px rgba(0,0,0,0.20) inset;
}

.wd-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%; height: 1px;
    background: var(--hover);
    border-radius: 0 0 2px 2px;
}

.wd-stat-card.wd-stat-found::before {
    background: var(--hover);
}

.wd-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.75);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    margin-bottom: 5px;
    transition: color 0.2s;
}

.wd-stat-card.wd-stat-found .wd-stat-num {
    color: rgba(66,189,160,0.90);
}

.wd-stat-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--t3);
}



.wd-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 18px 24px;
}

.wd-section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--t3);
    margin-bottom: 7px;
}



.wd-entry {
    background: linear-gradient(160deg, rgb(26,26,26) 0%, rgb(19,19,19) 100%);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    transition: border-color 0.15s;
    cursor: default;
}


.wd-entry:hover {
    border-color: var(--line2);
}

.wd-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 8px;
}

.wd-entry-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.wd-entry-name img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 4px;
    display: block;
}

.wd-entry-type {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    flex-shrink: 0;
}

.wd-entry-browser {
    font-size: 11px;
    font-weight: 500;
    color: var(--t3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.wd-entry-info  { flex: 1; min-width: 0; }
.wd-entry-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



.wd-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    text-align: center;
    height: 100%;
    color: var(--t3);
    font-size: 13px;
}

.wd-empty svg {
    width: 32px;
    height: 32px;
    color: var(--t3);
    margin-bottom: 4px;
}

.wd-empty p {
    font-size: 13px;
    font-weight: 700;
    color: var(--t2);
}

.wd-empty span {
    font-size: 11px;
    font-weight: 600;
    color: var(--t3);
}

.wd-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    height: 200px;
    color: var(--t2);
    font-size: 12px;
    font-weight: 600;
}

@keyframes wd-spin {
    to { transform: rotate(360deg); }
}

.wd-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--line2);
    border-top-color: var(--t2);
    border-radius: 50%;
    animation: wd-spin 0.7s linear infinite;
}



.wallet-ctx-menu {
    position: fixed;
    z-index: 400;
    min-width: 160px;
    background: rgb(9,10,11);
    border: 1px solid var(--line2);
    border-radius: var(--r-lg);
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    overflow: hidden;
    animation: ctx-open 0.12s cubic-bezier(0.16,1,0.3,1) both;
}

.wallet-ctx-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    cursor: pointer;
    transition: background 0.08s;
    white-space: nowrap;
}

.wallet-ctx-item svg {
    width: 13px;
    height: 13px;
    color: var(--t2);
    flex-shrink: 0;
}

.wallet-ctx-item:hover {
    background: var(--hover);
}




@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


.spin {
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}


#discordDrawer {
    width: 560px;
    height: 82vh;
    max-height: 82vh;
}

#walletDrawer {
    background: var(--bg);
}

#walletDrawer .wd-header,
#discordDrawer .wd-header {
    border-bottom: none;
    padding: 14px 20px 2px;
}


.wd-name-sep {
    color: var(--t3);
    margin: 0 4px;
    font-weight: 400;
}



.dc-list {
    flex: 1;
    min-height: 0;      
    overflow-y: auto;
    padding: 4px 18px 24px;
}

.dc-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.dc-count {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(244,244,243,0.35);
}



.dc-account {
    background: linear-gradient(160deg, rgb(26,26,26) 0%, rgb(19,19,19) 100%);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 14px 14px 12px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    transition: border-color 0.15s;
}

.dc-account:hover {
    border-color: var(--line2);
}



.dc-account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--raised);
    object-fit: cover;
}

.dc-account-meta {
    flex: 1;
    min-width: 0;
}


.dc-username-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.dc-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.dc-userid {
    font-size: 10px;
    font-weight: 500;
    color: rgba(244,244,243,0.72);
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
}

.dc-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dc-badges:empty { display: none; }

.dc-emoji {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}



.dc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-items: start;   
}

.dc-field {
    min-width: 0;
}

.dc-field-full {
    grid-column: 1 / -1;
}

.dc-field-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: hsl(208,10%,43%);
    margin-bottom: 4px;
}

.dc-field-value {
    font-size: 12px;
    font-weight: 500;
    color: rgba(244,244,243,0.72);
    overflow-wrap: break-word;
}

.dc-mono {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.01em;
}



.dc-token-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgb(9,10,11);
    border: 1px solid var(--hover);
    border-radius: 6px;
    padding: 6px 8px;
}

.dc-token-masked {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(244,244,243,0.40);
    letter-spacing: 0.04em;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-token-plain {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--t2);
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    background: transparent;
    border: none;
}

.dc-token-btns {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.dc-eye-btn {
    width: 22px;
    height: 22px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(244,244,243,0.38);
    flex-shrink: 0;
    transition: color 0.12s;
    padding: 0;
    border-radius: 4px;
}

.dc-eye-btn:hover { color: var(--t1); }

.dc-eye-btn svg {
    width: 13px;
    height: 13px;
}



.dc-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
}

.dc-pill-on  { background: rgba(66,189,160,0.10); color: rgba(66,189,160,0.80); }
.dc-pill-off { background: rgba(239,68,68,0.07);   color: rgba(239,68,68,0.60);  }



.dc-hq-btn {
    position: absolute;
    top: 11px;
    right: 12px;
    font-family: var(--font);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #5ecfbc;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.12s;
    line-height: 1;
}
.dc-hq-btn:hover       { color: #7dd9ca; }
.dc-hq-btn-open        { color: #7dd9ca; }
.dc-hq-btn-open:hover  { color: #fff; }
.dc-hq-btn--empty      { color: #5ecfbc; opacity: 0.55; }



.dc-hq-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--hover);
}

.hq-friend-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 0;
}

.hq-friend-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--t2);
}



.dc-copyable {
    cursor: pointer;
}

.dc-copyable:hover { color: var(--t1); }

.dc-copy-val {
    cursor: pointer;
}



.dc-null { color: rgba(244,244,243,0.35); font-size: 12px; }



::-webkit-scrollbar          { width: 3px; height: 3px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }



.quick-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    flex-shrink: 0;
}

.quick-card {
    background: linear-gradient(160deg, rgb(26,26,26) 0%, rgb(19,19,19) 100%);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35);
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: default;
}

.quick-card:hover {
    border-color: rgba(244,244,243,0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.40);
}

.quick-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-card-icon svg {
    width: 18px;
    height: 18px;
    color: rgba(66,189,160,0.85);
}

.quick-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; }

.quick-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.01em;
}

.quick-card-desc {
    font-size: 11px;
    font-weight: 500;
    color: rgba(244,244,243,0.38);
    line-height: 1.5;
}

.quick-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(244,244,243,0.06);
}

.quick-card-link {
    font-size: 12px;
    font-weight: 600;
    color: rgba(66,189,160,0.75);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    transition: color 0.12s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-card-link:hover { color: rgba(66,189,160,1); }



@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 800px) {
    .sidebar { display: none; }
    .table-head, .client-row {
        grid-template-columns: 1fr 1fr 80px;
    }
    .cell-priv, .cell-country { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}



#shellDrawer {
    width: min(92vw, 820px);
    height: min(86vh, 640px);
    max-height: min(86vh, 640px);
    background: var(--bg);
}


#shellDrawer .wd-header {
    border-bottom: none;
    padding: 14px 44px 2px 20px;  
    align-items: center;
}


.sh-type {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--t2);
    transition: color 0.12s;
    line-height: 1;
}
.sh-type:hover  { color: var(--t1); }
.sh-type.active { color: var(--t1); }

.sh-type-sep {
    color: var(--t3);
    font-size: 11px;
    font-weight: 400;
    user-select: none;
    line-height: 1;
    margin: 0 5px;
}



.sh-term {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px 8px;
    margin: 0;

    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--t1);

    white-space: pre-wrap;
    word-break: break-all;
    -webkit-user-select: text;
    user-select: text;
    cursor: text;
    background: transparent;
}

.sh-term::-webkit-scrollbar { width: 4px; }
.sh-term::-webkit-scrollbar-track { background: transparent; }
.sh-term::-webkit-scrollbar-thumb {
    background: var(--line2);
    border-radius: 2px;
}
.sh-term::selection,
.sh-term *::selection { background: var(--line2); }



.sh-inputbar {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
    background: var(--bg);
    flex-shrink: 0;
}

.sh-ps1 {
    padding: 0 8px 0 20px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--t2);
    user-select: none;
}

.sh-input {
    flex: 1;
    height: 44px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--t1);
    font-family: var(--font-mono);
    font-size: 12.5px;
    caret-color: var(--t1);
    -webkit-user-select: text;
    user-select: text;
    padding-right: 20px;
}
.sh-input::placeholder { color: var(--t3); }



.msgbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 10, 11, 0.55);
    z-index: 310;
    backdrop-filter: blur(4px) saturate(0.8);
    -webkit-backdrop-filter: blur(4px) saturate(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
}

.msgbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.msgbox-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(92vw, 400px);
    z-index: 311;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s, transform 0.2s cubic-bezier(0.16,1,0.3,1);

    display: flex;
    flex-direction: column;

    background: var(--bg);
    border: 1px solid var(--line2);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.90), 0 4px 16px rgba(0,0,0,0.70);
}

.msgbox-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 14%; right: 14%;
    height: 1px;
    background: var(--line2);
    border-radius: 0 0 2px 2px;
    pointer-events: none;
}

.msgbox-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.msgbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hover);
    flex-shrink: 0;
}

.msgbox-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
    letter-spacing: 0.01em;
}

.msgbox-body {
    padding: 16px 18px 14px;
}

.msgbox-textarea {
    resize: none;
    height: 90px;
    line-height: 1.55;
}

.msgbox-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 18px 14px;
    border-top: 1px solid var(--hover);
}



.wallpaper-drop {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 180px;
    border: 1.5px dashed var(--t3);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
    background: rgba(0,0,0,0.25);
    position: relative;
}

.wallpaper-drop:hover {
    border-color: var(--t3);
    background: rgba(244,244,243,0.04);
}

.wallpaper-drop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

#wallpaperDropLabel {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    pointer-events: none;
    position: relative;
}



#keylogDrawer {
    width: min(92vw, 800px);
    height: min(86vh, 640px);
    max-height: min(86vh, 640px);
    background: var(--bg);
}



#screenDrawer {
    width:  min(94vw, 1172px);
    height: min(90vh, 800px);
    max-height: min(90vh, 800px);
    background: var(--bg);
    
    transition: opacity 0.2s ease,
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s ease;
}


.sc-mon-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    margin-right: 44px;
}

.sc-mon-tab {
    font-size: 12px;
    font-weight: 600;
    color: var(--t3);
    cursor: pointer;
    padding: 3px 1px;
    transition: color 0.12s;
    user-select: none;
    letter-spacing: 0.01em;
    line-height: 1;
}
.sc-mon-tab:hover  { color: var(--t2); }
.sc-mon-tab.active { color: var(--t1); }
.sc-mon-tab:disabled,
.sc-mon-tab[data-disabled="1"] { opacity: 0.35; pointer-events: none; }

.sc-mon-sep {
    color: var(--line2);
    font-size: 12px;
    font-weight: 400;
    margin: 0 7px;
    user-select: none;
    line-height: 1;
}


.sc-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #000;
    overflow: hidden;
}


.sc-frame-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}


.sc-frame-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.sc-frame-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: auto;
}

.sc-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--t3);
    font-size: 13px;
    letter-spacing: 0.02em;
    text-align: center;
    user-select: none;
    pointer-events: none;
}
.sc-placeholder svg  { color: var(--line2); }
.sc-placeholder span { line-height: 1.6; }
.sc-placeholder b    { color: var(--t2); font-weight: 500; }


.sc-overlay-badge {
    position: absolute;
    bottom: 10px; right: 12px;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}


.sc-res-label {
    position: absolute;
    bottom: 10px; left: 12px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--t3);
    letter-spacing: 0.04em;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}


.sc-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--hover);
    background: var(--panel);
    flex-shrink: 0;
}


.sc-start-btn {
    width: 100%;
    background: rgba(66,189,160,0.90);
    border: none;
    outline: none;
    -webkit-appearance: none;
    border-radius: 4px;
    padding: 16px 24px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.sc-start-btn:hover {
    background: rgba(66,189,160,1);
    box-shadow: 0 0 0 3px rgba(66,189,160,0.25);
}
.sc-start-btn:active {
    background: rgba(44,76,196,1);
    transform: scale(0.98);
    box-shadow: none;
    transition-duration: 0.06s;
}

.sc-start-btn.active {
    background: rgba(239,68,68,0.90);
}
.sc-start-btn.active:hover {
    background: rgba(239,68,68,1);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.25);
}


.kl-drawer-body {
    flex: 1;
    min-height: 0;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}


.kl-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;        
    width: 100%;
}


.kl-section:hover {
    transform: none;
}


.kl-section .settings-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
}


.kl-output {
    flex: 1;
    min-height: 0;
    width: 100%;
    resize: none;
    background: rgba(244,244,243,0.04);
    color: var(--t1);
    border: 1px solid var(--hover);
    border-radius: 6px;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 13px;        
    line-height: 1.78;      
    letter-spacing: 0.015em;
    outline: none;
    box-sizing: border-box;
}



#taskDrawer {
    width: min(92vw, 860px);
    height: min(88vh, 660px);
    max-height: min(88vh, 660px);
    background: var(--bg);
}



.tm-search-wrap {
    padding: 8px 14px 7px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
}

.tm-search-input {
    width: 100%;
    background: rgba(244,244,243,0.04);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 7px 12px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t1);
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    caret-color: var(--t1);
}

.tm-search-input::placeholder { color: var(--t3); font-weight: 400; }

.tm-search-input:focus {
    border-color: var(--line2);
    background: rgba(244,244,243,0.04);
}



.tm-head {
    display: grid;
    grid-template-columns: 1fr 90px 96px;
    padding: 0 20px;
    height: 34px;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid var(--line);
}

.tm-col {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--t3);
    user-select: none;
}

.tm-col-pid  { text-align: right; padding-right: 20px; }
.tm-col-status { text-align: right; }



.tm-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}



.tm-row {
    display: grid;
    grid-template-columns: 1fr 90px 96px;
    padding: 0 20px;
    height: 32px;
    align-items: center;
    cursor: default;
    transition: background 0.1s;
    user-select: none;
    border-radius: 0;
}

.tm-row:hover     { background: rgba(244,244,243,0.04); }
.tm-row.selected  { background: rgba(244,244,243,0.055); }



.tm-name-cell {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}


.tm-indent { flex-shrink: 0; }


.tm-expand {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--t2);
    transition: transform 0.15s;
    font-size: 9px;
}
.tm-expand.open { transform: rotate(90deg); }
.tm-expand-spacer { width: 18px; flex-shrink: 0; }

.tm-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.tm-pid {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--t2);
    font-variant-numeric: tabular-nums;
    text-align: right;
    padding-right: 20px;
}



.tm-status {
    text-align: right;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tm-status-run {
    color: var(--online);
}

.tm-status-sus {
    color: var(--t3);   
}



.tm-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--t2);
    font-size: 13px;
    font-weight: 500;
}



.proc-ctx-menu {
    position: fixed;
    z-index: 400;
    background: rgb(9,10,11);
    border: 1px solid var(--line2);
    border-radius: var(--r-lg);
    padding: 5px 0;
    min-width: 176px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    overflow: hidden;
}

.proc-ctx-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
}

.proc-ctx-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--t2);
}

.proc-ctx-item:hover {
    background: var(--hover);
}

.proc-ctx-item.danger       { color: var(--danger); }
.proc-ctx-item.danger svg   { color: var(--danger); }
.proc-ctx-item.danger:hover { background: rgba(239,68,68,0.08); }

.proc-ctx-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}


.proc-ctx-item-dim {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}





.fm-drawer {
    width: min(92vw, 1100px) !important;
    height: calc(100vh - var(--topbar-h) - 32px) !important;
    max-height: calc(100vh - var(--topbar-h) - 32px) !important;
    top: calc(var(--topbar-h) + 16px) !important;
    transform: translateX(-50%) scale(0.96) !important;
}

.fm-drawer.open {
    transform: translateX(-50%) scale(1) !important;
}


#fmDrawerContent {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}


.fm-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}



.fm-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--bg);
}

.fm-tb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    border-radius: var(--r);
    color: var(--t2);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    flex-shrink: 0;
}
.fm-tb-btn:hover { background: var(--hover); color: var(--t1); }
.fm-tb-btn svg   { width: 16px; height: 16px; }


.fm-path-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    cursor: text;
    border-radius: var(--r);
    padding: 2px 4px;
    transition: background 0.1s;
}
.fm-path-wrap:hover { background: var(--hover); }


.fm-path-input {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--t3);
    border-radius: calc(var(--r) - 1px);
    padding: 3px 9px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--t1);
    outline: none;
    width: 100%;
    transition: border-color 0.12s;
}
.fm-path-input:focus { border-color: rgba(255,255,255,0.3); }
.fm-path-input::placeholder { color: var(--t3); font-weight: 500; }


.fm-breadcrumb {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    gap: 1px;
}

.fm-bc-sep {
    color: var(--t3);
    font-size: 12px;
    padding: 0 1px;
    user-select: none;
}

.fm-bc-part {
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    transition: color 0.1s, background 0.1s;
}
.fm-bc-part:hover { color: var(--t1); background: var(--hover); }



.fm-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}


.fm-sidebar {
    width: 172px;
    flex-shrink: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    padding: 8px 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--line2) transparent;
    background: var(--bg);
}

.fm-sidebar-loading {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.fm-side-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--t3);
    padding: 6px 8px 3px;
    user-select: none;
}

.fm-side-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--t2);
    cursor: pointer;
    border-radius: calc(var(--r) - 1px);
    transition: background 0.08s, color 0.08s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-side-item:hover  { background: var(--hover); color: var(--t1); }
.fm-side-item.active { background: var(--raised); color: var(--t1); }
.fm-side-item svg    { width: 14px; height: 14px; flex-shrink: 0; color: var(--t2); }
.fm-side-item:hover svg, .fm-side-item.active svg { color: var(--t1); }


.fm-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
}


.fm-col-header {
    display: grid;
    grid-template-columns: 1fr 90px 80px 140px;
    gap: 0;
    padding: 0 12px;
    height: 32px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--bg);
}
.fm-col-header > div {
    font-size: 11px;
    font-weight: 700;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    user-select: none;
}


.fm-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--line2) transparent;
}



.fm-entry {
    display: grid;
    grid-template-columns: 1fr 90px 80px 140px;
    gap: 0;
    align-items: center;
    padding: 0 8px;
    height: 32px;
    border-radius: calc(var(--r) - 2px);
    cursor: pointer;
    user-select: none;
    transition: background 0.07s;
}
.fm-entry:hover    { background: var(--hover); }
.fm-entry.selected { background: var(--hover); }


.fm-entry--hidden { opacity: 0.45; }


.fm-entry-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.fm-entry-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.fm-entry-icon--dir  { color: var(--t2); }
.fm-entry-icon--file { color: var(--t3); }

.fm-entry-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.fm-entry-size,
.fm-entry-type,
.fm-entry-date {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--t2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.fm-sentinel { height: 1px; pointer-events: none; }



.fm-statusbar {
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--t3);
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--bg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




.fm-ctx { z-index: 310; }


.fm-ctx-goto {
    position: relative;
    justify-content: space-between;
    color: var(--t1);
}
.fm-ctx-arrow {
    width: 12px;
    height: 12px;
    color: var(--t3);
    margin-left: auto;
    flex-shrink: 0;
}


.ctx-item--disabled {
    opacity: 0.28;
    pointer-events: none;
    cursor: default;
}



.fm-submenu {
    position: fixed;
    background: rgb(9,10,11);
    border: 1px solid var(--line2);
    border-radius: var(--r-lg);
    z-index: 320;
    min-width: 180px;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    animation: ctx-open 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}




.fm-rename-input {
    position: fixed;
    z-index: 330;
    min-height: 26px;
    padding: 3px 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    background: var(--surface);
    border: 1px solid var(--t3);
    border-radius: calc(var(--r) - 1px);
    outline: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.7);
    transition: border-color 0.12s;
}
.fm-rename-input:focus {
    border-color: var(--t3);
}



.fm-progress-bar-wrap {
    padding: 8px 14px 10px;
    border-top: 1px solid var(--line);
    background: var(--bg);
    flex-shrink: 0;
}

.fm-progress-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-progress-track {
    height: 4px;
    background: var(--hover);
    border-radius: 99px;
    overflow: hidden;
}

.fm-progress-fill {
    height: 100%;
    
    background: var(--t3);
    border-radius: 99px;
    transition: width 0.15s linear;
}

@keyframes fm-progress-pulse {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(400%);  }
}

.fm-progress--indeterminate {
    animation: fm-progress-pulse 1.4s ease-in-out infinite;
    width: 30% !important;
    transition: none !important;
}



#hostsDrawer {
    width: min(92vw, 820px);
    height: min(86vh, 640px);
    max-height: min(86vh, 640px);
    background: var(--bg);
}

.hosts-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 0;
    overflow: hidden;
}

.hosts-body .settings-input {
    flex: 1;
    height: auto;
    min-height: 0;
    resize: none;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.6;
    padding: 11px 13px;
}

.hosts-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}



@keyframes lv-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

#loginView {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--topbar-h) + 24px) 20px 24px;
    overflow: hidden;
}

#loginView.active { display: flex; }



#loginView.home-mode .login-card { display: none !important; }

.login-card {
    width: 100%;
    max-width: 448px;
    background: rgb(22,22,22);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 32px 36px 36px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.20) inset;
    animation: lv-rise 0.42s cubic-bezier(0.25,1,0.5,1) both;
}

.login-brand-mark {
    font-family: "Cascadia Mono", "Cascadia Code", "Geist Mono", ui-monospace, monospace;
    font-size: 18px;
    font-weight: 400;
    color: rgb(246,247,248);
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.login-title {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 600;
    color: rgb(246,247,248);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 8px;
}

.login-subtitle {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    color: rgba(244,244,243,0.72);
    margin: 0 0 24px;
    line-height: 1.714;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-field-input {
    width: 100%;
    background: rgb(9,10,11);
    border: 1px solid rgba(244,244,243,0.10);
    border-radius: 4px;
    padding: 4px 12px;
    height: 44px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(246,247,248);
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.login-field-input::placeholder { color: rgba(244,244,243,0.72); }

.login-field-input:focus {
    outline: 2px solid rgba(66,189,160,0.3);
    outline-offset: 2px;
    border-color: rgba(244,244,243,0.10);
    box-shadow: 0 0 0 2px rgba(66,189,160,0.2);
}

.login-btn {
    margin-top: 4px;
    background: rgb(66,189,160);
    border: none;
    border-radius: var(--r-lg);
    padding: 8px 16px;
    width: 100%;
    height: 44px;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    letter-spacing: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(66,189,160,0.15), 0 2px 4px -2px rgba(66,189,160,0.15);
    transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
    user-select: none;
}

.login-btn:hover:not(:disabled) {
    filter: brightness(1.10);
    box-shadow: 0 10px 15px -3px rgba(66,189,160,0.2), 0 4px 6px -4px rgba(66,189,160,0.2);
}

.login-btn:active:not(:disabled) {
    transform: scale(0.98);
    transition-duration: 0.08s;
}

.login-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; }

.login-spinner {
    width: 13px; height: 13px;
    border: 1.5px solid rgba(255,255,255,0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.55s linear infinite;
    display: none;
    flex-shrink: 0;
}

.login-btn-icon { flex-shrink: 0; width: 16px; height: 16px; margin-right: 8px; }
.login-btn.loading .login-spinner { display: block; }
.login-btn.loading .login-btn-icon { display: none; }
.login-btn.loading .login-btn-text { opacity: 0.5; }

.login-hint {
    font-size: 12px;
    font-weight: 400;
    color: rgba(244,244,243,0.35);
    text-align: center;
    min-height: 16px;
    margin-top: 14px;
}



.ctx-item {
    padding: 7px 14px;
    font-size: 12px;
    color: var(--t2);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.ctx-item:hover { background: var(--hover); color: var(--t1); }


.login-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}
.login-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: rgba(244,244,243,0.5);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.login-tab.active {
    background: rgba(255,255,255,0.1);
    color: rgba(244,244,243,0.95);
}
.login-tab:hover:not(.active) {
    color: rgba(244,244,243,0.75);
}