/* Omnio Team — dark navy/gold dashboard + cream login (matches Next.js /team). */

.ot-login-wrap, .ot-root {
	--ot-navy: #0d1a2c;
	--ot-gold: #c19a26;
	--ot-cream: #faf8f4;
	--ot-border: #e6e2da;
	--ot-slate: #6b7280;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	box-sizing: border-box;
}
.ot-login-wrap *, .ot-login-wrap *::before, .ot-login-wrap *::after,
.ot-root *, .ot-root *::before, .ot-root *::after { box-sizing: border-box; }

/* ---------- Login ---------- */
.ot-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ot-cream); padding: 24px; }
.ot-login-card { max-width: 420px; width: 100%; background: #fff; padding: 36px 32px; border-radius: 16px; box-shadow: 0 12px 40px rgba(10,22,40,0.08); }
.ot-login-title { font-family: Georgia, 'Playfair Display', serif; font-weight: 400; font-size: 28px; color: var(--ot-navy); margin: 0 0 8px; }
.ot-login-lead { color: var(--ot-slate); font-size: 14px; margin: 0 0 24px; line-height: 1.5; }
.ot-login-input { width: 100%; padding: 14px 16px; font-size: 16px; min-height: 48px; border: 1.5px solid var(--ot-border); border-radius: 10px; margin-bottom: 14px; background: var(--ot-cream); color: var(--ot-navy); outline: none; -webkit-appearance: none; appearance: none; font-family: inherit; }
.ot-login-input:focus { border-color: var(--ot-gold); }
.ot-login-error { color: #c53030; font-size: 13px; margin-bottom: 12px; }
.ot-login-btn { width: 100%; padding: 14px 24px; min-height: 48px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: linear-gradient(145deg, #c4ad7e 0%, var(--ot-gold) 50%, #a08b5b 100%); border: none; border-radius: 10px; cursor: pointer; font-family: inherit; }
.ot-login-btn:disabled { cursor: wait; opacity: 0.8; }

/* ---------- Dashboard ---------- */
.ot-root { min-height: 100vh; background: var(--ot-navy); color: #fff; }
.ot-header { padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(0,0,0,0.2); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.ot-brand { display: flex; align-items: center; gap: 14px; }
.ot-logo { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(145deg, #c4ad7e 0%, var(--ot-gold) 50%, #a08b5b 100%); display: flex; align-items: center; justify-content: center; font-family: Georgia, 'Playfair Display', serif; font-size: 15px; font-weight: 600; color: #fff; }
.ot-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ot-brand-sub { font-size: 11px; color: rgba(255,255,255,0.4); }
.ot-tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.05); padding: 4px; border-radius: 999px; align-items: center; }
.ot-tab { padding: 8px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); background: transparent; border: none; border-radius: 999px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.ot-tab.is-active { color: var(--ot-navy); background: var(--ot-gold); }
.ot-partners-link, .ot-signout { padding: 8px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; color: var(--ot-gold); text-decoration: none; }
.ot-signout { color: rgba(255,255,255,0.5); }
.ot-signout:hover { color: #fff; }

.ot-empty { padding: 40px; text-align: center; color: rgba(255,255,255,0.35); font-size: 14px; }

/* Sessions */
.ot-sessions-grid { display: grid; grid-template-columns: 1fr; height: calc(100dvh - 73px); overflow: hidden; }
.ot-sessions-grid.has-transcript { grid-template-columns: 380px 1fr; }
.ot-sessions-list { overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.06); }
.ot-session { padding: 16px 20px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.04); border-left: 3px solid transparent; transition: background 0.2s; }
.ot-session:hover { background: rgba(255,255,255,0.03); }
.ot-session.is-sel { background: rgba(184,153,104,0.08); border-left-color: var(--ot-gold); }
.ot-session-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ot-session-id { font-size: 13px; font-weight: 600; color: #fff; font-family: ui-monospace, monospace; }
.ot-session-meta { display: flex; align-items: center; gap: 6px; }
.ot-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.6); }
.ot-ago { font-size: 11px; color: rgba(255,255,255,0.4); }
.ot-session-sub { font-size: 12px; color: rgba(255,255,255,0.5); }
.ot-session-email { font-size: 12px; color: var(--ot-gold); margin-top: 4px; }

/* Transcript */
.ot-transcript { display: flex; flex-direction: column; overflow: hidden; }
.ot-transcript-head { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; }
.ot-transcript-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.ot-transcript-close { padding: 6px 14px; font-size: 12px; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); border: none; border-radius: 6px; cursor: pointer; font-family: inherit; }
.ot-transcript-body { flex: 1; overflow-y: auto; padding: 24px; }
.ot-msg-row { display: flex; margin-bottom: 12px; }
.ot-msg-row.is-user { justify-content: flex-end; }
.ot-msg-row.is-bot { justify-content: flex-start; }
.ot-msg { max-width: 75%; padding: 10px 14px; font-size: 13px; line-height: 1.6; }
.ot-msg-row.is-user .ot-msg { border-radius: 14px 4px 14px 14px; background: var(--ot-gold); color: var(--ot-navy); }
.ot-msg-row.is-bot .ot-msg { border-radius: 4px 14px 14px 14px; background: rgba(255,255,255,0.06); color: #fff; }
.ot-msg-text { white-space: pre-wrap; }
.ot-msg-time { font-size: 10px; margin-top: 6px; opacity: 0.6; letter-spacing: 0.04em; }

/* Leads */
.ot-leads { padding: 24px; overflow-y: auto; height: calc(100dvh - 73px); }
.ot-table-wrap { background: rgba(255,255,255,0.03); border-radius: 12px; overflow: auto; border: 1px solid rgba(255,255,255,0.05); }
.ot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ot-table thead tr { background: rgba(0,0,0,0.3); }
.ot-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.ot-table td { padding: 14px 16px; color: rgba(255,255,255,0.85); vertical-align: top; border-top: 1px solid rgba(255,255,255,0.04); }
.ot-table .ot-strong { font-weight: 600; }
.ot-table a { color: var(--ot-gold); text-decoration: none; }
.ot-td-sub { color: rgba(255,255,255,0.5); font-size: 11px; margin-top: 2px; }
.ot-source { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(184,153,104,0.15); color: var(--ot-gold); }
.ot-zoho { font-size: 11px; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ot-zoho.ok { background: rgba(76,217,100,0.15); color: #7ee08b; }
.ot-zoho.err { background: rgba(255,90,90,0.15); color: #ff8c8c; cursor: help; }
.ot-zoho.none { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.4); font-weight: 500; }

@media (max-width: 768px) {
	.ot-sessions-grid, .ot-sessions-grid.has-transcript { grid-template-columns: 1fr; }
	.ot-sessions-grid.has-transcript .ot-sessions-list { display: none; }
	.ot-table th:nth-child(4), .ot-table td:nth-child(4),
	.ot-table th:nth-child(5), .ot-table td:nth-child(5) { display: none; }
}
