* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 40px 20px;
    line-height: 1.5;
}
.container { max-width: 720px; margin: 0 auto; }
.card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.center { text-align: center; }
h1 { font-size: 32px; margin-bottom: 12px; font-weight: 600; }
h1.danger { color: #d70015; }
h2 { font-size: 22px; margin: 24px 0 16px; color: #444; font-weight: 500; }
h3 { font-size: 18px; margin-bottom: 6px; font-weight: 600; }
p { margin: 8px 0; }
.muted { color: #6e6e73; }
.small { font-size: 13px; }
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
    transition: opacity 0.15s, transform 0.15s;
    border: none;
    cursor: pointer;
    color: #1d1d1f;
    background: #e8e8ed;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: #0071e3; color: white; }
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.user-info { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; }
.user-name { font-weight: 500; }
.user-email { color: #6e6e73; font-size: 13px; }
.logout { color: #0071e3; text-decoration: none; font-size: 14px; }
.logout:hover { text-decoration: underline; }
.profile-card {
    border-left: 4px solid #0071e3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.profile-card .btn { margin-top: 0; }
.profile-info { flex: 1 1 200px; }
.profile-info h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.6;
}
.badge-mobile { background: #e8f3ff; color: #0050b3; }
.badge-desktop { background: #f0eaff; color: #531dab; }
.help ul { list-style: none; padding: 0; margin: 12px 0; }
.help li { padding: 6px 0; border-bottom: 1px solid #f0f0f5; }
.help li:last-child { border-bottom: none; }
.help a { color: #0071e3; text-decoration: none; }
.help a:hover { text-decoration: underline; }
.help code {
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    font-size: 13px;
}
