/* Owner console (/console). Builds on the dashboard styles in dash.css. */
.oc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 16px; }
.oc-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.oc .db-panel { margin-bottom: 16px; }
.oc-grid .db-panel { margin-bottom: 0; }
.oc-tr { font-weight: 600; }
.oc-tr.up { color: var(--good, #15803d); }
.oc-tr.down { color: var(--bad, #b91c1c); }
.oc-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 8px 4px 0; }
.oc-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.oc-bar i { display: block; width: 100%; max-width: 34px; background: var(--brand, #0A66D8); border-radius: 6px 6px 2px 2px; opacity: .85; transition: opacity .15s; }
.oc-bar:last-child i { opacity: 1; }
.oc-bar:hover i { opacity: 1; }
.oc-bar span { font-size: .68rem; color: var(--muted); margin-top: 6px; }
.oc-funnel { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.oc-funnel li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line, #e5e7eb); font-size: .95rem; }
.oc-funnel li:last-child { border-bottom: 0; }
.oc-funnel li::before { counter-increment: f; content: counter(f); width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--brand, #0A66D8); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: center; }
.oc-funnel b { font-family: var(--display); font-size: 1.15rem; min-width: 2.5ch; }
.oc-list { list-style: none; margin: 0; padding: 0; }
.oc-list li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; }
.oc-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-meter { height: 8px; background: var(--line, #e5e7eb); border-radius: 4px; overflow: hidden; }
.oc-meter i { display: block; height: 100%; background: var(--brand, #0A66D8); border-radius: 4px; }
.oc-n { text-align: right; color: var(--muted); }
.oc-h3 { font-size: .95rem; margin: 18px 0 6px; }
.oc-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.oc-chat { cursor: pointer; }
.oc-chat:hover .name { color: var(--brand, #0A66D8); }
.oc-chat-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.oc-rcpt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.oc-rcpt.seen { color: var(--good, #15803d); }
.oc-rcpt.wait { color: var(--warn, #b45309); }
.oc-feed { list-style: none; margin: 0; padding: 0; }
.oc-ev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line, #e5e7eb); font-size: .92rem; }
.oc-ev:last-child { border-bottom: 0; }
.oc-ev-i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; background: var(--line, #e5e7eb); color: var(--fg); }
.oc-ev-paid .oc-ev-i { background: #dcfce7; color: #15803d; }
.oc-ev-trial .oc-ev-i, .oc-ev-checkout .oc-ev-i { background: #e8f0fe; color: #0A66D8; }
.oc-ev-cert .oc-ev-i { background: #fef3c7; color: #b45309; }
.oc-ev-chat .oc-ev-i { background: #f3e8ff; color: #7e22ce; }
/* Chat read receipts (owner inbox) */
.cha-rcpt { font-size: .72rem; margin-left: 6px; font-weight: 600; color: var(--muted); }
.cha-rcpt.seen { color: var(--good, #15803d); }
.cha-item .cha-tick { font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.cha-item .cha-tick.seen { color: var(--good, #15803d); }
@media (max-width: 640px) { .oc-list li { grid-template-columns: minmax(0, 1fr) 60px 40px; } .oc-ev { grid-template-columns: 28px minmax(0, 1fr); } .oc-ev time { grid-column: 2; } }
