/* Thought conversations: the chamber (Chat UX V2, 12 Oct 2026).
 * A quiet room inside the Midnight Observatory: midnight frame, parchment page,
 * a gold thread for time. Tokens mirror thought/home/assets/home.css; every rule
 * is scoped to .thc / .thc-resume / .thc-invite. No looping motion except the
 * reply indicator, which only runs while a reply is on its way. */

@font-face {
	font-family: "Thought Chat Display";
	src: url("../../home/assets/fonts/fraunces-latin-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

.thc, .thc-resume, .thc-invite {
	--thc-night-0: #060a15;
	--thc-night-1: #0b1426;
	--thc-night-2: #121d36;
	--thc-line-dk: #2a3a5e;
	--thc-plum: #241a33;
	--thc-lilac: #b9a7da;
	--thc-gold: #c9a35e;
	--thc-gold-hi: #e3c58c;
	--thc-gold-ink: #7a5a20;
	--thc-parch: #f4efe4;
	--thc-parch-2: #ece4d4;
	--thc-paper: #fffdf8;
	--thc-ink: #1d1a26;
	--thc-ink-2: #4a4453;
	--thc-rule: #ddd3c0;
	--thc-bone: #f1ede4;
	--thc-bone-2: #d2cbbb;
	--thc-display: "Thought Chat Display", "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
	--thc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--thc-ease: cubic-bezier(.2, .7, .2, 1);
}

.thc[hidden], .thc-resume[hidden], .thc [hidden] { display: none !important; }
.thc *, .thc *::before, .thc *::after, .thc-resume *, .thc-invite * { box-sizing: border-box; }
.thc-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.thc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.thc-ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }

html.thc-locked, html.thc-locked body { overflow: hidden; }
html.thc-locked body { position: fixed; left: 0; right: 0; width: 100%; }
body.thc-open #helper-hub-button { visibility: hidden; }

/* ---- shell ---- */
.thc { position: fixed; inset: 0; z-index: 100010; pointer-events: none; font-family: var(--thc-sans); color: var(--thc-ink); }
.thc-scrim { display: none; }
.thc-panel {
	position: absolute; right: 16px; top: 16px; bottom: 16px;
	width: min(460px, calc(100vw - 32px));
	display: flex; flex-direction: column; overflow: hidden;
	pointer-events: auto;
	background: var(--thc-parch);
	border: 1px solid rgba(201, 163, 94, .55);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(6, 10, 21, .45), 0 2px 0 rgba(227, 197, 140, .15) inset;
	opacity: 0; transform: translateX(14px);
	transition: opacity .22s var(--thc-ease), transform .26s var(--thc-ease);
	font-size: 15px; line-height: 1.5;
}
body.admin-bar .thc-panel { top: 48px; }
.thc.is-in .thc-panel { opacity: 1; transform: none; }
.thc-panel:focus { outline: none; }

/* ---- header: a small celestial plate ---- */
.thc-head {
	position: relative; display: flex; align-items: center; gap: 12px;
	padding: 14px 12px 12px 16px;
	background:
		radial-gradient(1px 1px at 22% 30%, rgba(241, 237, 228, .7), transparent 60%),
		radial-gradient(1px 1px at 64% 22%, rgba(241, 237, 228, .55), transparent 60%),
		radial-gradient(1.5px 1.5px at 84% 68%, rgba(227, 197, 140, .7), transparent 60%),
		radial-gradient(1px 1px at 46% 78%, rgba(241, 237, 228, .45), transparent 60%),
		radial-gradient(120% 140% at 0% 0%, #1a2546 0%, var(--thc-night-1) 55%, var(--thc-plum) 100%);
	color: var(--thc-bone);
}
.thc-frame { flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 2px; background: conic-gradient(from 210deg, var(--thc-gold-hi), var(--thc-gold), #8a6a32, var(--thc-gold-hi)); box-shadow: 0 0 0 3px rgba(201, 163, 94, .14); }
.thc-av { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--thc-night-2); }
.thc-noimg { display: grid; place-items: center; color: var(--thc-gold-hi); }
.thc-who { min-width: 0; flex: 1; }
.thc .thc-name { margin: 0; padding: 0; font: 600 21px/1.15 var(--thc-display); letter-spacing: -.01em; color: var(--thc-paper); text-transform: none; overflow-wrap: anywhere; }
.thc .thc-name:focus { outline: none; }
.thc .thc-name:focus-visible { outline: 2px solid var(--thc-gold-hi); outline-offset: 3px; border-radius: 4px; }
.thc-sub { margin: 3px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--thc-bone-2); }
.thc-ai { display: inline-flex; align-items: center; gap: 4px; color: var(--thc-gold-hi); }
.thc-ai .thc-ic { width: 12px; height: 12px; }
.thc-tools { display: flex; gap: 4px; align-self: flex-start; }

/* Buttons are reset inside the chamber so shared site button rules cannot leak in. */
.thc button, .thc-resume { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; width: auto; height: auto; line-height: inherit; text-align: inherit; cursor: pointer; border-radius: 0; }
.thc button:disabled { cursor: default; }
.thc a { color: var(--thc-gold-ink); }
.thc :focus-visible { outline: 2px solid var(--thc-gold-ink); outline-offset: 2px; }
.thc-head :focus-visible, .thc-erabar :focus-visible { outline-color: var(--thc-gold-hi); }

.thc .thc-icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--thc-bone); }
.thc .thc-icon:hover { background: rgba(241, 237, 228, .1); }
.thc-count { position: absolute; top: 6px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--thc-gold); color: var(--thc-night-1); font: 800 10px/16px var(--thc-sans); text-align: center; }

/* ---- the active perspective ---- */
.thc-erabar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 10px; background: var(--thc-night-1); color: var(--thc-bone); border-bottom: 1px solid rgba(201, 163, 94, .4); font-size: 13px; }
.thc-erachip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--thc-lilac); }
.thc-erachip.is-era { color: var(--thc-gold-hi); }
.thc-erachip .thc-ic { width: 15px; height: 15px; }
.thc .thc-erabar .thc-linkbtn { flex: none; color: var(--thc-gold-hi); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; padding: 4px 0; }

/* ---- conversation log ---- */
.thc-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; scroll-behavior: auto; }
.thc-log:focus { outline: none; }
.thc-log:focus-visible { outline: 2px solid var(--thc-gold-ink); outline-offset: -4px; }
.thc-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--thc-ink-2); }
.thc-logtop { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--thc-rule); }
.thc-mini { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 700 11px/1.2 var(--thc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--thc-gold-ink); }
.thc-mini .thc-ic { width: 14px; height: 14px; }
.thc-notice { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--thc-gold); background: var(--thc-paper); font-size: 13.5px; color: var(--thc-ink); border-radius: 0 10px 10px 0; }

.thc-intro { padding: 2px 2px 8px; }
.thc-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 700 11px/1.2 var(--thc-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--thc-gold-ink); }
.thc-eyebrow .thc-ic { width: 13px; height: 13px; }
.thc .thc-ask, .thc .thc-vh { margin: 0 0 8px; padding: 0; font: 600 26px/1.12 var(--thc-display); letter-spacing: -.015em; color: var(--thc-ink); text-transform: none; }
.thc .thc-vh { font-size: 22px; }
.thc .thc-ask:focus, .thc .thc-vh:focus { outline: none; }
.thc-lede { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--thc-ink-2); }

/* ---- time: a golden thread with moments on it ---- */
.thc-time { margin: 0 0 18px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--thc-rule); min-width: 0; }
.thc-time legend { float: left; width: 100%; padding: 0; }
.thc-time legend + * { clear: both; }
.thc-track { position: relative; display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 2px 6px; scrollbar-width: thin; }
.thc-thread { display: none; }
.thc-node:not(:last-of-type)::before { content: ""; position: absolute; top: 20px; left: 50%; width: calc(100% + 2px); height: 2px; background: var(--thc-gold); pointer-events: none; }
.thc-node:nth-last-of-type(2)::before { background: linear-gradient(90deg, var(--thc-gold), #8f7cb8); }
.thc-node { position: relative; flex: 1 0 78px; width: auto; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 8px; border-radius: 12px; text-align: center; cursor: pointer; scroll-snap-align: start; }
.thc-node input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.thc-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--thc-parch); border: 2px solid var(--thc-gold); color: transparent; transition: background-color .2s, box-shadow .25s, color .2s; }
.thc-dot .thc-ic { width: 16px; height: 16px; }
.thc-node.is-today .thc-dot { border-color: #8f7cb8; }
.thc-yr { font: 600 15px/1.15 var(--thc-display); color: var(--thc-ink); }
.thc-nt { font-size: 11.5px; line-height: 1.25; color: var(--thc-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thc-node:hover .thc-dot { box-shadow: 0 0 0 4px rgba(201, 163, 94, .18); }
.thc-node.is-on .thc-dot { background: var(--thc-night-1); color: var(--thc-gold-hi); box-shadow: 0 0 0 4px rgba(201, 163, 94, .22), 0 0 14px rgba(227, 197, 140, .55); }
.thc-node.is-today.is-on .thc-dot { color: var(--thc-lilac); border-color: var(--thc-lilac); box-shadow: 0 0 0 4px rgba(185, 167, 218, .25), 0 0 14px rgba(185, 167, 218, .5); }
.thc-node.is-on .thc-yr { color: var(--thc-gold-ink); }
.thc-node.is-here::after { content: "This one"; position: absolute; top: -2px; right: 6px; font: 700 9px/1 var(--thc-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--thc-ink-2); }
.thc-node:has(input:focus-visible) { outline: 2px solid var(--thc-gold-ink); outline-offset: -2px; }
.thc-plates { margin-top: 6px; }
.thc-intro > .thc-plates, .thc-intro .thc-time { margin-bottom: 18px; }
.thc-life { white-space: nowrap; }
.thc-plate { margin: 0; padding: 10px 12px; background: var(--thc-paper); border: 1px solid var(--thc-rule); border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: var(--thc-ink-2); }
.thc-plate b { color: var(--thc-ink); font-weight: 650; }
.thc-why { margin: 6px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--thc-ink-2); }
.thc-why span { font-weight: 700; color: var(--thc-gold-ink); }

/* ---- ways to begin ---- */
.thc-starters ul, .thc-earlier ul, .thc-list, .thc-explore ul { list-style: none; margin: 0; padding: 0; }
.thc-starters ul { display: grid; gap: 8px; margin-bottom: 8px; }
.thc .thc-starter { display: block; width: 100%; padding: 10px 14px; min-height: 44px; border: 1px solid var(--thc-rule); border-radius: 14px; background: var(--thc-paper); color: var(--thc-ink); font-size: 14px; line-height: 1.4; text-align: left; transition: border-color .15s, box-shadow .15s; }
.thc .thc-starter:hover { border-color: var(--thc-gold); box-shadow: 0 2px 10px rgba(122, 90, 32, .12); }
.thc-earlier { margin-top: 18px; }
.thc .thc-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--thc-rule); border-radius: 12px; background: var(--thc-paper); text-align: left; color: var(--thc-ink); }
.thc .thc-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.thc .thc-row:hover { border-color: var(--thc-gold); }
.thc-last { font-size: 12.5px; color: var(--thc-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- messages ---- */
.thc-msg { margin: 0 0 16px; max-width: 100%; }
.thc-who-l { display: flex; align-items: center; gap: 6px; margin: 0 0 5px; font: 700 12px/1.2 var(--thc-sans); color: var(--thc-ink); }
.thc-mini-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px var(--thc-gold); }
.thc-mini-av.thc-noimg { color: var(--thc-gold-ink); background: var(--thc-parch-2); }
.thc-tag { font-weight: 600; font-size: 11px; color: var(--thc-gold-ink); letter-spacing: .02em; }
.thc-bubble { padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.thc-bubble p { margin: 0 0 .7em; }
.thc-bubble p:last-child, .thc-bubble ul:last-child, .thc-bubble ol:last-child { margin-bottom: 0; }
.thc-bubble ul, .thc-bubble ol { margin: 0 0 .7em; padding-left: 1.25em; }
.thc-bubble li { margin: 0 0 .3em; }
.thc-bubble blockquote { margin: .2em 0 .8em; padding: 2px 0 2px 12px; border-left: 3px solid var(--thc-gold); font-family: var(--thc-display); font-style: italic; color: var(--thc-ink-2); }
.thc-msg.is-them .thc-bubble { background: var(--thc-paper); border: 1px solid var(--thc-rule); border-top-left-radius: 4px; color: var(--thc-ink); max-width: 62ch; box-shadow: 0 1px 0 rgba(122, 90, 32, .05); }
.thc-msg.is-you { display: flex; flex-direction: column; align-items: flex-end; }
.thc-msg.is-you .thc-bubble { background: var(--thc-night-2); color: var(--thc-bone); border-top-right-radius: 4px; max-width: 86%; }
.thc-msg.is-error { padding: 10px 12px; border: 1px solid #d8b7a6; border-left: 3px solid #a2563e; border-radius: 0 12px 12px 0; background: #fbf3ee; font-size: 14px; color: var(--thc-ink); }
.thc-msg.is-error p { margin: 0 0 8px; }
.thc-msg.is-error .thc-who-l { color: #7d3c27; }
.thc-src { margin: 6px 0 0 2px; font-size: 12.5px; color: var(--thc-ink-2); }
.thc-src summary { cursor: pointer; min-height: 28px; }
.thc-src ul { margin: 4px 0 0; padding-left: 1.1em; }

/* Reply on its way: a small constellation drawing itself. */
.thc-thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--thc-ink-2); font-size: 13.5px; }
.thc-cons { width: 84px; height: 22px; flex: none; overflow: visible; }
.thc-cons-line { fill: none; stroke: var(--thc-gold); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .8; }
.thc-s { fill: var(--thc-gold-ink); }

/* ---- keep exploring ---- */
.thc-explore { margin: 6px 0 12px; padding: 12px 0 2px; border-top: 1px solid var(--thc-rule); }
.thc-explore ul { display: grid; gap: 8px; }
.thc-explore a, .thc .thc-linkbtn { color: var(--thc-gold-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.thc-explore .thc-ic { width: 14px; height: 14px; }
.thc-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; }
.thc-group-l { flex-basis: 100%; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--thc-ink-2); }
.thc-group a { font-weight: 500; }

/* ---- composer ---- */
.thc-newreply { align-self: center; margin: -36px 0 6px; position: relative; z-index: 1; }
.thc-composer { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; background: var(--thc-paper); border: 1.5px solid var(--thc-rule); border-radius: 22px; transition: border-color .15s, box-shadow .15s; }
.thc-composer:focus-within { border-color: var(--thc-gold); box-shadow: 0 0 0 3px rgba(201, 163, 94, .2); }
.thc .thc-composer textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 168px; margin: 0; padding: 8px 0; border: 0; background: transparent; color: var(--thc-ink); font: 15px/1.45 var(--thc-sans); resize: none; outline: none; box-shadow: none; }
.thc .thc-composer textarea::placeholder { color: #776f80; opacity: 1; }
.thc .thc-send { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--thc-night-1); color: var(--thc-gold-hi); transition: transform .15s, background-color .15s; }
.thc .thc-send:hover { background: var(--thc-night-2); }
.thc .thc-send:disabled { opacity: .45; }
.thc .thc-send:focus-visible { outline: 2px solid var(--thc-gold-ink); outline-offset: 2px; }
.thc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 16px 12px; }
.thc-cost { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--thc-ink-2); }
.thc-cost .thc-ic { width: 15px; height: 15px; color: var(--thc-gold-ink); margin-top: 1px; }
.thc .thc-deep { flex: none; min-height: 32px; padding: 4px 11px; border: 1px solid var(--thc-rule); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--thc-ink-2); background: var(--thc-paper); }
.thc .thc-deep[aria-pressed="true"] { background: var(--thc-night-1); border-color: var(--thc-night-1); color: var(--thc-gold-hi); }

/* ---- other views ---- */
.thc-view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }
.thc .thc-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0 0 8px; color: var(--thc-ink-2); font-size: 13.5px; font-weight: 600; }
.thc-confirm { margin: 14px 0 0; padding: 14px; background: var(--thc-paper); border: 1px solid var(--thc-gold); border-radius: 14px; }
.thc-confirm p { margin: 0 0 12px; font-size: 14px; }
.thc-two { display: flex; flex-wrap: wrap; gap: 8px; }
.thc .thc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 650; font-size: 14px; line-height: 1.2; text-decoration: none; }
.thc .thc-btn.thc-sm { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.thc .thc-primary { background: var(--thc-night-1); color: var(--thc-gold-hi); border: 1px solid var(--thc-night-1); }
.thc .thc-primary:hover { background: var(--thc-night-2); }
.thc .thc-ghost { background: var(--thc-paper); color: var(--thc-ink); border: 1px solid var(--thc-rule); }
.thc .thc-ghost:hover { border-color: var(--thc-gold); }
.thc-list { display: grid; gap: 10px; margin: 14px 0; }
.thc-list li { display: grid; gap: 4px; justify-items: end; }
.thc-list li.is-cur .thc-row { border-color: var(--thc-gold); box-shadow: 0 0 0 2px rgba(201, 163, 94, .2); }
.thc .thc-remove { font-size: 12.5px; min-height: 28px; }

/* ---- resume pill (when the chamber is closed) ---- */
.thc-resume {
	position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 110px); z-index: 99990; /* above the Ask a Thinker and Contact buttons */
	display: inline-flex; align-items: center; gap: 9px; max-width: min(320px, calc(100vw - 32px)); min-height: 48px; padding: 6px 14px 6px 7px;
	border: 1px solid rgba(201, 163, 94, .65); border-radius: 999px;
	background: radial-gradient(circle at 20% 20%, rgba(227, 197, 140, .16), transparent 50%), linear-gradient(135deg, var(--thc-night-1), var(--thc-plum));
	color: var(--thc-bone); font: 13px/1.25 var(--thc-sans); text-align: left; box-shadow: 0 10px 26px rgba(6, 10, 21, .35);
}
.thc-resume > span { display: flex; flex-direction: column; min-width: 0; }
.thc-resume b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thc-resume .thc-note { color: var(--thc-gold-hi); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thc-resume .thc-mini-av { width: 32px; height: 32px; }
.thc-resume:focus-visible { outline: 2px solid var(--thc-gold-hi); outline-offset: 3px; }

/* ---- invitation component (placed by page owners) ---- */
.thc-invite { padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(201, 163, 94, .55); border-radius: 20px; background: radial-gradient(120% 120% at 0% 0%, #1a2546, var(--thc-night-1) 60%, var(--thc-plum)); color: var(--thc-bone); font-family: var(--thc-sans); }
.thc-invite-eyebrow { margin: 0 0 6px; font: 700 11px/1.2 var(--thc-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--thc-gold-hi); }
.thc-invite h2, .thc-invite h3, .thc-invite h4 { margin: 0 0 8px; font: 600 clamp(24px, 3vw, 32px)/1.1 var(--thc-display); color: var(--thc-paper); }
.thc-invite p { margin: 0 0 14px; color: var(--thc-bone-2); line-height: 1.55; }
.thc-invite .thc-invite-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--thc-gold-hi); color: var(--thc-night-1); font: 700 15px/1 var(--thc-sans); cursor: pointer; }
.thc-invite-times ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.thc-invite-times button { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(201, 163, 94, .6); border-radius: 999px; background: transparent; color: var(--thc-gold-hi); font: 600 13px/1.2 var(--thc-sans); cursor: pointer; }
.thc-invite-fine { font-size: 12.5px; margin: 0 !important; }
.thc-invite :focus-visible { outline: 2px solid var(--thc-gold-hi); outline-offset: 3px; }

/* ---- small screens: a full-screen chamber ---- */
@media (max-width: 899px) {
	.thc-scrim { display: block; position: absolute; inset: 0; background: rgba(6, 10, 21, .55); pointer-events: auto; opacity: 0; transition: opacity .2s; }
	.thc.is-in .thc-scrim { opacity: 1; }
	.thc-panel, body.admin-bar .thc-panel { left: 0; right: 0; top: var(--thc-vt, 0px); bottom: auto; width: 100%; height: var(--thc-vh, 100dvh); border-radius: 0; border: 0; transform: translateY(12px); }
	.thc-log > *, .thc-view > * { max-width: 680px; margin-left: auto; margin-right: auto; }
	.thc-composer { width: calc(100% - 24px); max-width: 680px; margin-left: auto; margin-right: auto; }
	.thc-foot { width: 100%; max-width: 704px; margin: 0 auto; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
	.thc-head { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
}
@media (max-width: 420px) {
	.thc-head { gap: 10px; padding-left: 12px; }
	.thc-frame { width: 42px; height: 42px; }
	.thc .thc-name { font-size: 19px; }
	.thc-log, .thc-view { padding-left: 14px; padding-right: 14px; }
	.thc .thc-ask { font-size: 23px; }
	.thc-node { flex-basis: 70px; }
	.thc-life { display: none; }
	.thc-foot { flex-wrap: wrap; padding-left: 14px; padding-right: 14px; }
}

/* ---- motion, only when welcome ---- */
@media (prefers-reduced-motion: no-preference) {
	.thc-plates.is-new > * { animation: thc-glow .5s var(--thc-ease) both; }
	.thc-msg.is-new .thc-bubble { animation: thc-rise .35s var(--thc-ease) both; }
	.thc-cons-line { stroke-dashoffset: 1; animation: thc-draw 2.4s var(--thc-ease) infinite alternate; }
	.thc-s { animation: thc-twinkle 2.4s ease-in-out infinite; }
	.thc-s.s2 { animation-delay: .35s; } .thc-s.s3 { animation-delay: .7s; } .thc-s.s4 { animation-delay: 1.05s; } .thc-s.s5 { animation-delay: 1.4s; }
}
@keyframes thc-glow { from { opacity: 0; box-shadow: 0 0 0 0 rgba(227, 197, 140, .5); } 60% { box-shadow: 0 0 0 4px rgba(227, 197, 140, .18); } to { opacity: 1; } }
@keyframes thc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes thc-draw { to { stroke-dashoffset: 0; } }
@keyframes thc-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.thc-panel, .thc-scrim { transition: none; }
	.thc-panel { transform: none; }
}
@media (forced-colors: active) {
	.thc-panel, .thc-composer, .thc-starter, .thc-node, .thc-row { border: 1px solid CanvasText; }
	.thc-node.is-on .thc-dot { background: Highlight; }
}
@media print { .thc, .thc-resume { display: none !important; } }

/* Keep exploring: one quiet line until the visitor opens it. */
.thc-explore summary { display: flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; list-style: none; }
.thc-explore summary::-webkit-details-marker { display: none; }
.thc-explore summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.thc-explore[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.thc-explore nav { padding: 4px 0 2px; }

/* Back to the Ask-a-Thinker list (when opened from it). */
.thc .thc-backbtn { margin-left: -6px; flex: none; }

/* Starter placeholders while the thinker's card loads (static under reduced motion). */
.thc-skel { display: grid; gap: 8px; margin-top: 18px; }
.thc-skel span { display: block; height: 44px; border-radius: 14px; background: linear-gradient(90deg, var(--thc-parch-2), #f3ecdf, var(--thc-parch-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .thc-skel span { animation: thc-shimmer 1.4s linear infinite; } }
@keyframes thc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
