* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f6f2ee; color: #2f2a27; }
a { color: #7a4b2b; text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
.topbar { background: #fff; border-bottom: 1px solid #e0d6cc; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand, .brand a { font-size: 24px; font-weight: 900; color: #2f2a27; }
nav { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.footer { text-align: center; padding: 30px; color: #7b716b; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card, form { background: #fff; border: 1px solid #e3d9cf; border-radius: 18px; padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.05); margin-bottom: 16px; }
.card h2, .card h3 { margin-top: 0; }
.btn, button { display: inline-block; border: 0; background: #8b5e3c; color: #fff; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.btn:hover, button:hover { background: #70492d; text-decoration: none; }
.btn.secondary { background: #d4b59a; color: #2f2a27; }
.btn.danger { background: #a33b3b; }
label { display: block; margin-top: 14px; font-weight: 800; }
input, select, textarea { width: 100%; padding: 11px; margin-top: 6px; border: 1px solid #cabaae; border-radius: 12px; font-size: 15px; background: #fffdfb; }
textarea { min-height: 140px; resize: vertical; }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.meta { color: #766d66; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 12px; background: #eaf6ea; border: 1px solid #b8ddb8; margin-bottom: 15px; }
.error { padding: 12px 14px; border-radius: 12px; background: #ffeaea; border: 1px solid #e1a3a3; margin-bottom: 15px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid #eee2d9; text-align: left; vertical-align: top; }
.table th { background: #eadfd4; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #eadfd4; font-size: 13px; }
hr { border: 0; border-top: 1px solid #eee2d9; margin: 18px 0; }

.actions.compact { margin-top: 0; gap: 6px; }
.actions.compact .btn { padding: 7px 9px; font-size: 13px; }

.cat-avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid #eadfd4; background: #f6f2ee; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.cat-profile-large { width: 180px; height: 180px; border-radius: 28px; object-fit: cover; border: 3px solid #eadfd4; background: #f6f2ee; display: flex; align-items: center; justify-content: center; font-size: 56px; margin-bottom: 14px; }
.cat-profile-large.placeholder { color: #8b5e3c; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checkline input { width: auto; margin: 0; }


.flash {
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-weight: 600;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.cat-grid .cat-card { text-align: center; }
.cat-grid .cat-profile-large { margin-left: auto; margin-right: auto; }
.public-profile { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
@media (max-width: 700px) {
    .public-profile { grid-template-columns: 1fr; }
}
