/* Radar Studio -- Events (2026-10-19). */
#events .ev-actions { display: flex; gap: 8px; align-items: flex-start; }
#events .ev-form { display: grid; gap: 10px; max-width: 560px; }
#events .ev-form label { display: grid; gap: 4px; font-weight: 600; }
#events .ev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#events .ev-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#events .ev-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
#events .ev-card { display: grid; gap: 2px; text-align: left; padding: 10px 14px; min-width: 200px; border: 1px solid var(--line, #d8dee6); border-radius: 8px; background: var(--panel, #fff); color: inherit; cursor: pointer; }
#events .ev-card.active { border-color: #087edc; box-shadow: 0 0 0 2px rgba(8,126,220,.18); }
#events .ev-card.archived { opacity: .6; }
#events .ev-card small { color: var(--muted, #5b6472); }
#events .ev-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; }
#events .ev-head-l { flex: 1; min-width: 0; }
#events .ev-head h3 { margin: 0 0 4px; }
#events .ev-link { word-break: break-all; }
#events .ev-qr { width: 168px; height: 168px; background: #fff; border: 1px solid #e3e7ec; border-radius: 8px; padding: 6px; flex: none; }
#events .ev-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
#events .ev-metric { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line, #d8dee6); border-radius: 8px; background: var(--panel, #fff); }
#events .ev-metric-v { font-size: 26px; font-weight: 700; line-height: 1.1; }
#events .ev-metric-l { font-weight: 600; }
#events .ev-warn { color: #9a3b00; font-weight: 600; }
#events .ev-bars h4, #events .ev-hourly h4 { margin: 0 0 8px; }
#events .ev-bar-row { display: grid; grid-template-columns: 110px 1fr 48px; gap: 8px; align-items: center; margin: 4px 0; }
#events .ev-bar-track { height: 10px; background: rgba(127,127,127,.15); border-radius: 5px; overflow: hidden; }
#events .ev-bar { display: block; height: 100%; background: linear-gradient(90deg, #08cfc2, #087edc); }
#events .ev-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
#events .ev-chart { display: flex; gap: 6px; align-items: flex-end; height: 160px; overflow-x: auto; padding-bottom: 18px; position: relative; }
#events .ev-col { position: relative; display: flex; gap: 2px; align-items: flex-end; height: 140px; min-width: 26px; }
#events .ev-cbar { display: block; width: 7px; min-height: 1px; border-radius: 2px 2px 0 0; }
#events .ev-s { background: #087edc; }
#events .ev-o { background: #00b7ef; }
#events .ev-u { background: #08cfc2; }
#events .ev-col-l { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted, #5b6472); }
#events .ev-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#events .ev-table th, #events .ev-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line, #e3e7ec); }
@media (max-width: 700px) { #events .ev-head { flex-direction: column; } #events .ev-two { grid-template-columns: 1fr; } }
#events .ev-key { display: inline-block; width: 10px; height: 10px; vertical-align: middle; }
#events .ev-form[hidden] { display: none; }
#events .ev-btns select { width: auto; }

/* campaign sources + reading packet (2026-10-20) */
#events .ev-src-list { display: grid; gap: 8px; margin: 8px 0; }
#events .ev-src { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line, #d8dee6); border-radius: 8px; }
#events .ev-src > div { display: grid; gap: 2px; min-width: 0; }
#events .ev-src:not(.on) { opacity: .7; }
#events .ev-src-dot { width: 10px; height: 10px; border-radius: 50%; background: #08cfc2; margin: 0 14px 0 6px; }
#events .ev-switch { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
#events .ev-src-dates { display: flex !important; grid-auto-flow: column; gap: 6px; align-items: center; }
#events .ev-src-dates input { width: auto; }
#events .ev-src-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
#events .ev-src-add[hidden] { display: none; }
#events .ev-src-add label { display: grid; gap: 4px; font-weight: 600; }
#events .ev-scroll { overflow-x: auto; }
#events .ev-packet-t th small.ev-th-hint { display: block; font-weight: 400; font-size: 11px; }
#events .ev-packet-t td.ev-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#events .ev-packet-t tr.ev-row-visits td { font-weight: 700; }
@media (max-width: 700px) { #events .ev-src { grid-template-columns: 1fr; } }
