:root { --primary:#2563eb; --danger:#ef4444; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif; background:#f6f8fb; color:#111827; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.container.narrow { max-width: 520px; }
.topbar { background:#ffffff; border-bottom:1px solid #e5e7eb; }
.topbar .brand { font-weight:700; text-decoration:none; color:#111827; }
.topbar .spread { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar.public { position:sticky; top:0; z-index:2; }
.footer { border-top:1px solid #e5e7eb; background:#fff; padding:20px 0; margin-top:40px; }
h1,h2,h3 { margin: 0 0 10px; }
label { display:block; font-size:14px; color:#334155; margin-bottom:10px; }
label input, label textarea, label select { width:100%; padding:10px; border:1px solid #e5e7eb; border-radius:8px; margin-top:6px; background:#fff; }
.btn { background: var(--primary); color:#fff; border: none; padding:10px 14px; border-radius:10px; text-decoration:none; display:inline-block; cursor:pointer; }
.btn:hover { filter: brightness(0.95); }
.btn-light { background:#f3f4f6; color:#111827; }
.btn-danger { background: var(--danger); color:#fff; }
.alert { padding:10px 12px; border-radius:8px; }
.alert-danger { background:#fee2e2; color:#991b1b; }
.toolbar { display:flex; gap:10px; align-items:center; margin:16px 0; }
.toolbar.spread { justify-content: space-between; }
.toolbar.right { justify-content: flex-end; }
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
@media (max-width: 720px){ .grid-2 { grid-template-columns: 1fr; } }
.cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:16px; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; }
.card .row-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.timeline { display: grid; gap: 14px; overflow-x : scroll;}
@media (min-width: 1024px) { .timeline { grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); } }
.month-col { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:10px; }
.month-title { font-weight:700; margin-bottom:8px; position:sticky; top:0; background:#fff; }
.events { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.event { position:relative; display:flex; gap:10px; align-items:flex-start; }
.event-line { width:8px; border-radius:999px; background:#dbeafe; flex:0 0 8px; margin:6px 0 0 2px; }
.event-card { background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px; padding:8px 10px; flex:1; }
.event-head { font-size:14px; margin-bottom:6px; }
.event-date { color:#111827; font-variant-numeric: tabular-nums; }
.event-channels { display:flex; flex-direction:column; gap:6px; }
@media (min-width: 640px){ .event-channels { flex-direction:row; flex-wrap:wrap; } }
.ch-badge { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; background:#fff; border:1px solid #e5e7eb; border-radius:999px; font-size:12px; }
.ch-ico { width:16px; height:16px; display:inline-block; }
.ch-name { font-weight:600; }
.ch-budget { color:#111827; }
.ch-kpi { color:#6b7280; font-style:italic; }
.channels-grid { display:grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap:10px; }
@media (min-width: 840px){ .channels-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.channel-row { display:grid; grid-template-columns: 1fr 140px 1fr; gap:8px; align-items:center; padding:10px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; }
.channel-row .chk { display:flex; align-items:center; gap:8px; }
