body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
    background: #f2f2f7;
    color: #111;
}

.app {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px;
}

h1 {
    font-size: 22px;
    margin: 8px 0 16px;
}

.nav button {
    margin-right: 6px;
}

.legend {
    margin-bottom: 12px;
    font-size: 13px;
}

.lg {
    display:inline-block;
    margin-left:8px;
    padding:2px 6px;
    border-radius:6px;
    border:1px solid #ccc;
}

.missing { background:#ffd6d6; border-color:#ff3b30; }
.have    { background:#d4f8d4; border-color:#34c759; }
.double  { background:#fff4cc; border-color:#ffcc00; }

.group {
    background:#fff;
    border-radius:16px;
    padding:12px 14px;
    margin-bottom:14px;
    box-shadow:0 4px 10px rgba(0,0,0,0.06);
}

.country {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:8px;
    margin-bottom:4px;
    font-weight:600;
}

.stickers {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:6px;
}

.sticker {
    min-width:42px;
    padding:4px 6px;
    border-radius:10px;
    border:1px solid #ccc;
    font-size:12px;
    text-align:center;
    cursor:pointer;
    user-select:none;
    transition:0.15s;
}

.sticker:hover {
    transform:translateY(-1px);
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

button {
    padding:6px 12px;
    font-size:12px;
    border-radius:8px;
    border:none;
    background:#007aff;
    color:white;
    cursor:pointer;
    transition:0.2s;
}

button:hover {
    background:#005fcc;
}

.auth-box {
    max-width:350px;
    margin:40px auto;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

.auth-box input,
.auth-box textarea,
.auth-box select {
    width:100%;
    padding:8px;
    margin-bottom:10px;
    border-radius:6px;
    border:1px solid #ccc;
}

.error { color:#ff3b30; margin-bottom:10px; }
.success { color:#34c759; margin-bottom:10px; }

.chat-container {
    max-width:600px;
    margin:20px auto;
}

.chat-box {
    background:white;
    padding:10px;
    border-radius:10px;
    height:300px;
    overflow-y:auto;
    margin-bottom:10px;
}

.chat-msg {
    padding:6px;
    border-bottom:1px solid #eee;
}

.delete-btn {
    float:right;
    color:red;
    text-decoration:none;
}
