/* ChatGPT with Infograph connected: the window, its bar, the question, the tool's activity and
   the box to type in. The chat's furniture (the name and mark in the bar, the grey question
   bubble, the pill-shaped box with its round send button) is drawn the way ChatGPT draws its
   own, in neutral greys. What Infograph says inside it is in the app's design language:
   its tokens, Geist, and the connectors' own marks (kit/marks/). Drawn at an illustration's
   scale: large enough to read when the window is shown small. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../../kit/fonts/geist-400.woff2) format("woff2"); }

/* The app's light theme. */
:root {
	--background: #fff;
	--foreground: #0a0a0a;
	--muted: #f4f4f4;
	--muted-foreground: #737373;
	--border: #e5e5e5;
	/* The height of one line of activity. */
	--line: 36px;
}

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: "Geist", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
p, ol { margin: 0; padding: 0; list-style: none; }

/* The window: a tall chat, the size the website's hero shows it at. */
/* (body.framed, to outrank the kit's own sizes in frame.css, which is linked after this.) */
body.framed { --window-width: 580px; --window-height: 800px; --window-zoom: 1; }
body.framed .window { border-radius: 36px; }
body.framed .window-body { flex-direction: column; }

/* The bar: whose chat this is, as ChatGPT names itself at the top of a conversation. */
.chat-bar { display: flex; flex: none; align-items: center; gap: 9px; height: 64px; padding: 6px 26px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.chat-bar-mark { width: 24px; height: 24px; fill: currentColor; }
.chat-bar-more { width: 18px; height: 18px; margin-left: -3px; fill: none; stroke: var(--muted-foreground); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chat { flex: 1; min-height: 0; padding: 14px 30px 0; font-size: 17px; line-height: 26px; }

/* The question, as the person who asked it sees it. */
.chat-ask { width: fit-content; max-width: 86%; margin-left: auto; padding: 13px 22px; border-radius: 26px; background: var(--muted); }

/* ---------- The tool at work ---------- */
.tool { margin-top: 26px; }
.tool-head { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.tool-head img { width: 24px; height: 24px; }

.activity { position: relative; margin: 8px 0 0 35px; }
.query, .older, .totals { display: flex; align-items: center; gap: 8px; height: var(--line); white-space: nowrap; }
.query span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.query img { flex: none; width: 19px; height: 19px; object-fit: contain; }
/* What the query read, as the app writes it beside a finished query: quieter, at the far edge. */
.query small { flex: none; margin-left: auto; padding-left: 12px; font-size: 14px; font-variant-numeric: tabular-nums; color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.older, .totals { color: var(--muted-foreground); }
.totals { font-size: 16px; font-variant-numeric: tabular-nums; }

/* A query still running: its words shimmer, read off the scene's clock. */
.query.is-running span, .tool-head.is-running .tool-name {
	color: transparent;
	background: linear-gradient(100deg, var(--foreground) 35%, color-mix(in oklab, var(--foreground) 32%, white) 50%, var(--foreground) 65%) 0 0 / 240px 100%;
	background-position-x: calc(var(--t, 0) * -200px);
	-webkit-background-clip: text; background-clip: text;
}

/* With the scene: every line is placed by the script, in a box that holds a full list. */
.activity.is-scripted { height: calc(var(--line) * (var(--lines, 12) + 1)); overflow: hidden; }
.is-scripted .query, .is-scripted .older, .is-scripted .totals { position: absolute; left: 0; top: 0; right: 0; will-change: transform, opacity; }

/* ---------- The box to type in ---------- */
.composer { display: flex; flex: none; align-items: center; gap: 14px; height: 64px; margin: 0 24px 26px; padding: 0 10px 0 18px; border: 1px solid var(--border); border-radius: 9999px; background: var(--background); box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 6px 18px -6px rgb(0 0 0 / 0.08); font-size: 18px; color: var(--muted-foreground); }
.composer-hint { flex: 1; }
.composer-icon { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.composer-send { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 2px; border-radius: 9999px; background: var(--foreground); color: var(--background); }
.composer-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
