*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f5f5f5; color: #222; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; }
.card { position: relative; background: #fff; border-radius: 12px; padding: 2.5rem 3rem; box-shadow: 0 4px 24px rgba(0,0,0,0.08); width: 100%; max-width: 860px; }

.avatar-menu { position: absolute; top: 1rem; right: 1rem; }
.avatar-btn { width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: 2px solid #e0e0e0; padding: 0; overflow: hidden; background: #e8eaf6; display: flex; align-items: center; justify-content: center; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn-initials { font-size: 0.85rem; font-weight: 600; color: #3c4043; line-height: 1; }
.avatar-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.14); min-width: 130px; overflow: hidden; display: none; z-index: 10; }
.avatar-dropdown.open { display: block; }
.avatar-dropdown form button { width: 100%; text-align: left; padding: 0.7rem 1rem; background: none; border: none; cursor: pointer; font-size: 0.9rem; color: #c5221f; }
.avatar-dropdown form button:hover { background: #fce8e6; }

h1 { font-size: 1.5rem; margin-bottom: 1.25rem; }
p { margin-bottom: 1rem; color: #555; font-size: 0.95rem; }

a.btn, button.btn { display: inline-block; padding: 0.6rem 1.4rem; border-radius: 8px; border: none; cursor: pointer; font-size: 0.95rem; text-decoration: none; }
.btn-primary { background: #4285f4; color: #fff; }
.btn-primary:hover { background: #3367d6; }
.btn-danger { background: #ea4335; color: #fff; }
.btn-danger:hover { background: #c5221f; }
.btn-secondary { background: #e8f0fe; color: #1a73e8; }
.btn-secondary:hover { background: #d2e3fc; }

.alert { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
.alert img { flex-shrink: 0; }
.alert-success { background: #e6f4ea; color: #1e8e3e; }
.alert-info    { background: #e8f0fe; color: #1a73e8; }
.alert-warning { background: #fef7e0; color: #b06000; }
.alert-error   { background: #fce8e6; color: #c5221f; }

.meta { font-size: 0.82rem; color: #888; margin-top: 0.3rem; }
.status { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; }
.status-synced { background: #e6f4ea; color: #1e8e3e; }
.status-pending { background: #fef7e0; color: #b06000; }
.status-error { background: #fce8e6; color: #c5221f; }
.actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

#snackbar { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px); background: #323232; color: #fff; padding: 0.7rem 1.4rem; border-radius: 8px; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 9999; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
#snackbar.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#snackbar.snack-primary { background: #1a73e8; }
#snackbar.snack-success { background: #188038; }
#snackbar.snack-danger  { background: #c5221f; }
#snackbar img { flex-shrink: 0; }
