@import url("/getmoat.css");

.pf-shared-assistant{min-width:0}
.pf-assistant-settings{display:flex;flex-wrap:wrap;gap:10px}
.pf-assistant-settings .k-pills{max-width:100%}
.pf-assistant-settings .k-pill{font-size:13px;padding:8px 12px}
/* GetMoat is a chat in the workspace: Play and its links on top, the conversation filling the panel, the box you type
   in at the bottom. The panel is as tall as the window on wide screens, so the conversation scrolls inside it. */
.pf-shared-assistant .pf-moat-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.pf-shared-assistant .getmoat-dock{flex:1 1 auto;min-height:0;padding:0;z-index:auto;min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto;column-gap:12px;row-gap:10px}
.pf-shared-assistant .getmoat-controls{display:contents}
.pf-shared-assistant .getmoat-wave{position:relative;left:auto;bottom:auto;grid-column:1/-1;grid-row:1;width:100%;height:16px}
.pf-shared-assistant .getmoat-play{grid-column:1;grid-row:2;width:44px;height:50px}
.pf-shared-assistant .getmoat-play-label{grid-column:2;grid-row:2;align-self:center;display:block;min-width:0;font-size:15px}
.pf-shared-assistant .getmoat-links{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;white-space:normal;gap:4px 16px;font-size:13px}
.pf-shared-assistant .getmoat-links button{min-height:44px}
/* As grid items the dock's parts would keep their floating z-index and cover the settings popover. */
.pf-shared-assistant .getmoat-dock>*{z-index:auto}
.pf-shared-assistant .getmoat-sheet{grid-column:1/-1;grid-row:4;position:static;display:flex;flex-direction:column;gap:10px;width:100%;min-height:0;max-height:none;margin:0;padding:12px 2px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:0;overflow:auto;overscroll-behavior:contain}
/* Lines scrolled past fade out at the top edge, so a cut line reads as scrolled rather than broken. */
.pf-shared-assistant .getmoat-sheet{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12px);mask-image:linear-gradient(to bottom,transparent 0,#000 12px)}
.pf-shared-assistant .getmoat-sheet[hidden]{display:none}
.pf-shared-assistant .getmoat-ask{grid-column:1/-1;grid-row:5;min-width:0;width:100%;height:52px;padding-left:4px}
.pf-shared-assistant .getmoat-ask input{font-size:15px;padding-left:8px}
/* Light, dark and retro fields are fill only; on the panel's fill the box takes the page colour so its edge shows. */
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .pf-shared-assistant .getmoat-ask{background:var(--bg)}
.pf-shared-assistant .getmoat-sheet-head{position:static;margin:0;padding:0;gap:8px;background:transparent}
.pf-shared-assistant .getmoat-sheet-head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* The fine print stays, small and quiet, between the conversation and the box. */
.pf-shared-assistant :is(.getmoat-provider,.getmoat-sharing-note,.getmoat-notice,.getmoat-boundary){margin:0;font-size:12px;line-height:1.4;color:var(--muted)}
.pf-shared-assistant .getmoat-sharing{font-size:13px}
/* Starters are quiet text, one per line. */
.pf-shared-assistant .getmoat-try{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:2px 0 0}
.pf-shared-assistant .getmoat-try button{min-height:44px;padding:0;background:none;box-shadow:none;color:var(--ink-2);font-size:14px;letter-spacing:normal;text-align:left}
.pf-shared-assistant .getmoat-try button:hover{background:none;box-shadow:none;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.pf-shared-assistant .getmoat-undo{margin-top:6px}
/* What was said before stays folded behind one quiet line. */
.pf-shared-assistant .getmoat-show-earlier{display:inline-flex;align-items:center;align-self:flex-start;min-height:44px;font:var(--body-weight) 14px/1.3 var(--body);letter-spacing:normal;color:var(--ink-2)}
.pf-shared-assistant .getmoat-show-earlier:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
@media (max-width:1180px){.pf-shared-assistant .getmoat-sheet{max-height:min(60vh,560px)}}
.pf-shared-assistant .getmoat-log{gap:10px;margin:4px 0 0}
/* Chat bubbles follow the kit's .k-say shape: 12px with a 4px tail in light and dark, the theme's own radius elsewhere
   (6px and 4px in GetHacked, square in Terminal). Your own messages wear the accent wash, as .k-say.is-me does. */
.pf-shared-assistant .getmoat-message{--pf-msg-r:max(var(--radius),calc(var(--radius-lg) - 2px));--pf-msg-tail:min(4px,var(--radius-sm));position:relative;max-width:94%;padding:10px 14px;border:1px solid var(--ghost);border-radius:var(--pf-msg-r) var(--pf-msg-r) var(--pf-msg-r) var(--pf-msg-tail);background:var(--bg)}
/* GetMoat speaks on the panel itself; only your own messages sit in a bubble. */
.pf-shared-assistant .getmoat-message:not([data-role=user]){max-width:100%;padding:0;border:0;border-radius:0;background:none}
.pf-shared-assistant .getmoat-message[data-role=user]{justify-self:end;border-color:var(--accent-line);border-radius:var(--pf-msg-r) var(--pf-msg-r) var(--pf-msg-tail) var(--pf-msg-r);background:var(--accent-wash);color:var(--ink)}
.pf-shared-assistant .getmoat-message[data-role=user] p{display:block;padding:0;border:0;border-radius:0;background:none;color:var(--ink);font-weight:var(--body-weight)}
/* Light and dark keep today's solid ink bubble. */
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .pf-shared-assistant .getmoat-message[data-role=user]{border:0;background:var(--ink);color:var(--bg)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .pf-shared-assistant .getmoat-message[data-role=user] p{color:var(--bg)}
.pf-shared-assistant .getmoat-message-who{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pf-shared-assistant .getmoat-message p{margin:0;font-size:15px;line-height:1.45}
.pf-shared-assistant .getmoat-close{margin-left:auto}
.pf-shared-assistant .getmoat-sheet-links{display:none}
.pf-shared-assistant .getmoat-reader{z-index:100}
@media(max-width:700px){.pf-shared-assistant .getmoat-controls{grid-template-columns:48px minmax(0,1fr)}.pf-shared-assistant .getmoat-play{width:48px;height:54px}}
/* The greeting carries at most one button; the line under an answer names the files it read. */
.pf-shared-assistant .getmoat-hello-go{margin-top:12px;max-width:100%;white-space:normal;text-align:left;line-height:1.25}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .pf-shared-assistant .getmoat-hello-go:not(:hover){background:var(--bg)}
/* After a reply, the first action is a soft button like the greeting's; any others are quiet text. */
.pf-shared-assistant .getmoat-message>.text-action{display:flex;min-height:44px;padding:4px 0;font-size:14px;letter-spacing:normal;color:var(--ink-2)}
.pf-shared-assistant .getmoat-message>.text-action:hover:not(:disabled){color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.pf-shared-assistant .getmoat-message .getmoat-read{margin-top:6px;font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
/* GetMoat's Settings: three choices, each on one line where the screen allows, and Forget, quiet, at the end. */
.pf-shared-assistant .pf-moat-settings .pf-pop-menu{width:max-content}
.pf-shared-assistant .pf-moat-settings .k-pill{min-height:44px}
.pf-shared-assistant:not(.is-closed) .pf-moat-top #pf-moat-toggle{min-height:44px}
.pf-moat-settings .pf-moat-forget{justify-self:start;margin-top:2px;padding:8px 0;font-size:14px}
.pf-moat-settings .pf-moat-forget:not(:disabled):hover{text-decoration:underline;text-underline-offset:4px}
