:root {
    --bg: #171c29;
    --panel: #252f43;
    --panel-soft: #202a3d;
    --element: #344461;
    --accent: #829be8;
    --text: #e8edfa;
    --muted: #9aa8c2;
    --border: rgba(177, 194, 226, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.topbar {
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(calc((100% - 1120px) / 2), 28px);
    background: rgba(23, 28, 41, .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.3px; }
.brand-mark {
    width: 34px; height: 34px; display: grid; place-items: center;
    background: var(--accent); color: #171c29; border-radius: 10px;
    font-size: 13px; font-weight: 900;
}

.main-nav { display: flex; gap: 8px; height: 100%; align-items: center; }
.main-nav a {
    padding: 10px 16px; color: var(--muted); border-radius: 9px;
    font-size: 14px; transition: .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: var(--panel); }
.main-nav a.active { box-shadow: inset 0 -2px var(--accent); }

.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button {
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    position: relative;
}
.icon-button:hover, .icon-button.active { background: var(--panel); }
.icon-button svg, .search-input-wrap svg {
    width: 19px; height: 19px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.notification-dot {
    position: absolute; width: 7px; height: 7px; top: 7px; right: 7px;
    background: var(--accent); border-radius: 50%; border: 1px solid var(--bg);
}
.avatar, .small-avatar {
    display: grid; place-items: center; flex-shrink: 0;
    background: #405477; color: #eef2ff; font-weight: 700;
    border: 1px solid rgba(255,255,255,.12);  
}
.avatar { width: 37px; height: 37px; border-radius: 50%; }
.account-wrap { position: relative; }
.account-toggle { cursor: pointer; }
.account-menu {
    display: none; position: absolute; top: 49px; right: 0; width: 235px;
    padding: 10px; background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 15px 40px #080c16a8;
}
.account-menu.open { display: block; }
.account-menu-user { display: flex; align-items: center; gap: 11px; padding: 8px; }
.account-menu-user strong, .account-menu-user small { display: block; }
.account-menu-user small { color: var(--muted); margin-top: 3px; }
.menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.menu-item { display: flex; justify-content: space-between; padding: 11px 9px; border-radius: 7px; font-size: 13px; }
.menu-item:hover { background: var(--element); }
.menu-danger { color: #e89a9a; }

.page-container { max-width: 1000px; margin: 0 auto; padding: 54px 28px 80px; min-height: calc(100vh - 140px); }
.profile-heading { display: flex; align-items: center; gap: 22px; position: relative; }
.profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #536d9f, #344461);
    font-size: 42px;
    font-weight: 700;
    border: 1px solid #8098c94d;
}
.profile-identity { flex: 1; }
.name-line { display: flex; align-items: center; gap: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 29px; letter-spacing: -.8px; margin-bottom: 7px; }
h2 { font-size: 21px; letter-spacing: -.4px; margin: 5px 0 0; }
h3 { font-size: 18px; margin: 18px 0 9px; }
.profile-identity p { margin: 11px 0 0; font-size: 14px; }
.muted { color: var(--muted); }
.verified {
    display: inline-grid; place-items: center; width: 19px; height: 19px;
    border-radius: 50%; background: var(--accent); color: #172035;
    font-size: 12px; font-weight: 900;
}
.id-separator { padding: 0 5px; color: var(--element); }
.outline-button {
    background: transparent; border: 1px solid var(--border); padding: 10px 15px;
    border-radius: 9px; cursor: pointer; font-size: 13px;
}
.outline-button:hover { background: var(--panel); border-color: var(--accent); }

.profile-stats {
    display: flex; gap: 0; margin: 30px 0 55px;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 17px 0;
}
.profile-stats div { min-width: 130px; display: flex; flex-direction: column; gap: 5px; }
.profile-stats strong { font-size: 19px; }
.profile-stats span { color: var(--muted); font-size: 12px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.eyebrow, .block-label {
    color: var(--accent); font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px;
}
.section-heading h2 { margin-top: 7px; }
.section-heading > .muted { font-size: 12px; }

.profile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.content-block {
    grid-column: span 3; background: var(--panel); border: 1px solid var(--border);
    border-radius: 13px; padding: 21px; min-height: 185px;
    position: relative; overflow: hidden;
}
.content-block::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image: linear-gradient(rgba(130,155,232,.12) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(130,155,232,.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(135deg, black, transparent 75%);
}
.block-wide { grid-column: span 6; }
.block-top { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.block-symbol, .section-number { color: #7183a5; font-size: 12px; }
.content-block h3, .content-block p, .data-line, .empty-state, .achievement-placeholder { position: relative; z-index: 1; }
.content-block p { font-size: 13px; line-height: 1.6; max-width: 550px; }
.data-line { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding: 11px 0; font-size: 12px; }
.data-line span { color: var(--muted); }
.empty-state { color: var(--muted); font-size: 13px; line-height: 1.6; padding: 22px 0; }
.achievement-placeholder { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.achievement-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--element); border-radius: 12px; color: var(--accent); font-size: 22px; }
.achievement-placeholder strong { font-size: 14px; }
.achievement-placeholder p { margin: 5px 0 0; }
.achievement-tag { margin-left: auto; color: var(--accent); font-size: 11px; }

.page-heading { margin-bottom: 38px; }
.page-heading h1 { font-size: 32px; margin-top: 8px; }
.people-section, .notifications-section { margin-bottom: 38px; }
.people-title, .group-heading { display: flex; align-items: center; justify-content: space-between; }
.people-title h2, .group-heading h2 { margin-top: 7px; }
.section-description { font-size: 13px; line-height: 1.6; max-width: 650px; margin: 12px 0 20px; }
.people-list { border-top: 1px solid var(--border); }
.person-row { display: flex; align-items: center; gap: 13px; padding: 15px 8px; border-bottom: 1px solid var(--border); }
.small-avatar { width: 42px; height: 42px; border-radius: 50%; font-size: 13px; }
.person-info { display: flex; flex-direction: column; gap: 5px; }
.person-info strong { font-size: 14px; }
.person-info > span { color: var(--muted); font-size: 12px; }
.small-check { width: 14px; height: 14px; font-size: 9px; vertical-align: 1px; }
.person-description { margin-left: auto; color: var(--muted); font-size: 12px; }
.creator-section { background: var(--panel-soft); padding: 23px; border: 1px solid var(--border); border-radius: 13px; }
.creator-note { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 24px; }

.count-pill { background: var(--element); padding: 5px 9px; border-radius: 20px; font-size: 11px; }
.notification-group { margin-bottom: 38px; }
.notification-item { display: flex; align-items: center; gap: 14px; padding: 16px 12px; border-bottom: 1px solid var(--border); }
.notification-item.unread { background: #829be80b; border-radius: 9px; }
.notification-content { flex: 1; }
.notification-content strong { font-size: 14px; }
.notification-content p { font-size: 13px; color: var(--muted); margin: 5px 0; }
.notification-content > span { font-size: 11px; color: #7888a6; }
.mark-read { background: transparent; border: 0; font-size: 23px; color: var(--accent); cursor: pointer; }
.mark-read:hover { transform: scale(1.12); }
.muted-avatar { opacity: .65; }
.date-group { margin-top: 18px; }
.date-label { color: var(--muted); font-size: 12px; padding: 10px 0; }

.search-overlay {
    display: none; position: fixed; inset: 72px 0 0; z-index: 30;
    background: rgba(7, 11, 20, .55); backdrop-filter: blur(3px);
    padding: 18px;
}
.search-overlay.open { display: block; }
.search-panel {
    max-width: 600px; margin: 0 auto; padding: 18px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 20px 60px #080c16a8;
}
.search-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; margin-bottom: 15px; }
.close-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.search-input-wrap { display: flex; align-items: center; gap: 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 0 12px; }
.search-input-wrap input { width: 100%; padding: 13px 0; background: transparent; color: var(--text); border: 0; outline: 0; font-size: 13px; }
.search-input-wrap kbd { color: var(--muted); font-size: 10px; white-space: nowrap; }
.search-results { padding-top: 10px; }
.search-hint { padding: 17px 5px; font-size: 12px; color: var(--muted); }
.search-result { display: flex; align-items: center; gap: 12px; padding: 10px 5px; border-radius: 8px; }
.search-result:hover { background: var(--element); }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 13px; }
.search-result small { color: var(--muted); font-size: 11px; margin-top: 4px; }

.site-footer {
    max-width: 1000px; margin: 0 auto; padding: 20px 28px 28px;
    display: flex; justify-content: space-between; color: #7888a6;
    font-size: 11px; border-top: 1px solid var(--border);
}

@media (max-width: 650px) {
    .topbar { height: 62px; padding: 0 15px; }
    .brand { font-size: 13px; gap: 7px; }
    .brand-mark { width: 30px; height: 30px; }
    .main-nav { gap: 0; }
    .main-nav a { padding: 9px 8px; font-size: 12px; }
    .top-actions { gap: 4px; }
    .icon-button { width: 34px; height: 34px; }
    .page-container { padding: 35px 17px 55px; }
    .profile-heading { flex-wrap: wrap; gap: 14px; }
    .profile-avatar { width: 76px; height: 76px; font-size: 32px; border-radius: 19px; }
    .profile-identity h1 { font-size: 23px; }
    .profile-action { width: 100%; }
    .profile-stats { overflow-x: auto; margin: 25px 0 40px; }
    .profile-stats div { min-width: 105px; }
    .profile-grid { grid-template-columns: 1fr; }
    .content-block, .block-wide { grid-column: span 1; }
    .section-heading { align-items: start; gap: 12px; }
    .section-heading > .muted { text-align: right; }
    .person-description { display: none; }
    .site-footer { padding: 18px; gap: 10px; flex-wrap: wrap; }
    .search-overlay { inset-top: 62px; top: 62px; }
}