File size: 8,683 Bytes
bcc4b86 1825659 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | /* The Ask page (AskChat.tsx). Tokens only (tokens.css); loaded with the page. */
/* the page takes the whole main area; the thread scrolls, the question field stays */
.fpt-main:has(> .ask) { padding: 0; overflow: hidden; }
.ask { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--bg); }
.ask > .fpt-topbar { position: relative; flex: none; margin: 0; padding-inline: var(--gutter); } /* the global bar bleeds into page padding this page does not have */
.ask-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 1023px) { .ask-body { grid-template-columns: minmax(0, 1fr); } }
/* history: earlier conversations */
.ask-body > .ask-history { border-right: 1px solid var(--sep); background: var(--bg-elev); min-height: 0; }
.ask-history { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-3); overflow-y: auto; }
.ask-history-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ask-history-item { display: flex; align-items: center; gap: var(--sp-1); border-radius: var(--r-md); }
.ask-history-item:hover { background: var(--fill); }
.ask-history-item[aria-current='page'] { background: var(--fill-2); }
.ask-history-item a { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); color: var(--label); text-decoration: none; border-radius: var(--r-md); }
.ask-history-title { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-history-when { font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--label-3); }
.ask-history-item[aria-current='page'] .ask-history-when { color: var(--label-2); } /* stays AA on the selected fill */
.ask-history-item .mantine-ActionIcon-root { flex: none; margin-right: var(--sp-1); color: var(--label-3); }
.ask-history-item .mantine-ActionIcon-root:hover { color: var(--red); }
.ask-history-empty { margin: 0; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--label-2); }
/* thread */
.ask-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ask-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--sp-6) var(--gutter) var(--sp-4); }
.ask-col { width: 100%; max-width: var(--w-reading); margin-inline: auto; }
.ask-log > .ask-col { display: flex; flex-direction: column; gap: var(--sp-6); }
.ask-mock { display: flex; align-items: center; gap: var(--sp-2); align-self: flex-start; margin: 0; padding: var(--sp-1) var(--sp-3);
border-radius: var(--r-pill); background: var(--orange-soft); color: var(--orange); font-size: var(--fs-xs); line-height: var(--lh-xs); font-weight: var(--fw-medium); }
.ask-empty { padding-top: var(--sp-8); }
.ask-empty h2 { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-2xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-title); color: var(--label); }
.ask-empty > p { margin: var(--sp-2) 0 0; max-width: 56ch; font-size: var(--fs-md); line-height: var(--lh-md); color: var(--label-2); }
.ask-starters { list-style: none; margin: var(--sp-6) 0 0; padding: 0; border-top: 1px solid var(--sep); }
.ask-starters li { border-bottom: 1px solid var(--sep); }
.ask-starters button { width: 100%; padding: var(--sp-3) var(--sp-1); border: 0; background: transparent; text-align: left; cursor: pointer;
font: inherit; font-size: var(--fs-md); line-height: var(--lh-md); color: var(--label); border-radius: var(--r-sm); }
.ask-starters button:hover { background: var(--fill); }
/* messages: the question is a quiet bubble on the right; the answer is reading text with its evidence below */
.ask-msg[data-role='user'] { align-self: flex-end; max-width: min(80%, 560px); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-lg) var(--r-lg) var(--r-sm) var(--r-lg);
background: var(--fill-2); color: var(--label); font-size: var(--fs-md); line-height: var(--lh-md); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-msg[data-role='assistant'] { display: flex; flex-direction: column; gap: var(--sp-3); }
.ask-answer { margin: 0; font-size: var(--fs-md); line-height: var(--lh-md); color: var(--label); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-thinking { margin: 0; font-size: var(--fs-md); line-height: var(--lh-md); color: var(--label-2); animation: trio-blink 1.4s var(--ease) infinite; }
.ask-error { margin: 0; font-size: var(--fs-base); line-height: var(--lh-base); color: var(--red); }
/* the question field: the one raised element on the page */
.ask-dock { flex: none; padding: var(--sp-2) var(--gutter) var(--sp-4); background: linear-gradient(to bottom, transparent, var(--bg) var(--sp-4)); }
.ask-composer { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-2) var(--sp-4);
border-radius: var(--r-xl); background: var(--bg-elev); box-shadow: var(--sh-pop); transition: box-shadow var(--d2) var(--ease); }
.ask-composer:focus-within { box-shadow: var(--sh-pop), 0 0 0 2px var(--focus); }
.ask-composer .mantine-Textarea-input { font-size: var(--fs-md) !important; line-height: var(--lh-md); padding: var(--sp-1) 0; min-height: 0; color: var(--label); }
/* the whole field shows focus (above); the global input focus ring would draw a second one inside it */
.ask-composer .mantine-Textarea-input:focus, .ask-composer .mantine-Textarea-input:focus-visible { outline: none !important; box-shadow: none !important; border: 0; }
.ask-composer-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.ask-context { display: inline-flex; align-items: center; gap: var(--sp-1); min-width: 0; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--label-2); }
.ask-context b { font-weight: var(--fw-medium); color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-context button { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--label-2); cursor: pointer; }
.ask-context button:hover { background: var(--fill-2); color: var(--label); }
.ask-hermes { margin: var(--sp-2) auto 0; font-size: var(--fs-xs); line-height: var(--lh-xs); color: var(--label-2); }
/* evidence cards in an answer: long step names wrap instead of running past the edge */
.ask .fpt-chat-card [role='list'] > span { max-width: 100%; min-width: 0; }
.ask .fpt-chat-card .fpt-pill { white-space: normal; height: auto; min-height: 22px; padding-block: 2px; }
@media (max-width: 767px) {
.ask-log { padding-top: var(--sp-4); }
.ask-empty { padding-top: var(--sp-2); }
.ask-empty h2 { font-size: var(--fs-xl); line-height: var(--lh-xl); }
.ask-msg[data-role='user'] { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) { .ask-thinking { animation: none; } }
/* who answers: the coworker's face, name and role above each answer */
.ask-speaker { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.ask-speaker-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--r-sm); overflow: hidden; }
.ask-speaker-mark img { width: 24px; height: 24px; }
.ask-speaker-plain { background: var(--fill-2); color: var(--label-2); font-family: var(--font-display-mono); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); }
.ask-speaker-name, .ask-speaker-role { font-family: var(--font-display-mono); font-size: var(--fs-label); line-height: var(--lh-label); text-transform: uppercase; letter-spacing: var(--ls-mono-caps); white-space: nowrap; }
.ask-speaker-name { font-weight: var(--fw-semibold); color: var(--label); }
.ask-speaker-role { color: var(--label-2); overflow: hidden; text-overflow: ellipsis; }
/* the empty state's team row */
.ask-team { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.ask-team-label { font-family: var(--font-display-mono); font-size: var(--fs-label); line-height: var(--lh-label); text-transform: uppercase; letter-spacing: var(--ls-mono-caps); color: var(--label-2); }
.ask-team ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.ask-team li { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--label); }
|