* { box-sizing: border-box; }

body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f6f4ef;
    color: #2c2c2a;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 20px;
}

h1 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.subtitle { color: #6b6a64; font-size: 14px; margin-bottom: 24px; }

.card {
    background: #fff;
    border: 1px solid #e4e1d6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

label { display: block; font-size: 13px; color: #6b6a64; margin-bottom: 4px; margin-top: 12px; }

input[type=text], input[type=email], input[type=password], textarea, select, input[type=file] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d6c9;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

textarea { resize: vertical; min-height: 100px; }

button, .btn {
    display: inline-block;
    width: 100%;
    margin-top: 16px;
    padding: 11px 16px;
    background: #3c3489;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
button:hover, .btn:hover { background: #2d2767; }

.error { background: #fcebeb; color: #791f1f; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.success { background: #eaf3de; color: #27500a; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }

.entry { border-bottom: 1px solid #eee; padding: 14px 0; }
.entry:last-child { border-bottom: none; }
.entry img { max-width: 100%; border-radius: 8px; margin: 8px 0; display: block; }

.mood-badge { display: inline-block; background: #eeedfe; color: #3c3489; font-size: 12px; padding: 3px 9px; border-radius: 100px; }
.date { color: #999; font-size: 12px; }

.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.link-muted { color: #6b6a64; font-size: 14px; text-decoration: none; }

.badge { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 100px; }
.badge-pending { background: #fdf2da; color: #8a5a00; }
.badge-active { background: #eaf3de; color: #27500a; }
.badge-revoked { background: #f1f0ec; color: #7a7872; }

.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.row:last-child { border-bottom: none; }

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #d9d6c9;
    background: #fff;
    color: #2c2c2a;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn-small.danger { color: #791f1f; border-color: #e6c9c9; }

.copy-box {
    background: #f6f4ef;
    border: 1px solid #e4e1d6;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    word-break: break-all;
    margin-top: 8px;
}

.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.checkbox-row input { width: auto; }

.share-badge { display: inline-block; background: #fbeaf3; color: #99275e; font-size: 12px; padding: 3px 9px; border-radius: 100px; }

nav.tabs { display: flex; gap: 16px; margin-bottom: 20px; }
nav.tabs a { color: #6b6a64; text-decoration: none; font-size: 14px; padding-bottom: 4px; }
nav.tabs a.active { color: #3c3489; font-weight: 600; border-bottom: 2px solid #3c3489; }
