:root {
    --ink: #24212a;
    --muted: #6d6878;
    --line: #e7e3ea;
    --paper: #ffffff;
    --bg: #f7f4f8;
    --accent: #c01770;
    --accent-dark: #861451;
    --green: #067a52;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
.topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 5vw;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 4;
}
.brand { font-weight: 800; font-size: 22px; color: var(--accent); }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--ink); font-weight: 600; font-size: 14px; }
.shell { width: min(1100px, 92vw); margin: 30px auto; }
.notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; background: #e9f8f1; color: var(--green); }
.notice.error { background: #fff0f0; color: #9e1b32; }
.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 160px);
}
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.02; margin: 0 0 12px; letter-spacing: 0; }
h2 { margin-top: 0; }
p { color: var(--muted); line-height: 1.6; }
form, .panel, .post, .composer, .profile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}
form, .panel { padding: 22px; }
label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-dark); color: #fff; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.narrow { max-width: 640px; margin-inline: auto; }
.balance { font-size: 42px; font-weight: 900; color: var(--accent); margin: 8px 0 22px; }
.qr { display: block; width: 220px; max-width: 100%; margin: 0 auto 16px; }
.panel textarea { min-height: 92px; font-size: 13px; }
.composer { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding: 18px; margin-bottom: 22px; }
.composer form { padding: 0; border: 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #ddd; }
.avatar.large { width: 112px; height: 112px; margin-top: -56px; border: 4px solid #fff; }
.feed { display: grid; gap: 18px; }
.post { padding: 18px; }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-head span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.media, video { width: 100%; max-height: 720px; object-fit: contain; border-radius: 8px; background: #111; }
.profile { overflow: hidden; text-align: center; padding-bottom: 32px; }
.cover { height: 220px; background: linear-gradient(120deg, #c01770, #176c75); background-size: cover; background-position: center; }

@media (max-width: 760px) {
    .topbar { height: auto; min-height: 64px; padding-block: 12px; align-items: flex-start; }
    .auth-panel, .grid { grid-template-columns: 1fr; }
    .composer { grid-template-columns: 1fr; }
    h1 { font-size: 34px; }
}
