:root {
    --bg: #f7f9fb;
    --card: #ffffff;
    --text: #1c1f23;
    --muted: #6b7280;
    --accent: #5865F2;
    --line: #e6e9ee;
    --badge: #eef0ff;
}

html, body {
    height: auto;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Helvetica Neue, Arial, Noto Sans, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.wrap {
    width: 300px;
    box-sizing: border-box;
    overflow: visible;
    background: var(--bg);
}

header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

header img.logo {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}

header .title b {
    display: block;
    font-size: 14px;
}

header .title span {
    font-size: 12px;
    color: var(--muted);
}

.status {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.dot.cache {
    background: #f59e0b;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 10px;
    overflow: hidden;
}

.section-title {
    font-size: 12px;
    letter-spacing: .4px;
    padding: 8px 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: #fafbff;
}

.channel {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

.channel:last-child {
    border-bottom: 0;
}

.channel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chan-name {
    font-weight: 600;
    font-size: 13px;
}

.count {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--badge);
    color: var(--accent);
}

.members {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ddd;
    flex: 0 0 20px;
}

.m-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-status {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
    padding: 8px 10px;
    border: 0;
}

.discord-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
	margin-right: 5px; /* añade margen interior */
}

.discord-brand img {
    width: 18px;
    height: 18px;
}

.skeleton {
    animation: pulse 1.2s infinite ease-in-out;
    background: linear-gradient(90deg, #eee, #f7f7f7, #eee);
    background-size: 200% 100%;
}

@keyframes pulse {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.error {
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 10px;
    font-size: 12px;
}