@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:100 800;font-display:swap;src:url('/assets/fonts/jetbrains-mono.ttf') format('truetype')}
:root{
 /* palette: truvi-system.css §16 */
 --mono:'JetBrains Mono',ui-monospace,monospace;
 --bg:var(--pv-bg);--panel:var(--pv-surface);--elevated:var(--pv-surface);--line:var(--pv-line);--line-soft:var(--pv-line-2);--text:var(--pv-ink);--muted:var(--pv-muted);--faint:var(--pv-muted);--gold:var(--pv-accent);--gold-bg:var(--pv-accent-tint);--j-cyan:var(--pv-accent);--j-line:var(--pv-line);
 --ui-surface:var(--pv-surface);--ui-sidebar:var(--pv-surface);--ui-border:var(--pv-line);--ui-text:var(--pv-ink);--ui-muted:var(--pv-ink-2);--ui-faint:var(--pv-muted);--ui-primary:var(--pv-accent);--ui-primary-hover:var(--pv-accent);--ui-selected:var(--pv-accent-tint);--ui-selected-text:var(--pv-accent-ink);--ui-sidebar-width:280px;--ui-header-height:56px;color-scheme:light;
}
:root[data-theme=dark]{color-scheme:dark}
html,body.preview-ui{background:var(--pv-bg);color:var(--pv-ink);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}
body.preview-ui{margin:0}body.preview-ui *{box-sizing:border-box}
body.preview-ui :is(button,input,select,textarea){font-family:var(--sans)}
body.preview-ui :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--pv-live);outline-offset:2px}
body.preview-ui :is(h1,h2,h3,h4){color:var(--pv-ink);font-family:var(--sans)}
body.preview-ui h1{font-size:30px;font-weight:600;line-height:1.15;letter-spacing:-.01em}
body.preview-ui :is(.eyebrow,.j-kicker){color:var(--pv-muted);font-size:12px;letter-spacing:0;font-weight:600}
body.preview-ui :is(.button,.ws-link-button){border-radius:8px;font-size:13px;line-height:1.4;min-height:34px}
body.preview-ui .button{border-color:var(--pv-line);background:var(--pv-surface);color:var(--pv-ink);padding:7px 14px;font-weight:500;box-shadow:none}
body.preview-ui .button:hover{background:var(--pv-surface-2);border-color:var(--pv-line)}
body.preview-ui :is(.button.gold,.j-primary,.j-main-action){background:var(--pv-accent);color:var(--pv-on-accent);border-color:transparent;font-weight:600}
body.preview-ui :is(.button.gold,.j-primary,.j-main-action):hover{background:var(--pv-accent);color:var(--pv-on-accent);filter:brightness(.96)}
body.preview-ui :is(.ws-field,.ws-exp-field,.field-label,.hub-form) :is(input,select,textarea),body.preview-ui :is(.input,.ws-search,.ws-global-search input){background:var(--pv-surface-2);color:var(--pv-ink);border:1px solid var(--pv-line);border-radius:8px;font-size:13px}
body.preview-ui :is(textarea,input)::placeholder{color:var(--pv-muted);opacity:1}
body.preview-ui :is(.ws-field,.ws-exp-field) :is(input,select){min-height:36px}
body.preview-ui :is(.ws-field,.ws-exp-field)>span{color:var(--pv-muted)}
body.preview-ui input[type=checkbox],body.preview-ui input[type=radio]{accent-color:var(--pv-accent)}
body.preview-ui :is(.ws-muted,.modal-subtitle,.hub-note,.ws-exp-empty,.no-data){color:var(--pv-muted)}
body.preview-ui :is(.hub-link,.inline-action,.ws-link-button,.ws-object-link){color:var(--pv-accent-ink)}

/* The supplied preview's compact white rail and outlined icon family. */
body.preview-ui .cosmo-header.product-header{position:sticky;top:0;z-index:230;display:flex;align-items:center;gap:14px;height:56px;min-height:56px;padding:0 16px;background:var(--pv-surface);border-bottom:1px solid var(--pv-line);width:100%;box-shadow:none}
body.preview-ui .cosmo-header.product-header .j-brand{display:flex;align-items:center;gap:7px;position:relative;height:44px;margin:0;padding:0 10px 0 2px;border:0;border-radius:10px;line-height:1;color:var(--pv-ink);text-decoration:none;letter-spacing:0;flex:none}
body.preview-ui .cosmo-header.product-header .j-brand:hover{background:var(--pv-surface-2)}
body.preview-ui .cosmo-header.product-header .j-brand[aria-current]{background:var(--pv-accent-tint)}
body.preview-ui .cosmo-header.product-header .preview-mark{display:block;flex:0 0 36px;width:36px;height:36px;margin:0;color:var(--pv-ink);--truvi-guide:var(--pv-muted);opacity:1}
body.preview-ui .cosmo-header.product-header .preview-word{margin:0;line-height:1;opacity:1}
.preview-header-divider{width:1px;height:28px;background:var(--pv-line);flex:none}
body.preview-ui .cosmo-header.product-header nav{display:flex;align-items:center;align-self:auto;gap:4px;margin-left:6px;width:auto;height:44px;flex:none;--product-nav-size:44px}
body.preview-ui .cosmo-header.product-header nav::after{display:none}
body.preview-ui .cosmo-header.product-header .product-nav-icon{flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--pv-ink-2);padding:0}
body.preview-ui .cosmo-header.product-header .product-nav-icon svg{width:20px;height:20px;stroke-width:1.75}
body.preview-ui .cosmo-header.product-header .product-nav-icon:hover{color:var(--pv-ink);background:var(--pv-surface-2)}
body.preview-ui .cosmo-header.product-header .product-nav-icon[aria-current=page]{background:var(--pv-accent-tint);color:var(--pv-accent-ink);box-shadow:none}
body.preview-ui .cosmo-header.product-header :is(button,a):focus-visible{outline:2px solid var(--pv-live);outline-offset:2px}
body.preview-ui .product-nav-tooltip{top:48px;left:50%;transform:translateX(-50%);padding:6px 9px;border:0;border-radius:6px;background:var(--pv-ink);color:var(--pv-bg);font:400 12px/1.4 var(--sans);box-shadow:var(--pv-shadow);white-space:nowrap}
body.preview-ui .product-nav-tooltip strong{font:500 12px/1.4 var(--sans)}
body.preview-ui .product-nav-tooltip>span{display:none}
body.preview-ui .j-brand:is(:hover,:focus-visible) .product-nav-tooltip{opacity:1;visibility:visible;pointer-events:auto}
.preview-global-search{position:relative;display:flex;align-items:center;margin-left:auto;min-width:140px}
.preview-global-search>svg{position:absolute;left:10px;color:var(--pv-muted);pointer-events:none}
.preview-global-search>input{width:220px;height:34px;padding:0 12px 0 34px;border:1px solid var(--pv-line);border-radius:8px;background:var(--pv-surface-2);color:var(--pv-ink);font:14px var(--sans)}
#product-search-results{position:absolute;top:42px;right:0;width:360px;max-width:calc(100vw - 24px);max-height:420px;overflow:auto;border:1px solid var(--pv-line);border-radius:10px;background:var(--pv-surface);padding:6px;box-shadow:var(--pv-shadow);z-index:300}
#product-search-results[hidden]{display:none}#product-search-results p{padding:10px;margin:0;color:var(--pv-muted);font-size:13px}
#product-search-results button{display:flex;flex-direction:column;gap:3px;width:100%;border:0;border-radius:6px;text-align:left;background:transparent;padding:10px;color:var(--pv-ink)}
#product-search-results button:is(:hover,[aria-selected=true]){background:var(--pv-accent-tint)}#product-search-results strong{font-size:13px;font-weight:600}#product-search-results small{font-size:11px;color:var(--pv-muted)}
body.preview-ui .cosmo-header.product-header .product-create-trigger{gap:8px;height:34px;min-height:34px;min-width:120px;margin:0;padding:0 14px;background:var(--pv-accent);color:var(--pv-on-accent);border-radius:8px;font:600 14px var(--sans)}
body.preview-ui .cosmo-header.product-header .product-create-trigger:hover,body.preview-ui .cosmo-header.product-header .product-create-trigger[aria-expanded=true]{background:var(--pv-accent);filter:brightness(.96)}
body.preview-ui .product-create-trigger:before{display:none}body.preview-ui .product-create-trigger svg{width:16px;height:16px}
.preview-theme{display:grid;place-items:center;width:34px;height:34px;padding:0;flex:none;border:1px solid var(--pv-line);border-radius:8px;color:var(--pv-ink);background:var(--pv-surface)}
.preview-theme:hover{background:var(--pv-surface-2)}
.preview-avatar{width:32px;height:32px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--pv-accent-tint);color:var(--pv-accent-ink);font:600 12px var(--sans);flex:none}

/* Keep one real project-switch button across all route re-renders. */
.preview-project-switch{position:fixed;top:56px;left:0;width:280px;min-height:76px;padding:12px;z-index:190;background:var(--pv-surface);border-right:1px solid var(--pv-line);border-bottom:1px solid var(--pv-line)}
body.preview-ui .preview-project-switch .product-project{display:flex;align-items:center;gap:10px;width:100%;min-width:0;max-width:100%;min-height:52px;margin:0;padding:8px 10px;border:1px solid var(--pv-line);border-radius:10px;background:var(--pv-surface-2);color:var(--pv-ink);text-align:left}
.preview-project-switch .product-project:hover{border-color:var(--pv-muted)}
.preview-project-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:8px;background:var(--pv-accent-tint);color:var(--pv-accent-ink)}
.preview-project-switch .product-project-copy{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}
.preview-project-switch .product-project-copy small{font-size:11px;color:var(--pv-muted);font-weight:500}
.preview-project-switch .product-project-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:var(--pv-ink)}
.preview-project-switch .product-project>svg{flex:none;color:var(--pv-muted)}
.preview-context-toggle,.preview-context-backdrop{display:none}
body.preview-ui .project-overview .overview-sidebar,body.preview-ui .scientific-workspace .ws-sidebar,body.preview-ui .project-hub .hub-sidebar,body.preview-ui .preview-context-sidebar{position:sticky;top:56px;align-self:start;height:calc(100dvh - 56px);overflow-y:auto;padding-top:96px;background:var(--pv-surface);border-right:1px solid var(--pv-line)}
body.preview-ui .ws-project-context,body.preview-ui .hub-project{display:none}
body.preview-ui .overview-sidebar .ov-rail-body{padding-top:0}
body.preview-ui :is(.project-overview,.scientific-workspace,.project-hub){background:var(--pv-bg);min-height:calc(100dvh - 56px);grid-template-columns:280px minmax(0,1fr)}
body.preview-ui :is(.hub-sidebar,.hub-content){color:var(--pv-ink)}
body.preview-ui .hub-content{padding:32px 40px 48px;background:var(--pv-bg)}
body.preview-ui .hub-heading{background:transparent;border:0;margin-bottom:24px;padding:0}
body.preview-ui .hub-heading h1{font-size:30px}body.preview-ui .hub-heading p{color:var(--pv-muted);font-size:14px}
body.preview-ui .hub-sidebar{padding-inline:20px}
body.preview-ui .hub-nav button{border:0;border-radius:8px;color:var(--pv-ink-2);font-size:13px;padding:10px 12px}
body.preview-ui .hub-nav button[aria-current]{background:var(--pv-accent-tint);color:var(--pv-accent-ink)}
body.preview-ui .hub-card{background:var(--pv-surface);border:1px solid var(--pv-line);border-radius:12px;padding:20px 24px;box-shadow:none}
body.preview-ui .hub-card h2{font-size:16px}body.preview-ui .hub-card p{font-size:13px;color:var(--pv-muted)}
body.preview-ui :is(.hub-empty,.hub-work-row,.hub-person,.hub-history li,.hub-scope dt,.hub-scope dd){color:var(--pv-ink-2);border-color:var(--pv-line)}
body.preview-ui :is(.hub-work-row:hover,.hub-person:hover,.hub-initials){background:var(--pv-surface-2)}
body.preview-ui :is(.hub-status,.ws-status){border-radius:999px;background:var(--pv-surface-2);color:var(--pv-ink-2);border-color:var(--pv-line)}
body.preview-ui :is(.ws-status[data-status=Completed],.hub-status[data-status=Done]){background:var(--pv-ok-tint);color:var(--pv-ok)}

/* Molecular tools keep their scientific canvases and existing interactions. */
body.preview-ui.preview-research .preview-project-switch{position:relative;top:0;width:100%;padding:8px 20px;min-height:68px;border-right:0}
body.preview-ui.preview-research .preview-project-switch .product-project{max-width:260px}
body.preview-ui #journey.j-browser-layout .j-workspace{background:var(--pv-bg);gap:20px;padding:24px;max-width:none;min-height:calc(100dvh - 124px)}
body.preview-ui #journey.j-browser-layout .j-sidebar,body.preview-ui .j-inspection-column{background:var(--pv-surface);border:1px solid var(--pv-line);border-radius:12px;overflow:clip}
body.preview-ui #journey.j-browser-layout :is(.j-scene,.j-scene-heading,.j-options-row,.j-list-tabs,.j-solution-filters,.j-input-bar,.j-explore-heading,.j-metric-cards,.j-browser-metrics){background:var(--pv-surface);color:var(--pv-ink);border-color:var(--pv-line)}
body.preview-ui #journey.j-browser-layout :is(.j-scene-heading h2,.j-reference-row strong,.j-protein-identity strong,.j-feature-identity strong,.j-goal-row label){color:var(--pv-ink)}
body.preview-ui #journey.j-browser-layout :is(.j-reference-row,.j-evolution-card,.j-feature-row,.j-list-tabs button,.j-search-comparisons,.j-functional select){color:var(--pv-ink-2);background:var(--pv-surface);border-color:var(--pv-line)}
body.preview-ui #journey.j-browser-layout :is(.j-evolution-card.selected,.j-feature-row.active,.j-list-tabs button[aria-selected=true]){background:var(--pv-accent-tint);color:var(--pv-accent-ink)}
body.preview-ui #journey.j-browser-layout :is(.j-action-dock,.j-options-panel,.j-goal-popover,.j-input-popover){border-color:var(--pv-line);background:var(--pv-surface);color:var(--pv-ink-2)}
body.preview-ui #journey.j-browser-layout .j-action-dock .j-main-action{background:var(--pv-accent);color:var(--pv-on-accent)!important;border:0;border-radius:8px;font-size:12px;min-height:34px}
body.preview-ui #journey.j-browser-layout .j-view-switch{background:var(--pv-surface);border-color:var(--pv-line);border-radius:8px}
body.preview-ui #journey.j-browser-layout .j-view-switch button[aria-pressed=true]{background:var(--pv-accent-tint);color:var(--pv-accent-ink)}
body.preview-ui #journey .j-footer{background:var(--pv-bg);color:var(--pv-muted);border-color:var(--pv-line)}
body.preview-ui #journey :is(#j-empty-design,#j-loading){background:var(--pv-surface);color:var(--pv-ink)}
body.preview-ui #journey #j-empty-design :is(p,small){color:var(--pv-muted)}
body.preview-ui #journey #j-empty-reference{color:var(--pv-accent-ink)}
body.preview-ui .design-record-context{background:var(--pv-bg);color:var(--pv-ink);padding:24px 40px}
body.preview-ui :is(.dc-header,.dc-selection,.dc-context-bar,.dc-workspace,.dc-main,.dc-side,.dc-inputs,.dc-output,.dc-card,.dc-record-selector){background:var(--pv-surface);color:var(--pv-ink);border-color:var(--pv-line);border-radius:10px}
body.preview-ui :is(.ws-section,.ws-context section,.ws-empty){background:var(--pv-surface);color:var(--pv-ink);border-color:var(--pv-line);border-radius:10px}
body.preview-ui :is(.dc-context-note,.ws-design-context,.ws-sequence-recovery,#ws-variant-result,.ws-run-context){background:var(--pv-accent-tint);color:var(--pv-ink-2);border-color:var(--pv-line)}
body.preview-ui .dc-goal{color:var(--pv-ink-2)}
body.preview-ui .ws-exp-select{background:var(--pv-surface);color:var(--pv-ink);border-color:var(--pv-line);border-radius:8px}
body.preview-ui .ws-section header h2{color:var(--pv-ink)}

/* Menus and dialogs inherit the same palette, including night mode. */
body.preview-ui .product-create-menu{background:var(--pv-surface);color:var(--pv-ink);border:1px solid var(--pv-line);border-radius:12px;box-shadow:var(--pv-shadow);font-size:13px}
body.preview-ui :is(.product-create-heading,.product-create-note){border-color:var(--pv-line)}
body.preview-ui .product-create-heading>strong{font-size:13px;color:var(--pv-ink)}
body.preview-ui :is(.product-create-heading>span,.product-create-note,.product-create-loading){color:var(--pv-muted)}
body.preview-ui .product-create-item{border-radius:8px;color:var(--pv-ink);font-size:13px;min-height:44px}
body.preview-ui .product-create-item>svg{color:var(--pv-ink-2)}
body.preview-ui .product-create-item:is(:hover,:focus-visible):not(:disabled){background:var(--pv-accent-tint);color:var(--pv-accent-ink)}
body.preview-ui .product-create-divider{background:var(--pv-line)}
body.preview-ui :is(.product-create-back,.product-create-protocols button){background:var(--pv-surface);color:var(--pv-ink);border-color:var(--pv-line)}
body.preview-ui dialog{background:var(--pv-surface);color:var(--pv-ink);border:1px solid var(--pv-line);border-radius:12px;box-shadow:var(--pv-shadow)}
body.preview-ui :is(.modal-head,.modal-section,.project-switch-row){border-color:var(--pv-line)}
body.preview-ui :is(.project-switch-row:hover,.project-switch-row[aria-current],.project-switch-row:focus-visible){background:var(--pv-accent-tint)}
body.preview-ui :is(.modal-title,.project-switch-row strong,.ws-form-choices summary){color:var(--pv-ink)}
body.preview-ui :is(.project-switch-help,.project-switch-copy small,.project-switch-label,.modal-subtitle,.product-create-protocols small){color:var(--pv-muted)}
body.preview-ui .ws-form :is(input,select,textarea){background:var(--pv-surface-2);color:var(--pv-ink);border-color:var(--pv-line);border-radius:8px}
body.preview-ui :is(.ws-reference-preview,.ws-reference-composer,.ws-record-popover){background:var(--pv-surface);color:var(--pv-ink);border-color:var(--pv-line)}
body.preview-ui .ws-reference-chip{background:var(--pv-accent-tint);color:var(--pv-accent-ink);border-color:var(--pv-line)}
@media(max-width:1180px){.preview-global-search{display:none}body.preview-ui .cosmo-header.product-header .product-create-trigger{margin-left:auto}}
@media(max-width:1000px){body.preview-ui .cosmo-header.product-header{gap:10px}body.preview-ui .cosmo-header.product-header nav{gap:0;margin-left:0}.preview-avatar{display:none}}
@media(max-width:800px){
 :root{--ui-header-height:104px}
 body.preview-ui .cosmo-header.product-header{height:104px;min-height:104px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:56px 48px;gap:0 12px;padding:0 16px}
 body.preview-ui .cosmo-header.product-header .j-brand{grid-row:1;grid-column:1;justify-self:start}
 .preview-header-divider{display:none}
 body.preview-ui .cosmo-header.product-header nav{grid-row:2;grid-column:1/-1;width:100%;height:48px;overflow-x:auto;overflow-y:hidden;gap:3px;margin:0;align-self:stretch;scrollbar-width:none}
 body.preview-ui .cosmo-header.product-header .product-nav-icon{width:44px;flex-basis:44px}
 body.preview-ui .cosmo-header.product-header .product-create-trigger{grid-column:2;grid-row:1;min-width:110px;margin:0;height:36px}
 .preview-theme{grid-column:3;grid-row:1}.preview-global-search,.preview-avatar{display:none}
 body.preview-ui .preview-project-switch,body.preview-ui.preview-research .preview-project-switch{position:sticky;top:104px;display:flex;gap:10px;align-items:center;width:100%;min-height:68px;padding:8px 16px;border-right:0;z-index:220}
 body.preview-ui .preview-project-switch .product-project,body.preview-ui.preview-research .preview-project-switch .product-project{min-height:48px;max-width:none;flex:1;width:0}
 .preview-context-toggle{display:grid;place-items:center;width:38px;height:38px;flex:none;border:1px solid var(--pv-line);border-radius:8px;background:var(--pv-surface);color:var(--pv-ink-2)}
 body.preview-ui:is([data-product-tab=design],.preview-research) .preview-context-toggle{display:none}
 body.preview-ui :is(.project-overview,.scientific-workspace,.project-hub){display:block;min-height:calc(100dvh - 172px)}
 body.preview-ui .project-overview .overview-sidebar,body.preview-ui .scientific-workspace .ws-sidebar,body.preview-ui .project-hub .hub-sidebar,body.preview-ui .preview-context-sidebar{display:none;position:fixed;top:172px;left:0;width:280px;height:calc(100dvh - 172px);max-height:none;padding-top:20px;overflow-y:auto;z-index:215;box-shadow:var(--pv-shadow)}
 body.preview-ui.preview-context-open .project-overview:not([hidden]) .overview-sidebar,body.preview-ui.preview-context-open .scientific-workspace:not([hidden]) .ws-sidebar,body.preview-ui.preview-context-open .project-hub:not([hidden]) .hub-sidebar,body.preview-ui.preview-context-open #preview-tools-calendar:not([hidden]) .preview-context-sidebar{display:flex;flex-direction:column}
 .preview-context-backdrop:not([hidden]){display:block;position:fixed;inset:172px 0 0;border:0;background:#0005;z-index:210;width:100%}
 body.preview-ui :is(.hub-content,.design-record-context){padding:24px 20px 40px}
 body.preview-ui #journey.j-browser-layout .j-workspace{padding:16px;gap:16px;grid-template-columns:minmax(0,1fr);min-height:0}
 body.preview-ui .hub-heading h1{font-size:26px}
}
@media(max-width:400px){body.preview-ui .cosmo-header.product-header{padding-inline:12px;gap:0 8px}body.preview-ui .cosmo-header.product-header .j-brand{gap:7px;padding-inline:0}body.preview-ui .cosmo-header.product-header .product-create-trigger{min-width:102px;padding:0 10px}body.preview-ui .preview-project-switch{padding-inline:12px}body.preview-ui :is(.hub-content,.design-record-context){padding-inline:16px}}
@media(prefers-reduced-motion:reduce){body.preview-ui *,body.preview-ui *::before,body.preview-ui *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
