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

body {
    background: #000;
    color: #3399ff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #3399ff;
    text-decoration: underline;
}
a:hover { color: #fff; }

/* --- two-column page layout --- */
#layout {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
}

/* --- left col: scrollable --- */
#main-col {
    flex: 1;
    min-width: 200px;
    padding: 24px;
    overflow: hidden;
}

/* --- draggable divider --- */
#divider {
    width: 5px;
    flex-shrink: 0;
    cursor: col-resize;
    background: #111;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: background 0.15s;
    user-select: none;
}
#divider:hover,
#divider.dragging {
    background: #3399ff;
}

/* --- right sidebar: sticky --- */
#sidebar {
    width: 260px;
    min-width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 20px;
    scrollbar-width: none;
}
#sidebar::-webkit-scrollbar { display: none; }

/* --- sidebar internals --- */
.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-label {
    color: #444;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

#sidebar-avatar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #111;
}

.avatar-ring {
    width: 44px;
    height: 44px;
    border: 1px solid #3399ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #3399ff;
    margin-bottom: 8px;
    user-select: none;
}

.avatar-name {
    font-size: 15px;
    font-weight: bold;
    color: #3399ff;
}

.avatar-sub {
    font-size: 11px;
    color: #444;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-bio {
    color: #6699bb;
    font-size: 12px;
    line-height: 1.8;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-tags span {
    font-size: 11px;
    color: #3399ff;
    border: 1px solid #1a3a5c;
    padding: 2px 7px;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-links a {
    font-size: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6699bb;
}
.sidebar-links a:hover { color: #fff; }
.sidebar-links a i { font-size: 14px; width: 14px; }

.matrix-badge {
    font-size: 12px;
    font-weight: bold;
}

/* --- header --- */
header {
    margin-bottom: 32px;
    border-bottom: 1px solid #3399ff;
    padding-bottom: 12px;
}

header h1 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 6px;
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
}

nav a {
    text-decoration: none;
    color: #3399ff;
}
nav a:hover { color: #fff; text-decoration: underline; }
nav a i { font-size: 15px; }

/* --- repo list --- */
#status {
    color: #888;
    margin-bottom: 20px;
    font-size: 12px;
}

.repo {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #111;
}

.repo-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 2px;
}

.repo-name a { text-decoration: none; }
.repo-name a:hover { text-decoration: underline; }

.repo-desc {
    color: #aac8ff;
    margin-bottom: 4px;
}

.repo-meta {
    color: #555;
    font-size: 12px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.lang  { color: #7799cc; }
.stars { color: #7799cc; }
.forks { color: #7799cc; }

.pinned-label {
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

/* --- footer --- */
footer {
    margin-top: 32px;
    border-top: 1px solid #3399ff;
    padding-top: 10px;
    color: #555;
    font-size: 12px;
}

#error { color: #ff4444; }

/* --- responsive --- */
@media (max-width: 640px) {
    #layout { flex-direction: column; }
    #divider { display: none; }
    #sidebar {
        width: 100% !important;
        height: auto;
        position: static;
        border-top: 1px solid #111;
        padding: 20px 24px;
    }
}