* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #f4f7fb;
    margin: 0;
    color: #26272a;
}
header {
    background: #ff8c1a;
    color: white;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
header a { color: white; text-decoration: none; font-weight: 600; }
header nav { display: flex; gap: 18px; align-items: center; }
main { max-width: 960px; margin: 0 auto; padding: 24px; }
h1, h2 { margin-top: 0; }
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.item {
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
}
.item h3 { margin: 0 0 8px; font-size: 15px; word-break: break-word; }
.item .meta { font-size: 12px; color: #77797f; margin-bottom: 8px; }
.item .actions { display: flex; flex-wrap: wrap; gap: 6px; }
button, .btn {
    background: #ff8c1a;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
button.secondary, .btn.secondary { background: #4c97ff; }
button.danger, .btn.danger { background: #e64d4d; }
button:hover, .btn:hover { filter: brightness(0.92); }
input, textarea, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d3d6db;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}
.row { display: flex; gap: 20px; flex-wrap: wrap; }
.row > .card { flex: 1; min-width: 280px; }
.error { color: #e64d4d; font-size: 13px; margin-bottom: 8px; }
.hidden { display: none !important; }
.badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e3e6ea;
}
.badge.published { background: #4caf50; color: white; }
