body,
button,
input,
select,
textarea {
  font-family: Inter, Arial, sans-serif;
}
body {
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#root :is(h1, h2, h3) {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
#root .text-sm,
#root .preview-user-message,
#root .preview-build-apps [data-build-assistant] .prose {
  font-size: 14px;
  line-height: 1.6;
}
#root .platform-shell-header,
#root .platform-sidebar button {
  font-size: 12px;
}
#root .preview-product-brand {
  font-size: 14px;
}
#root button[aria-label="Maximize artifact"],
#root button[aria-label="Restore conversation"] {
  display: none;
}
.preview-cursor,
.preview-demo-cursor {
  width: 20px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgb(25 49 83 / 16%));
  transition: opacity 240ms ease;
}
.preview-cursor::before,
.preview-demo-cursor::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 24px;
  background: url("/preview-pointer.svg") center / contain no-repeat;
}
.preview-cursor {
  transition:
    left 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    top 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 240ms ease;
}
.preview-cursor > svg,
.preview-demo-cursor > svg,
.preview-cursor span,
.preview-demo-cursor span {
  display: none;
}
.preview-demo-cursor i {
  border-color: #3975d6;
}
body[data-study-view] h1 {
  font-size: 16px;
  font-weight: 600;
}
.study-summary strong {
  font-size: 18px;
  line-height: 1.3;
}
.workflow-definition-diagram .workflow-diagram-card,
.workflow-definition-diagram .workflow-diagram-node-icon {
  transition:
    background-color 300ms ease,
    border-color 300ms ease,
    color 300ms ease,
    box-shadow 300ms ease;
}
.workflow-definition-diagram .react-flow__edge-path {
  transition:
    stroke 300ms ease,
    stroke-opacity 300ms ease,
    opacity 300ms ease;
}
.workflow-definition-diagram .workflow-diagram-edge-label {
  transition: color 300ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .preview-cursor,
  .preview-demo-cursor {
    display: none;
    transition: none;
  }
  .workflow-definition-diagram .workflow-diagram-card,
  .workflow-definition-diagram .workflow-diagram-node-icon,
  .workflow-definition-diagram .react-flow__edge-path,
  .workflow-definition-diagram .workflow-diagram-edge-label {
    transition: none;
  }
}

body:has(.preview-build-apps) .platform-sidebar { display: none; }
.preview-composer-shell [class*="min-h-"] { min-height: 48px !important; max-height: 80px; }
.preview-composer-shell textarea { height: 48px !important; min-height: 48px !important; padding: 10px 12px; font-size: 12px; }
.preview-composer-shell button { max-height: 26px; }
body[data-study-view] { font-size: 11px; }
body[data-study-view] header { padding: 8px 12px; }
body[data-study-view] h1 { font-size: 13px; }
body[data-study-view] .sub { font-size: 10px; }
body[data-study-view] main > aside { padding: 10px 12px; }
body[data-study-view] aside .grp { padding-bottom: 8px; margin-bottom: 8px; }
body[data-study-view] select { padding: 3px 5px; margin-bottom: 6px; font-size: 11px; }
body[data-study-view] .row { font-size: 11px; }
body[data-study-view] .row strong { font-size: 12px; }
body[data-study-view] .study-summary { padding: 8px 0; }
body[data-study-view] .study-summary strong { font-size: 16px; margin-top: 3px; }
body[data-study-view] section.pane { padding: 9px 12px; }
body[data-study-view] .study-views button { padding: 7px 0; font-size: 11px; }
body[data-study-view] .plot { max-height: 180px; }
body[data-study-view] #pRoad { max-height: 70px; }
body[data-study-view] #pAcc, body[data-study-view] #pTrv, body[data-study-view] #pTyr { max-height: 115px; }

@media (min-width: 360px) {
  body[data-study-view] main { display: grid; grid-template-columns: 124px minmax(0, 1fr); overflow: hidden; }
  body[data-study-view] main > aside { display: block; overflow: auto; padding: 10px; border-right: 0.5px solid var(--line); border-bottom: 0; }
  body[data-study-view] main > aside .grp { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 0.5px solid var(--line); }
  body[data-study-view] main > div { overflow: auto; min-height: 0; }
  body[data-study-view] .study-summary > div { padding: 0 6px; }
  body[data-study-view] .study-summary span { min-height: 0; font-size: 9px; }
  body[data-study-view] .study-summary strong { font-size: 14px; }
  body[data-study-view] .study-summary em { font-size: 9px; }
}


#root .platform-shell-header { min-height: 40px; gap: 12px; padding: 8px 16px; border-bottom: 0.5px solid #e8e8eb; background: #fff; }
#root .platform-shell-header::before { content: ""; display: block; flex-shrink: 0; width: 38px; height: 10px; background: radial-gradient(circle at 5px 5px,#de9995 3.5px,transparent 4px),radial-gradient(circle at 19px 5px,#d9bd7d 3.5px,transparent 4px),radial-gradient(circle at 33px 5px,#92bba1 3.5px,transparent 4px); }
#root .platform-shell-header :is(h1,h2,h3) { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
#root [data-preview-utilities], #root button[aria-label="Copy message"], #root button[aria-label="Copied"] { display: none; }
body:has(.workflow-definition-diagram) main header { display: none; }
.workflow-definition-diagram .react-flow__panel:has([aria-label="Diagram orientation"]),
.workflow-definition-diagram .react-flow__panel:has([aria-label="Diagram zoom"]) { display: none; }
.preview-composer textarea::placeholder { color: transparent; }
.preview-composer-agent, .preview-composer button[aria-label="Skills"], .preview-composer button[aria-label="Apps"] { display: none; }
body[data-study-view] h1 { font-size: 12px; font-weight: 500; }
body[data-study-view] :is(h2, strong, b) { font-weight: 500; }
body[data-study-view] .row strong { font-size: 11px; }
* { scrollbar-width: thin; scrollbar-color: #00000020 transparent; }
*::-webkit-scrollbar { width: 3px; height: 3px; }
*::-webkit-scrollbar-thumb { background: #00000020; border-radius: 3px; }
*::-webkit-scrollbar-track { background: transparent; }
[data-radix-scroll-area-scrollbar][data-orientation="vertical"] { width: 3px !important; padding: 0 !important; background: transparent !important; }
[data-radix-scroll-area-scrollbar][data-orientation="horizontal"] { height: 3px !important; padding: 0 !important; background: transparent !important; }
[data-radix-scroll-area-scrollbar] > div { background: #00000020 !important; }

body:has(.preview-conversation):not(:has(.preview-build-apps)) .platform-shell-header::before { display: none; }
#root [data-chat-actions] { display: none; }
body[data-study-view] > header { display: none; }
.preview-user-message + div { display: none; }
#root .platform-sidebar { width: 48px !important; }
#root .platform-sidebar > div { padding-inline: 5px; }
#root .platform-sidebar button { height: 30px; min-height: 30px; font-size: 11px; padding-inline: 4px; justify-content: center; }
#root .platform-sidebar button > span, #root .platform-sidebar .preview-product-brand { display: none; }
#root .platform-sidebar button > svg { width: 14px; height: 14px; }
#root .platform-sidebar [class*="h-\[17px\]"] { width: 14px; height: 14px; }
#root .preview-build-apps :is(.text-sm,.prose,.preview-user-message) { font-size: 12px; line-height: 1.55; }
#root .preview-build-apps :is(h1,h2,h3) { font-size: 14px; font-weight: 500; }
#root .preview-build-apps strong { font-weight: 500; }
#root .platform-shell-header + main > div > div.border-t { border-top: 0; }
.platform-shell-header::before { background: radial-gradient(circle at 5px 5px,#ff5f57 4px,transparent 4.5px),radial-gradient(circle at 19px 5px,#febc2e 4px,transparent 4.5px),radial-gradient(circle at 33px 5px,#28c840 4px,transparent 4.5px) !important; }
body[data-presentation="true"] #root .platform-shell-header::before { display: none; }
#root .platform-sidebar button[aria-label="moveOS analysis"],
#root .platform-sidebar > .mt-2 > div:first-child { display: none; }
.preview-study-question { margin: 14px 0 10px auto; max-width: 88%; padding: 8px 10px; border-radius: 10px; background: #eeeef0; color: #3f3f46; font-size: 11px; line-height: 1.6; }
.preview-study-answer { margin: 8px 0; font-size: 11px; line-height: 1.65; color: #52525b; font-weight: 400; }

body:has(.workflow-definition-diagram) [data-orientation="horizontal"]:has(> [role="tablist"]) { margin-top: 4px; }
body:has(.workflow-definition-diagram) [role="tablist"] { margin-inline: 12px; gap: 2px; }
body:has(.workflow-definition-diagram) [role="tab"] { padding: 6px 12px; font-size: 11px; font-weight: 400; border-bottom-width: 1px; }
body:has(.workflow-definition-diagram) [role="tab"][data-state="active"] { background: var(--background); color: var(--foreground); border-color: var(--foreground); box-shadow: none; }
body:has(.workflow-definition-diagram) [role="tab"] svg { width: 12px; height: 12px; }

.workflow-definition-diagram .react-flow__edge-path { transition: stroke 650ms ease, stroke-opacity 650ms ease, opacity 650ms ease; stroke-linecap: round; }
@media(prefers-reduced-motion:reduce) { .workflow-definition-diagram .react-flow__edge-path { transition: none; } }

.workflow-diagram-path-shimmer { stroke: #3b82f6; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; filter: none; animation: previewEdgeTravel 1600ms linear both; }
@keyframes previewEdgeTravel { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media(prefers-reduced-motion:reduce) { .workflow-diagram-path-shimmer { animation: none; stroke-dasharray: none; } }

@media (max-width: 600px) {
  body[data-presentation="true"] .platform-sidebar { display: none; }
  body[data-presentation="true"] #root .preview-conversation { padding-bottom: 0; }
  #root .workflow-definition-diagram .workflow-diagram-canvas { min-width: 0; }
  #root:has(.workflow-definition-diagram) [role="tablist"] { margin-inline: 8px; }
  #root:has(.workflow-definition-diagram) [role="tab"] { min-height: 40px; padding-inline: 9px; }
}

#root .workflow-definition-diagram .workflow-diagram-canvas { min-height: 0; }

#root .preview-build-artifact { border-left-width: 0.5px; }
#root .preview-build-artifact > header { background: #fff; border-bottom-width: 0.5px; }

body:has(.workflow-definition-diagram),
body:has(.preview-build-apps) {
  --background: 0 0% 100%;
  background: #fff;
}

body[data-presentation="true"] #root [data-chat-actions] { display: flex; }
body[data-presentation="true"] #root [data-chat-actions] > * { display: inline-flex; }
body[data-presentation="true"] #root .platform-shell-header { min-height: 48px; padding: 8px 16px; }
body[data-presentation="true"] #root .platform-shell-header h1 { font-size: 12px; font-weight: 400; }
@media (max-width: 600px) {
  body[data-presentation="true"] #root [data-chat-actions] > :first-child { display: none; }
}
body[data-presentation="true"] #root [data-hero-panel-toggle] { display: inline-flex; }
body[data-presentation="true"] #root .rounded-xl { border-radius: 12px; }
body[data-presentation="true"] #root .preview-conversation .text-sm,
body[data-presentation="true"] .preview-study-answer { font-size: 13px; line-height: 1.6; }
body[data-presentation="true"] .preview-study-answer { color: #27272a; }
body[data-presentation="true"] #root .preview-conversation .text-xs { font-size: 11px; }
body[data-presentation="true"] #root .preview-conversation .text-\[11px\] { font-size: 10.5px; }
@media (min-width: 768px) {
  body[data-presentation="true"] #root .preview-chat-layout[data-chat-panel="true"][data-artifact-full="false"] { grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr); }
}
body[data-presentation="true"] #root button[aria-label="Maximize artifact"],
body[data-presentation="true"] #root button[aria-label="Restore conversation"] { display: inline-flex; }
body[data-study-view][data-presentation="true"] { font-size: 12px; }
body[data-study-view][data-presentation="true"] :is(.row,.sub,.study-views button,select) { font-size: 12px; }
body[data-study-view][data-presentation="true"] .row strong { font-size: 13px; }

body[data-study-view] input[type="range"] {
  appearance: none;
  height: 22px;
  margin: 2px 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  accent-color: #920010;
}
body[data-study-view] input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #920010 var(--slider-fill, 0%), #e4e4e7 var(--slider-fill, 0%));
}
body[data-study-view] input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0.5px solid #d4d4d8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
}
body[data-study-view] input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: #e4e4e7;
}
body[data-study-view] input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #920010;
}
body[data-study-view] input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0.5px solid #d4d4d8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
}
body[data-study-view] input[type="range"]:focus-visible {
  outline: 2px solid #92001055;
  outline-offset: 2px;
}

#root .preview-demo-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 220px;
  padding: 12px 14px;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  background: #920010;
  color: #fff;
  box-shadow: 0 8px 28px #42000830, 0 2px 6px #00000018;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.2,.8,.2,1), display 320ms allow-discrete, overlay 320ms allow-discrete;
}
#root .preview-demo-popover:popover-open { opacity: 1; transform: translateY(0); }
.preview-demo-popover p { margin: 0 0 5px; }
.preview-demo-popover button { padding: 0; background: none; border: 0; color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.preview-demo-popover button:hover { text-decoration: underline; }
.preview-demo-popover button:focus-visible { outline: 2px solid #ffffffb3; outline-offset: 4px; border-radius: 2px; }
.preview-demo-popover::backdrop {
  background: #17171900;
  transition: background 320ms ease, display 320ms allow-discrete, overlay 320ms allow-discrete;
}
.preview-demo-popover:popover-open::backdrop { background: #1717190d; }
@starting-style {
  #root .preview-demo-popover:popover-open { opacity: 0; transform: translateY(5px); }
  .preview-demo-popover:popover-open::backdrop { background: #17171900; }
}
@media (prefers-reduced-motion: reduce) {
  #root .preview-demo-popover, .preview-demo-popover::backdrop { transition: none; transform: none; }
}

.preview-demo-notice {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(6px);
  transition: grid-template-rows 280ms ease, opacity 220ms ease, transform 280ms ease;
}
.preview-demo-notice-content { min-height: 0; overflow: hidden; }
.preview-demo-notice[data-open="true"] {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .preview-demo-notice { transition: none; transform: none; }
}

.preview-disclosure {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 260ms ease, opacity 220ms ease;
}
.preview-disclosure[data-open="true"] { grid-template-rows: 1fr; opacity: 1; }
.preview-disclosure-content { min-height: 0; overflow: hidden; }
.preview-disclosure-trigger > svg:last-child { transition: transform 220ms ease; }
.preview-disclosure-trigger[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .preview-disclosure, .preview-disclosure-trigger > svg:last-child { transition: none; }
}

body[data-presentation="true"] #root .platform-shell-header { background: #fafafa; padding-inline: 12px; }
body[data-presentation="true"] #root .preview-analysis-heading { font-size: 12px; font-weight: 400; }
body[data-presentation="true"] #root .preview-profile { width: 26px; height: 26px; padding: 0; border-radius: 50%; overflow: hidden; }
@media (max-width: 1000px) {
  .preview-project-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 767px) {
  body[data-presentation="true"] #root .preview-analysis-tools { display: none; }
  .preview-publish-label { display: none; }
  body[data-presentation="true"] #root .platform-shell-header h1 { max-width: none; }
}

body[data-presentation="true"] #root .platform-shell-header button { font-weight: 400; }

.workflow-definition-diagram { --workflow-connection: #767d87; }
.workflow-definition-diagram .workflow-diagram-card .react-flow__handle { background: #b4bac2; }
.workflow-definition-diagram .workflow-diagram-card[aria-pressed="true"] .react-flow__handle { background: hsl(var(--workflow-node-tone)); }

@media (hover: hover) and (pointer: fine) {
  .preview-composer-shell,
  .preview-disclosure-trigger,
  body[data-study-view] :is(select, .seg button, .study-views button, section.pane) {
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }
  .preview-composer-shell:hover { border-color: #a1a1aa; box-shadow: 0 2px 10px rgb(24 24 27 / 6%); }
  .preview-disclosure-trigger:hover { color: #27272a; }
  body[data-study-view] select { cursor: pointer; }
  body[data-study-view] select:hover { border-color: #9aa5b1; }
  body[data-study-view] .seg button:not(.on):hover { background: #f6f8fa; color: #1f2933; }
  body[data-study-view] .study-views button:not([aria-pressed="true"]):hover { color: #1f2933; }
  body[data-study-view] section.pane:has(.js-plotly-plot):hover { background: #fafbfc; }
  body[data-study-view] input[type="range"]::-webkit-slider-thumb { transition: transform 160ms ease; }
  body[data-study-view] input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.25); }
  body[data-study-view] input[type="range"]::-moz-range-thumb { transition: transform 160ms ease; }
  body[data-study-view] input[type="range"]:hover::-moz-range-thumb { transform: scale(1.25); }
}
