/* Time spent searching is shown separately from any claim about completeness. */
.ba-history{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid var(--edge);border-radius:14px;background:var(--surface);color:var(--foreground);overflow:hidden}
.ba-history[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px}
.ba-history::backdrop{background:#061328b8}
.ba-history-header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ba-history h2{margin:0;font-size:1.1rem}
.ba-history-header .btn{min-height:40px}
.ba-history-note,.ba-history-empty{margin:0;font-size:.8rem;line-height:1.5;color:var(--muted-foreground)}
.ba-history-list{display:grid;gap:8px;min-height:0;max-height:60dvh;overflow:auto}
.ba-history-row{display:grid;gap:4px;justify-items:start;text-align:left;width:100%;min-height:58px}
.ba-history-row span{font-size:.74rem;color:var(--muted-foreground)}
#colorlink-game .bot-analysis{flex:none;min-width:0;padding:9px 10px;border:1px solid #7196b6;border-radius:9px;background:#eaf4ff;color:#173b60;font-variant-numeric:tabular-nums}
#colorlink-game .bot-analysis .ba-heading{display:flex;align-items:center;gap:6px;min-width:0;font-size:.76rem;line-height:1.3}
#colorlink-game .bot-analysis .ba-icon{display:block;flex:none;width:17px;height:17px}
#colorlink-game .bot-analysis .ba-icon svg{display:block;width:100%;height:100%}
#colorlink-game .bot-analysis .ba-colors{margin-left:auto;flex:none;font-size:.65rem;font-weight:700;white-space:nowrap}
#colorlink-game .bot-analysis .ba-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:7px 0 0}
#colorlink-game .bot-analysis .ba-metric{display:flex;align-items:baseline;justify-content:space-between;gap:4px;min-width:0}
#colorlink-game .bot-analysis dt{flex:none;font-size:.63rem;font-weight:600;opacity:.85}
#colorlink-game .bot-analysis .ba-value{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;font-size:.8rem;font-weight:800;white-space:nowrap}
#colorlink-game[data-bot-analyzing="true"] #cl-message{display:none}
:root[data-theme="dark"] #colorlink-game .bot-analysis{border-color:#759fc7;background:#18344d;color:#d4ebff}
@media(max-width:899px),(max-width:1199px) and (orientation:portrait) and (min-height:521px){#colorlink-game .bot-analysis{padding:6px 8px}#colorlink-game .bot-analysis .ba-heading{font-size:.7rem}#colorlink-game .bot-analysis .ba-icon{width:15px;height:15px}#colorlink-game .bot-analysis .ba-metrics{margin-top:4px;gap:7px}#colorlink-game .bot-analysis .ba-value{font-size:.75rem}#colorlink-game .bot-analysis dt{font-size:.6rem}}
@media(max-height:520px) and (min-width:600px){#colorlink-game .bot-analysis{padding:6px 8px}#colorlink-game .bot-analysis .ba-heading{font-size:.68rem}#colorlink-game .bot-analysis .ba-metrics{margin-top:4px}#colorlink-game .bot-analysis .ba-value{font-size:.72rem}}
