:root {
    --bg: #f5f7fb;
    --card: #fff;
    --muted: #6b7280;
    --accent: #2563eb
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: #0f172a
}

.wrap {
    max-width: 1320px;
    margin: 36px auto;
    padding: 20px
}

header {
    display: flex;
    gap: 16px;
    align-items: center
}

.logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1e40af
}

.logo img {
    width: 100%;
}

.brand {
    display: flex;
    flex-direction: column
}

h1 {
    margin: 0;
    font-size: 20px
}

.lead {
    margin: 6px 0 0;
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 18px;
    margin-top: 18px
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06)
}

.profile .row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px dashed #eef2f6
}

.profile .row:last-child {
    border-bottom: 0
}

.links a {
    display: inline-block;
    margin: 6px 8px 6px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f5ff;
    text-decoration: none;
    color: #0b3a8c;
    font-weight: 600
}

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

.upload-item {
    display: flex;
    gap: 12px;
    align-items: center
}

.thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: transform 0.2s
}

.upload-item .meta {
    flex: 1
}

.upload-item .meta small {
    display: block;
    color: var(--muted)
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3)
}

footer {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px
}

@media (max-width:900px) {
    .grid {
        grid-template-columns: 1fr
    }
}