/* Brand colours, provider marks, the AI library rail section and pointer glow. Loaded after shell-extras.css. */
:root { --claude: #d97757; --codex: #10a37f; --lumina: #8b5cf6; --live-claude: #d97757; --live-codex: #10a37f; }
:root[data-theme="light"] { --claude: #c2573a; --codex: #0b7f64; --lumina: #6d28d9; --live-claude: #c2573a; --live-codex: #0b7f64; }

.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: color-mix(in srgb, currentColor 13%, transparent); flex: none; }
.brand-mark svg { display: block; }
.brand-mark.live::after { content: ""; position: absolute; inset: -3px; border-radius: 10px; border: 1px solid currentColor; opacity: 0; animation: brandPulse 1.8s ease-out infinite; }
@keyframes brandPulse { 0% { opacity: .55; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.25); } }
.name-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-weight: 700; font-family: var(--display); flex: none; }

/* Live tokens and AI activity rows: a brand mark replaces the coloured bar. */
.lt-row { grid-template-columns: 28px minmax(0, 1fr) auto auto; padding: 7px 10px 7px 8px; }
.lt-row .brand-mark { grid-column: 1; }
.lt-bar { display: none; }
.mini .brand-mark { margin-right: 2px; }

.ai-lib { display: grid; gap: 12px; }
.ai-provs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-prov { --mx: 50%; --my: 50%; display: flex; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 162, 255, .05); transition: border-color .2s; }
.ai-prov:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background-image: radial-gradient(160px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.ai-prov b { font-size: 12.5px; }
.ai-facts { display: flex; gap: 8px; margin-top: 3px; font-size: 11px; color: var(--muted); }
.ai-facts span { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.ai-sec header { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ai-sec header em { margin-left: auto; font-style: normal; font-family: var(--mono); color: var(--muted-2); }
.ai-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 9px; align-items: center; padding: 5px 4px; border-radius: 8px; transition: background .15s; }
.ai-row:hover { background: rgba(0, 162, 255, .08); }
.ai-name { min-width: 0; } .ai-name b { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ai-name small { font-size: 10px; color: var(--muted-2); }
.ai-brands { display: inline-flex; gap: 3px; }
.ai-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 11px; font-family: var(--mono); }
.ai-add { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2, var(--line)); background: transparent; color: var(--text); font-size: 11px; cursor: pointer; }
.ai-add:hover:not(:disabled) { border-color: var(--blu); color: var(--blu); } .ai-add:disabled { opacity: .5; cursor: default; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 999px; background: rgba(0, 162, 255, .08); font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-chip .brand-mark { width: 18px !important; height: 18px !important; border-radius: 9px; }
.ai-chip.more { padding-left: 8px; color: var(--muted); }
.ai-skills { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer; text-align: left; }
.ai-skills:hover { border-color: var(--blu); color: var(--text); } .ai-skills .go { margin-left: auto; color: var(--blu); }
.ai-none { font-size: 12px; margin: 2px 0; }

/* Pointer glow on cards (driven by motion-fx.ts) and a springy lift. */
.card, .stat, .marketing-asset { --mx: 50%; --my: 50%; transition: transform .25s cubic-bezier(.2,.9,.3,1.3), border-color .2s, box-shadow .25s; }
.card:hover, .stat:hover, .marketing-asset:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.28); background-image: radial-gradient(260px circle at var(--mx) var(--my), rgba(0,162,255,.09), transparent 70%); }
.tab.active::after { transition: left .25s, right .25s; }
@media (prefers-reduced-motion: reduce) { .brand-mark.live::after { animation: none; } .card:hover, .stat:hover, .marketing-asset:hover { transform: none; } }
:root[data-motion="reduced"] .brand-mark.live::after { animation: none; }

/* Marketing → Growth (treg) */
.tg-grid { display: grid; gap: 16px; margin-top: 8px; }
.tg-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.tg-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); min-width: 0; }
.tg-wide { grid-column: 1 / -1; }
.tg-card h2 { margin: 0 0 8px; font-size: 18px; } .tg-card h3 { margin: 0; font-size: 14px; } .tg-card h4 { margin: 16px 0 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tg-model-row { display: flex; align-items: center; gap: 12px; } .tg-model-row > div { flex: 1; min-width: 0; } .tg-model-row small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .tg-model-row b { font-size: 15px; }
.tg-note { font-size: 12px; margin: 10px 0 0; }
.tg-ask, .tg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .tg-ask p { margin: 4px 0 0; font-size: 12px; }
.tg-head { margin-bottom: 12px; }
.tg-error { color: var(--red); }
.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; } .tg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(0, 162, 255, .1); font-size: 11.5px; }
.tg-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; gap: 10px; align-items: center; margin: 6px 0; font-size: 12px; } .tg-bar > div { height: 6px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; } .tg-bar i { display: block; height: 100%; background: var(--blu); border-radius: 4px; } .tg-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.tg-days { display: flex; align-items: flex-end; gap: 4px; height: 56px; } .tg-days > div { flex: 1; height: 100%; display: flex; align-items: flex-end; } .tg-days i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--blu), var(--cobalt, #2563eb)); }
.tg-account { padding: 14px 0; border-top: 1px solid var(--line); } .tg-acc-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tg-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .tg-count b { display: block; font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; } .tg-count span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tg-count.good b { color: var(--green); } .tg-count.warn b { color: var(--amber); } .tg-count.bad b { color: var(--red); }
.tg-camps, .tg-posts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; } .tg-camps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; font-size: 12px; } .tg-camps small { grid-column: 2; color: var(--muted); } .tg-camp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-posts li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; } .tg-posts time { font-family: var(--mono); color: var(--muted); } .tg-posts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-plays { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 14px; }
.tg-play { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 162, 255, .04); } .tg-play-head { display: flex; justify-content: space-between; align-items: center; } .tg-play h4 { margin: 0; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 600; } .tg-platforms { display: flex; gap: 4px; }
.tg-play ol { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; } .tg-play li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; } .tg-play li b { font-family: var(--mono); font-weight: 500; color: var(--text-2); }
.tg-total { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; } .tg-total b { font-family: var(--display); font-size: 15px; color: var(--blu); }
.tg-search { display: flex; gap: 8px; margin: 10px 0 14px; } .tg-search input { flex: 1; }
.tg-results ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .tg-results li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); } .tg-results small { display: block; color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; } .tg-results p { margin: 4px 0 0; font-size: 12px; }

/* AI library: stay inside the narrow rail. */
.ai-lib, .ai-sec, .ai-prov, .ai-row { min-width: 0; }
.ai-provs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-prov { padding: 8px; gap: 7px; overflow: hidden; } .ai-prov > div { min-width: 0; }
.ai-facts { gap: 6px; flex-wrap: wrap; }
.ai-row { grid-template-columns: 22px minmax(0, 1fr) auto; } .ai-brands { display: none; }
.ai-row .ai-add { padding: 3px 8px; }
