#khnq-v {
    position: fixed;
    z-index: 999999;
    font: 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ═══ DESKTOP ═══ */
@media (min-width: 769px) {
    #khnq-v { left: 20px; bottom: 20px; }

    #khnq-v-card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,.1);
        overflow: hidden;
        transition: width .3s ease, box-shadow .3s ease;
        width: 195px;
    }

    /* Expanded state */
    #khnq-v-expandable { display: block; }
    #khnq-v-mini { display: none; }

    /* Collapsed state */
    #khnq-v-card.khnq-v-collapsed {
        width: auto;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }
    #khnq-v-card.khnq-v-collapsed #khnq-v-expandable { display: none; }
    #khnq-v-card.khnq-v-collapsed #khnq-v-mini { display: flex; }

    #khnq-v-mini {
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        font-size: 12px;
        white-space: nowrap;
        cursor: pointer;
        height: 35px;
    }
    #khnq-v-mini strong { font-size: 13px; }

    #khnq-v-head {
        display: flex;
        align-items: center;
        padding: 5px 10px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        height: 35px;
        cursor: pointer;
        user-select: none;
    }

    #khnq-v-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; }

    .khnq-v-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #eef2f6;
        transition: .2s;
        cursor: default;
    }
    .khnq-v-row:hover {
        background: #fff;
        border-color: #dde3ea;
        box-shadow: 0 1px 6px rgba(0,0,0,.05);
    }

    .khnq-v-lbl { font-size: 12px; color: #475569; font-weight: 500; }
    .khnq-v-num { font-size: 14px; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }

    #khnq-v-bar { display: none; }
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
    #khnq-v { left: 12px; bottom: 12px; }

    #khnq-v-card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,.12);
        overflow: hidden;
        transition: width .3s ease, box-shadow .3s ease;
        width: 185px;
    }

    /* Expanded state */
    #khnq-v-expandable { display: block; }
    #khnq-v-mini { display: none; }

    /* Collapsed state */
    #khnq-v-card.khnq-v-collapsed {
        width: auto;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }
    #khnq-v-card.khnq-v-collapsed #khnq-v-expandable { display: none; }
    #khnq-v-card.khnq-v-collapsed #khnq-v-mini { display: flex; }

    #khnq-v-mini {
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        font-size: 12px;
        white-space: nowrap;
        cursor: pointer;
    }
    #khnq-v-mini strong { font-size: 13px; }

    #khnq-v-head {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        user-select: none;
    }

    #khnq-v-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; }

    .khnq-v-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 7px 10px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #eef2f6;
    }
    .khnq-v-row:active { background: #eef2f6; }

    .khnq-v-lbl { font-size: 12px; color: #475569; font-weight: 500; }
    .khnq-v-num { font-size: 14px; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
}
