/* Standalone browser workspace only. Scribe's task pane keeps its own chrome. */
#amicus-host.is-fullpage .jamicus-fullpage {
  --amicus-sidebar: 248px;
  --amicus-ease: cubic-bezier(.22,.75,.2,1);
}
#amicus-host.is-fullpage .jamicus-fullpage-collapsed { --amicus-sidebar: 0px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel {
  display: grid;
  grid-template-columns: var(--amicus-sidebar) minmax(0,1fr);
  grid-template-rows: 44px minmax(0,1fr) auto;
  transition: grid-template-columns .28s var(--amicus-ease);
}
/* Keep the privacy, incognito, close and history controls; quiet the duplicate masthead. */
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child {
  padding: 0 !important;
  height: 44px;
  justify-content: center;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: left .28s var(--amicus-ease);
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child > div:first-child { padding: 0 24px !important; justify-content: flex-end !important; align-items: center !important; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child > div:first-child > div:first-child {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child > div:first-child > div:last-child { gap: 12px !important; margin: 0 !important; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child > div:first-child button { width: 28px; height: 28px; border-radius: 7px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child > div:first-child button:hover { background: var(--jura-hover) !important; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel > div:first-child > div:not(:first-child) { display: none; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history {
  position: absolute; inset: 0 auto 0 0; width: 248px; max-width: 85vw; max-height: none;
  box-sizing: border-box; border: 0; border-right: 1px solid var(--line); border-radius: 0;
  background: color-mix(in srgb,var(--surface-alt) 75%,transparent); box-shadow: none;
  animation: none; padding: 24px 12px 12px;
  transition: transform .28s var(--amicus-ease),opacity .2s ease,visibility .28s;
}
#amicus-host.is-fullpage .jamicus-fullpage-collapsed .jamicus-history { transform: translateX(-100%); opacity: 0; visibility: hidden; pointer-events: none; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history > h2 {
  position: static; width: auto; height: auto; clip: auto; margin: 0 12px 22px; overflow: visible;
  font-size: 11px; font-weight: 550; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-top { padding: 0 0 20px; gap: 12px; border: 0; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-new {
  justify-content: flex-start; gap: 10px; padding: 11px 14px; border-radius: 9px;
  background: var(--accent-soft); color: var(--ink) !important; font-size: 13px !important; font-weight: 550 !important;
  border: 1px solid color-mix(in srgb,var(--accent) 18%,transparent);
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-new svg { color: var(--accent); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-search input { background: transparent; border-color: transparent; font-size: 12px; padding-block: 9px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-search input:focus { border-color: var(--jura-border); background: var(--jura-glass); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-list { padding: 0; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-group-label { font-size: 10px; font-weight: 500; padding: 9px 12px; letter-spacing: .06em; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-row { margin: 2px 0; padding: 10px 12px; border: 0; border-radius: 8px; transition: background .18s; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-row.is-active { background: var(--jura-hover); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-select { font-size: 12px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-tools { margin-top: auto; padding: 12px 0 0; flex-direction: column; gap: 2px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-tools button { justify-content: flex-start; padding: 10px 12px; gap: 10px; font-size: 11px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-tools button span { white-space: nowrap; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-settings { padding: 14px 4px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-history-settings-heading { padding: 0 4px 14px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-messages {
  grid-column: 2; grid-row: 2; margin: 0;
  padding: 20px max(28px,calc((100% - 790px)/2)) 24px;
  scroll-padding-block: 24px; overscroll-behavior: contain;
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-composer {
  grid-column: 2; grid-row: 3; position: relative; inset: auto;
  width: min(790px,calc(100% - 56px)); justify-self: center;
  padding: 10px 0 22px; box-sizing: border-box; background: transparent;
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-input-box {
  border-radius: 16px; box-shadow: 0 8px 36px #30291d08; background: var(--jura-glass);
  transition: border-color .2s,box-shadow .2s,background .2s;
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-input-box:focus-within { box-shadow: 0 8px 36px #30291d0b,0 0 0 2px color-mix(in srgb,var(--accent) 9%,transparent); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-composer-preferences { border-bottom-color: color-mix(in srgb,var(--line) 65%,transparent); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-workspace-trigger { padding: 11px 16px; font-size: 11px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-length-trigger { padding: 11px 14px; border-left: 0; font-size: 11px; color: var(--muted); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-query-row { padding: 14px 12px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-attach { bottom: 14px; left: 12px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-input-box textarea { font-size: 14px; padding-left: 32px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-voice-button { bottom: 12px; right: 12px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-input-box .jamicus-send { bottom: 12px; right: 12px; border-radius: 9px; animation: amicus-workspace-reveal .2s var(--amicus-ease); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-input-box.has-draft .jamicus-send { right: 50px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-scribe-context { margin: 0 0 10px; max-width: 100%; font-size: 10px; border-radius: 7px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-attachments > div { animation: amicus-workspace-reveal .22s var(--amicus-ease); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-notice { top: 45px; left: calc(var(--amicus-sidebar) + 24px); right: 24px; box-shadow: var(--jura-shadow); }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel:has(.mobile-welcome) {
  grid-template-rows: minmax(44px,1fr) auto auto minmax(24px,1.1fr);
}
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel:has(.mobile-welcome) .jamicus-messages { padding-block: 0; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome { width: 100%; max-width: 790px; margin: 0; text-align: center; animation: amicus-workspace-reveal .45s var(--amicus-ease) both; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome-mark .jamicus-mark { width: 46px; height: 46px; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-eyebrow { margin: 18px 0 16px; font-size: 9px !important; letter-spacing: .17em; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome h2 { font: 400 clamp(30px,3.2vw,44px)/1.13 "Jura Welcome Serif",Georgia,serif; letter-spacing: -.035em; margin: 0 0 16px; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome > p:not(.mobile-eyebrow) { max-width: 430px; margin: 0 auto; font-size: 13px; line-height: 1.75; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-starters { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-starters button { gap: 9px; padding: 14px 12px; border-radius: 10px; font-size: 11px; background: transparent; transition: transform .2s var(--amicus-ease),background .2s,border-color .2s; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-starters button:hover { transform: translateY(-2px); background: var(--jura-glass); border-color: color-mix(in srgb,var(--accent) 40%,var(--line)); }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-starters button > svg:first-child { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-starters button > svg:last-child { width: 13px; flex-shrink: 0; opacity: .5; }
#amicus-host.is-fullpage .jamicus-fullpage .mobile-voice-hint { justify-content: center; margin: 16px 0 8px; font-size: 10px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel:has(.is-length-open,.jamicus-workspace-link.is-open) { grid-template-rows: 44px minmax(0,1fr) auto; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel:has(.is-length-open,.jamicus-workspace-link.is-open) .jamicus-messages { padding-block: 20px; }
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-confirm-modal,
#amicus-host.is-fullpage .jamicus-fullpage .jamicus-preview-modal { animation: amicus-workspace-reveal .22s var(--amicus-ease); }
#amicus-host.is-fullpage .jamicus-fullpage button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes amicus-workspace-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  #amicus-host.is-fullpage .jamicus-fullpage { --amicus-sidebar: 220px; }
  #amicus-host.is-fullpage .jamicus-fullpage-collapsed { --amicus-sidebar: 0px; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-history { width: 220px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-starters { gap: 6px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-starters button { padding: 12px 8px; }
}
@media (max-width: 760px) {
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-starters { grid-template-columns: 1fr; gap: 5px; margin-top: 18px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-starters button { padding: 10px 12px; }
}
@media (max-width: 640px) {
  #amicus-host.is-fullpage .jamicus-fullpage { --amicus-sidebar: 0px; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-history { width: 270px; background: var(--surface); box-shadow: var(--jura-shadow); z-index: 110; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-messages { padding-inline: 16px; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-composer { width: calc(100% - 32px); padding-bottom: 16px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome h2 { font-size: 32px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome > p:not(.mobile-eyebrow) { font-size: 12px; }
}
@media (max-height: 720px) {
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel:has(.mobile-welcome) { grid-template-rows: 44px minmax(0,1fr) auto; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-panel:has(.mobile-welcome) .jamicus-messages { padding-block: 16px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome { margin-block: auto; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome-mark .jamicus-mark { width: 32px; height: 32px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-eyebrow { margin-block: 10px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-welcome h2 { font-size: 32px; margin-bottom: 10px; }
  #amicus-host.is-fullpage .jamicus-fullpage .mobile-starters { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #amicus-host.is-fullpage .jamicus-fullpage *,
  #amicus-host.is-fullpage .jamicus-fullpage *::before,
  #amicus-host.is-fullpage .jamicus-fullpage *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 400px) {
  body:has(#amicus-host.is-fullpage) #amicus-topbar { gap: 6px; padding-inline: 10px; }
  body:has(#amicus-host.is-fullpage) #amicus-topbar .workspace-label { display: none; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-scribe-context { gap: 5px; }
  #amicus-host.is-fullpage .jamicus-fullpage .jamicus-scribe-context small { min-width: 0; flex: 1; }
}
