.copilot{order:-1;width:320px;max-width:calc(100vw - 32px);background:#fff;display:flex;flex-shrink:0;border-radius:16px;box-shadow:var(--shadow-surface);overflow:hidden;position:relative;border:0;min-height:0;color:#333}
.assistant-main{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column}
.copilot-head{padding:20px 24px;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}
.assistant-button{border:0;background:transparent;color:inherit;border-radius:7px;padding:8px 12px;display:inline-flex;align-items:center;gap:12px;font:inherit;font-size:14px;line-height:20px;text-align:left;cursor:pointer;min-height:36px;max-width:100%}
.assistant-button:hover,.assistant-button.selected{background:#e5e5e5}
.assistant-button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.assistant-button:disabled{opacity:.45;cursor:default}
.assistant-button .icon{width:18px;height:18px;flex-shrink:0;stroke-width:1.5}
.assistant-icon{padding:8px;min-width:32px;min-height:32px;justify-content:center;border-radius:50%;gap:0}
.assistant-icon .icon{width:16px;height:16px}
.copilot-name{padding:6px 10px;font-weight:400;border-radius:24px;gap:8px;white-space:nowrap}
.copilot-name .icon{width:12px;height:12px}
.copilot-logo{width:24px;height:24px;display:inline-block;flex-shrink:0;background-color:currentColor;mask:url("/assets/brand/mark.png?v=f02cc3515dad") center / contain no-repeat}
.copilot-logo-small{width:20px;height:20px}
.assistant-head-actions{display:flex;align-items:center;gap:4px}
.assistant-run-dot{width:8px;height:8px;border-radius:50%;background:#168547;flex:none;margin:0 3px;animation:assistant-run-pulse 1.8s ease-out infinite}
.assistant-run-dot[hidden]{display:none}
@keyframes assistant-run-pulse{
  0%,100%{box-shadow:0 0 0 0 rgb(22 133 71 / 0)}
  35%{box-shadow:0 0 0 2px rgb(22 133 71 / .32)}
  75%{box-shadow:0 0 0 5px rgb(22 133 71 / 0)}
}
@media(prefers-reduced-motion:reduce){.assistant-run-dot{animation:none}}
.copilot-feed{flex:1;min-height:0;overflow:auto;padding:16px 28px 0;scrollbar-width:thin;overflow-anchor:none}
.assistant-welcome{display:flex;flex-direction:column;min-height:100%;gap:32px}
.assistant-greeting{padding:8px 6px;flex:1;min-height:160px}
.assistant-greeting>.copilot-logo{width:36px;height:36px;margin:0 0 8px}
.assistant-greeting h2{font-size:28px;font-weight:400;line-height:1.35;margin:0;letter-spacing:-.5px}
.assistant-greeting h2 span{font-family:Newsreader,Georgia,serif;margin-left:8px}
.assistant-welcome-bottom{display:grid;gap:12px;padding-bottom:0}
.assistant-suggestions{border:1px solid #e0e0e0;border-radius:16px;padding:12px}
.assistant-suggestions-title{display:flex;align-items:center;gap:8px;padding:2px 8px 12px;font-size:14px}
.assistant-suggestions-title .icon{width:16px;height:16px;stroke-width:1.5}
.assistant-suggestions-title .assistant-icon{margin-left:auto}
.assistant-suggestions>.assistant-button{display:flex;width:100%;min-height:36px;padding:8px;font-size:13px;gap:10px}
.assistant-suggestions>.assistant-button>.icon,.assistant-quick .icon{color:#ff5c35}
.assistant-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.assistant-quick .assistant-button{border:1px solid #e0e0e0;min-height:72px;border-radius:20px;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:8px;padding:12px;font-size:13px}
.assistant-composer{position:relative;flex-shrink:0;padding:20px 18px 22px}
.copilot-form{position:relative;display:flex;flex-direction:column;border:1px solid #d1d1d1;border-radius:20px;padding:12px;margin:0;background:#fff;box-shadow:0 1px 4px #0000000d;gap:8px}
.copilot-form:focus-within{border-color:#aaa}
.copilot-form textarea{display:block;width:100%;border:0;outline:0;border-radius:0;resize:none;height:40px;min-height:40px;max-height:160px;padding:2px 0;background:transparent;font-size:14px;line-height:22px;box-shadow:none}
.copilot-form textarea:focus-visible{outline:none;box-shadow:none}
.copilot-form textarea::placeholder{color:#8b8b8b}
.copilot-form .actions{display:flex;gap:6px;padding:0;align-items:center}
.assistant-input-spacer{flex:1}
.assistant-add{border:1px solid #999}
.btn.assistant-stop{background:var(--ink);border-color:var(--ink);color:var(--white)}
.btn.assistant-stop:hover{background:var(--muted);border-color:var(--muted)}
.copilot-form .assistant-stop .icon{color:#fff;fill:currentColor;stroke:none;width:16px;height:16px}
.copilot-form [hidden]{display:none}
.assistant-menu{position:absolute;inset:auto;margin:0;background:white;color:#333;border:1px solid #ccc;border-radius:16px;box-shadow:0 10px 24px #00000013;padding:8px;min-width:160px;z-index:50}
.assistant-menu .assistant-button{width:100%;min-height:36px;border-radius:7px;font-size:16px;padding:7px 12px;gap:12px}
.assistant-menu:popover-open{display:flex;flex-direction:column}
.assistant-history-popover{position:fixed;inset:auto;top:62px;left:24px;margin:0;width:min(330px,calc(100vw - 16px));max-height:min(420px,calc(100dvh - 16px));padding:12px;background:white;color:#333;border:1px solid #ccc;border-radius:16px;box-shadow:0 10px 24px #00000013}
.assistant-history-popover:popover-open,.assistant-history{display:flex;flex-direction:column;min-height:0}
.assistant-history{gap:8px}
.assistant-history h2{margin:0;font-size:15px;font-weight:600}
.assistant-history [hidden]{display:none}
.assistant-history .assistant-library-empty{min-height:48px;margin:0}
.assistant-history .assistant-search{flex-shrink:0}
.assistant-history .assistant-search:focus-within{outline:2px solid #00494b;outline-offset:1px}
.assistant-tools-menu{bottom:90px;left:18px;min-width:220px}
.assistant-tools-menu .assistant-button{font-size:14px}
.assistant-library{display:flex;flex-direction:column;flex:1;min-height:0;padding:0 20px 20px;gap:16px}
.assistant-library-heading{display:flex;gap:12px;align-items:center;min-height:48px;flex-shrink:0}
.assistant-library-heading h2{font-size:22px;font-weight:400;line-height:28px;margin:0;flex:1;overflow-wrap:anywhere}
.assistant-library-heading>div{display:flex;gap:8px;align-items:center}
.assistant-primary{background:#00494b;border-radius:24px;color:white;padding:7px 16px;white-space:nowrap}
.assistant-primary:hover{background:#006567}
.assistant-search{display:flex;align-items:center;border:1px solid #b6b6b6;border-radius:24px;gap:8px;padding:0 10px;min-height:36px}
.assistant-search .icon{width:16px;height:16px;color:#777;flex-shrink:0}
.assistant-search input{border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;min-width:0;width:100%;padding:5px 0;font-size:14px;height:34px}
.assistant-list{flex:1;min-height:0;overflow:auto}
.assistant-list>h3{font-size:14px;font-weight:500;margin:24px 0 8px}
.assistant-list-row{display:flex;align-items:center;gap:4px;min-height:46px;padding:2px 0;border-bottom:1px solid #eee}
.assistant-list-row>.assistant-button:first-child{flex:1;min-width:0}
.assistant-list-row>.assistant-button:first-child span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.assistant-list-row>.assistant-icon{display:none;flex:none;min-width:28px;padding:6px}
.assistant-list-row:hover>.assistant-icon,.assistant-list-row:focus-within>.assistant-icon{display:inline-flex}
.assistant-history-status{flex:none;max-width:42%;padding-inline-end:4px;color:var(--muted);font-size:12px;line-height:16px;text-align:end}
.assistant-history-status[data-state="running"]{color:var(--green)}
.assistant-history-status[data-state="failed"],.assistant-history-status[data-state="pending"]{color:var(--red)}
@media(hover:none){.assistant-list-row>.assistant-icon{display:inline-flex}}
.assistant-library-empty{height:100%;min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#888;font-size:14px;text-align:center}
.assistant-editor{overflow:auto;display:flex;flex-direction:column;gap:20px;padding:4px 0;min-height:0}
.assistant-editor label{display:flex;flex-direction:column;gap:8px;font-size:14px}
.assistant-editor input,.assistant-editor textarea{width:100%;font:inherit;line-height:1.5;border:1px solid #aaa;border-radius:6px;padding:10px;resize:vertical}
.assistant-editor h3,.assistant-context-content h3{font-size:15px;font-weight:500;margin:8px 0}
.assistant-editor footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 0;border-top:1px solid #ddd}
.assistant-context-content{overflow:auto;font-size:14px;line-height:1.7}
.assistant-message-actions{display:flex;gap:2px;margin-top:8px}
.assistant-message-actions .assistant-icon{color:#666}
.assistant-attachments{display:flex;gap:8px;flex-wrap:wrap}
.assistant-attachments>span{display:flex;align-items:center;gap:6px;font-size:12px;border:1px solid #ddd;border-radius:10px;padding:2px 4px 2px 8px;margin-bottom:8px;max-width:100%;overflow-wrap:anywhere}
.assistant-attachments .icon{width:16px;height:16px;flex-shrink:0}
.assistant-mentions{position:absolute;bottom:100%;left:0;right:0;background:white;border:1px solid #ccc;box-shadow:0 4px 12px #0002;border-radius:12px;padding:8px;max-height:200px;overflow:auto}
.assistant-mentions .assistant-button{display:flex;width:100%}
.assistant-full{width:100%;max-width:none;flex:1}
.assistant-expanded .workspace>.page{display:none}
.assistant-full .assistant-main{max-width:none;position:relative}
.assistant-full .copilot-head{justify-content:flex-end}
.assistant-full .copilot-name{display:none}
.assistant-full .copilot-feed,.assistant-full .assistant-composer{width:min(804px,100%);align-self:center}
.assistant-full .assistant-greeting{padding-top:0}
.assistant-full .assistant-greeting h2{font-size:30px}
.assistant-full .assistant-quick{grid-template-columns:repeat(4,1fr)}
.assistant-full .assistant-quick .assistant-button{align-items:center;min-height:60px;padding:10px}
.assistant-sidebar{width:260px;padding:24px 16px;flex-shrink:0;border-right:1px solid #ccc;display:flex;flex-direction:column;gap:0;overflow:auto}
.assistant-sidebar-brand{display:flex;align-items:center;gap:8px;font-size:14px;margin-bottom:16px}
.assistant-sidebar-brand .assistant-icon{margin-left:auto}
.assistant-full .assistant-library{width:min(900px,100%);align-self:center}
.assistant-full .assistant-tools-menu{left:max(278px,calc(50% - 254px))}
@media(max-width:1190px){.copilot{width:320px}.assistant-full{width:100%}.assistant-sidebar{width:220px}}
@media(max-width:920px){.copilot{position:fixed;left:12px;right:auto;top:64px;bottom:12px;z-index:30;width:400px;box-shadow:0 4px 24px #0002}.assistant-full{right:12px;width:auto;max-width:none}.assistant-sidebar{width:190px}.assistant-full .assistant-tools-menu{left:208px}}
@media(max-width:650px){.copilot{left:8px;right:8px;top:60px;bottom:8px;width:auto;max-width:none}.copilot-head{padding:16px 12px;min-height:64px;gap:4px}.assistant-greeting{min-height:110px}.assistant-greeting h2{font-size:26px}.assistant-composer{padding-bottom:18px}.assistant-sidebar{display:none}.assistant-full .copilot-name{display:flex}.assistant-full .copilot-head{justify-content:space-between}.assistant-full .assistant-quick{grid-template-columns:1fr 1fr}.assistant-full .assistant-quick .assistant-button{align-items:flex-start}.assistant-full .assistant-tools-menu{left:18px}.assistant-list-row>.assistant-icon{display:inline-flex}}
@media(max-height:720px){.assistant-greeting{min-height:90px}.assistant-welcome{gap:16px}.assistant-quick .assistant-button{min-height:58px;padding:8px 10px;gap:4px}.assistant-suggestions{padding:8px}.assistant-suggestions-title{padding-bottom:8px}.assistant-suggestions>.assistant-button{min-height:32px;padding:6px 8px}.assistant-composer{padding-top:10px;padding-bottom:14px}}

.assistant-nav-collapsed .assistant-sidebar{display:none}
.assistant-nav-collapsed .copilot-head{justify-content:space-between}
/* Messages, task progress and composer share the same Breeze-style reading column. */
.assistant-turn{display:flow-root;margin:0 0 36px}
.assistant-turn:last-child{min-height:var(--assistant-feed-height,0px);margin-bottom:0}
.message{font-size:14px;line-height:24px;overflow-wrap:anywhere;margin-bottom:24px}
.message.user{position:relative;width:fit-content;max-width:100%;margin:0 0 44px auto;background:#e9e9e9;border-radius:16px 16px 4px 16px;padding:10px 16px;line-height:21px}
.message.user .assistant-message-actions{position:absolute;right:0;top:100%;margin-top:4px;background:#fff;border-radius:16px;opacity:0;pointer-events:none}
.message.user:hover .assistant-message-actions,.message.user:focus-within .assistant-message-actions{opacity:1;pointer-events:auto}
.message-text,.assistant-error{white-space:pre-wrap}
.assistant-progress-content{margin-top:8px}
.assistant-progress-content>:not(:last-child){margin-bottom:24px}
.assistant-progress-content>.assistant-commentary{color:var(--ink)}
.assistant-thinking{display:flex;align-items:center;gap:4px;width:fit-content;margin:12px 0 0;color:var(--muted)}
.assistant-thinking .loading-indicator{gap:3px;height:auto;min-width:0;color:inherit}
.assistant-thinking .loading-indicator>span{width:3px;height:3px}
.assistant-progress.is-running:not([open]):has(.assistant-progress-content)~.assistant-thinking{display:none}
.assistant-progress{color:#777;font-size:14px;line-height:24px;margin:0 0 24px}
.assistant-progress summary{cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none;padding:0;width:fit-content;max-width:100%;user-select:none}
.assistant-progress summary::-webkit-details-marker{display:none}
.assistant-progress-chevron{display:flex;flex-shrink:0}
.assistant-progress-chevron .icon{width:12px;height:12px;color:#999}
.assistant-progress[open] .assistant-progress-chevron{transform:rotate(180deg)}
.assistant-progress summary:hover{color:#333}
.assistant-progress summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px;border-radius:4px}
.assistant-progress.is-running:not([open]) .assistant-progress-title,.assistant-progress[open] .assistant-progress-summary{display:none}
.assistant-sparkle{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.3}
.assistant-progress summary>.assistant-sparkle{color:#667bb6;fill:currentColor;stroke:none;animation:assistant-pulse 2s ease-in-out infinite}
/* ToolStep and ToolDoneNode from lawstudio-common's chat, adapted from Tailwind to the static prototype. */
.assistant-tool-timeline{
  --tool-line:#dce0e5;
  --tool-icon:#929ba6;
  --tool-muted:#66707c;
  --tool-action:#515a65;
  list-style:none;
  margin:0;
  padding:0;
}
.assistant-tool-step{display:flex;gap:10px;line-height:20px;color:var(--tool-action);font-size:13px}
.assistant-tool-gutter{display:flex;flex:0 0 20px;flex-direction:column;align-items:center;color:var(--tool-icon)}
.assistant-tool-gutter>.icon{width:15px;height:15px;margin-top:2px}
.assistant-tool-step:not(:last-child)>.assistant-tool-gutter::after{content:"";width:1px;flex:1;margin:4px 0;background:var(--tool-line)}
.assistant-tool-content{display:flex;flex:1;align-items:baseline;flex-wrap:wrap;column-gap:8px;min-width:0;overflow-wrap:anywhere}
.assistant-tool-step:not(:last-child)>.assistant-tool-content{padding-bottom:12px}
.assistant-tool-action{font-weight:500}
.assistant-tool-target,.assistant-progress-end{font-size:12.5px;color:var(--tool-muted)}
.assistant-tool-step.is-running>.assistant-tool-gutter{color:#4c5867}
@media(prefers-reduced-motion:no-preference){
  .assistant-tool-step.is-running .assistant-tool-action,.assistant-thinking-label{
    background:linear-gradient(100deg,var(--tool-muted,#66707c) 38%,var(--tool-line,#dce0e5) 50%,var(--tool-muted,#66707c) 62%) 0 0/200% 100%;
    background-clip:text;
    color:transparent;
    animation:assistant-tool-shimmer 3.2s linear infinite;
  }
}
@keyframes assistant-tool-shimmer{from{background-position:-200% 0}to{background-position:200% 0}}
.assistant-scroll-latest{position:absolute;left:50%;top:-44px;transform:translateX(-50%);width:36px;height:36px;background:#fff;border:1px solid #ccc;box-shadow:0 2px 6px #0001;z-index:1}
.assistant-scroll-latest[hidden]{display:none}
.assistant-followup{color:#777;padding:5px 8px;min-height:30px;gap:6px;font-size:12px}
.assistant-followup .icon{width:14px;height:14px}
.assistant-error{color:#a04232;font-size:13px;margin:12px 0}
@keyframes assistant-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.assistant-progress summary>.assistant-sparkle{animation:none}}

.assistant-login-slot:empty{display:none}
.assistant-login-slot{flex:none;max-height:180px;overflow:auto;padding:0 28px 12px}
.assistant-login-notice{padding:12px 16px;background:var(--teal-light,#e3f1f1);border-radius:8px;font-size:14px;line-height:1.5}
.assistant-login-notice>strong{font-weight:600}
.assistant-login-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.assistant-login-ready{color:var(--teal,#00575a)}
.assistant-login-notice>.btn{margin-top:10px}
.assistant-full .assistant-login-slot{width:min(804px,100%);align-self:center}
