:root { --ink:#1d2a33; --muted:#6b7a86; --line:#dde3e8; --bg:#f5f7f8; --brand:#1f5f8b; --brand-dark:#164769; --ok:#2e7d4f; --warn:#b26a00; --bad:#b3261e; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); }
.wrap { max-width:1120px; margin:0 auto; padding:0 20px; }
.topbar { background:#fff; border-bottom:1px solid var(--line); }
.topbar-inner { display:flex; align-items:center; justify-content:space-between; min-height:60px; gap:16px; flex-wrap:wrap; }
.brand { font-weight:700; font-size:1.2rem; text-decoration:none; color:var(--ink); }
nav { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
nav a { text-decoration:none; }
form.inline { display:inline; margin:0; }
button.link { background:none; border:0; color:var(--brand); cursor:pointer; padding:0; font:inherit; }
button.link.danger { color:var(--bad); }
.btn { display:inline-block; background:var(--brand); color:#fff; border:0; border-radius:6px; padding:10px 18px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--brand-dark); }
.btn.small { padding:6px 12px; font-size:.9rem; }
.btn.secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.btn[disabled] { opacity:.5; cursor:not-allowed; }
main { padding:24px 20px 48px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px 24px; margin-bottom:20px; }
.card.narrow { max-width:620px; margin:0 auto 20px; }
.hero { padding:16px 0 8px; }
.hero h1 { margin:0 0 4px; }
.muted { color:var(--muted); }
.msg { padding:10px 14px; border-radius:6px; margin-bottom:16px; background:#e8f1f8; }
.msg.success { background:#e6f4ea; } .msg.error { background:#fdecea; } .msg.warning { background:#fff4e0; }
.field { margin-bottom:14px; display:flex; flex-direction:column; gap:4px; }
.field label { font-weight:600; font-size:.9rem; }
.field small { color:var(--muted); }
input, select, textarea { font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; }
textarea { min-height:100px; }
.field ul { list-style:none; padding:0; margin:0; display:flex; gap:12px; flex-wrap:wrap; }
.errorlist { color:var(--bad); margin:0; padding-left:18px; font-size:.9rem; }
.filters { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; align-items:end; }
.filters .field { margin:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:20px; }
.course-card { background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column; }
.course-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.08); }
.course-card img, .cover-placeholder { width:100%; height:170px; object-fit:cover; }
.cover-placeholder { background:linear-gradient(135deg, #9fb7c8, #4d7392); color:#fff; display:flex; align-items:center; justify-content:center; font-size:3rem; }
.course-card .body { padding:14px 16px; }
.course-card h3 { margin:8px 0 2px; }
.tag { display:inline-block; font-size:.75rem; padding:2px 8px; border-radius:99px; background:#eef2f5; color:var(--ink); }
.tag.verified, .tag.confirmed, .tag.published, .tag.scheduled { background:#e6f4ea; color:var(--ok); }
.tag.pending, .tag.pending_payment, .tag.needs_review, .tag.draft { background:#fff4e0; color:var(--warn); }
.tag.rejected, .tag.cancelled, .tag.expired, .tag.suspended, .tag.refunded { background:#fdecea; color:var(--bad); }
.price { font-weight:700; }
.price.big { font-size:1.6rem; margin:0; }
.detail { display:grid; grid-template-columns:2fr 1fr; gap:20px; }
.detail .cover { width:100%; border-radius:8px; margin-bottom:12px; }
.lead { font-size:1.1rem; }
.session { display:flex; align-items:center; gap:8px; justify-content:space-between; padding:10px 0; border-top:1px solid var(--line); }
.session input { width:64px; }
table { width:100%; border-collapse:collapse; margin-bottom:12px; }
th, td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--line); vertical-align:top; }
.blockers { color:var(--warn); }
.inline-form { display:flex; gap:12px; align-items:end; flex-wrap:wrap; }
.inline-form .field { margin:0; }
.pager { margin:20px 0; display:flex; gap:12px; justify-content:center; }
.footer { color:var(--muted); font-size:.85rem; padding:24px 20px; }
@media (max-width:800px) { .detail { grid-template-columns:1fr; } }
