/* CalyxCash: shared semantic brand. #1411. Data stays flat, labeled and comparable. */
:root,body.research-universe{color-scheme:dark;--bg:#080e1b;--bg-2:#101a2c;--bg-3:#1d2d46;--card:#111d30;--paper:#111d30;--ink:#eff4ff;--ink-2:#c0cde2;--ink-3:#a6b8d2;--muted:#a6b8d2;--text:#eff4ff;--line:#344661;--line-2:#6882a5;--border:#344661;--accent:#8ce5f7;--accent-2:#b0edfa;--accent-ink:#8ce5f7;--accent-soft:#19364b;--good:#80e5bb;--good-soft:#163a32;--warn:#f3ce8b;--warn-soft:#3a2e1b;--bad:#ff9aae;--danger:#ff9aae;--bad-soft:#3c2130;--green:#80e5bb;--violet:#c9afff;--sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;--serif:var(--sans);--sidebar:238px;--shadow:0 4px 18px #0003;--api-s1:#8ce5f7;--api-s2:#ffc184;--api-s3:#80e5bb;--api-other:#c9afff}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:15px;line-height:1.6}a{color:var(--accent-ink);text-underline-offset:3px}::selection{background:#38537b;color:#fff}
:focus-visible{outline:3px solid #f3ce8b!important;outline-offset:3px;scroll-margin:80px 12px 100px}button,input,select,textarea{font-family:var(--sans)}input,select,textarea{accent-color:var(--accent);caret-color:var(--ink)}input::placeholder,textarea::placeholder{color:var(--ink-3);opacity:1}
input:not([type=checkbox]):not([type=radio]),select,textarea{background-color:var(--bg-2);color:var(--ink);border-color:var(--line-2)}button:disabled{opacity:.65}button,.btn,.button,summary{touch-action:manipulation}
.btn,.button,.citation,.rd-button{min-height:40px;border-color:var(--line-2);background:var(--card);color:var(--ink);border-radius:7px}
.btn.primary,.btn.accent,.button.primary,.primary-btn,.ag-toolbar .btn.primary,#view-contracting .btn.primary{background:var(--accent);border-color:var(--accent);color:#081421;font-weight:650}.btn.primary:hover,.btn.accent:hover,.button.primary:hover,.ag-toolbar .btn.primary:hover,#view-contracting .btn.primary:hover{background:#b8f1fb;color:#081421;border-color:#b8f1fb}
.notice.bad,.notice.error{color:var(--bad);background:var(--bad-soft);border-color:#a4657e}.notice.warn,.ws-construction{color:var(--warn);background:var(--warn-soft);border-color:#a99062}.notice.good{color:var(--good);background:var(--good-soft)}
.sidebar{background:#0b1424;padding:14px 10px 10px;border-right-color:var(--line);box-shadow:none}.sidebar-top{background:#0b1424;padding-bottom:14px;top:-14px}.brand{font-size:20px;letter-spacing:-.5px;color:var(--ink)}
.brand-symbol{background:linear-gradient(135deg,#8ce5f7,#a4b9ff 55%,#c9afff);color:#081421;border-radius:8px;box-shadow:none}.brand-symbol{width:30px;height:30px}.brand-symbol .i{width:18px;height:18px}
.sidebar .nav-item{font-size:13px;min-height:40px;padding:8px 10px;border-radius:7px;gap:10px}.sidebar .nav-item .i{width:17px;height:17px;flex-basis:17px;color:var(--ink-3)}.nav-item.active{background:#20314d;border:1px solid #6683ad;color:#b9f0ff}.nav-item.active .i{color:#b9f0ff}.sidebar .nav-label{margin:14px 10px 5px;font-size:10px;letter-spacing:.1em;color:var(--ink-3)}.sidebar-section{padding-top:14px!important}.sidebar .recent{max-height:120px}.sidebar-foot{font-size:11px}
.main-bar{min-height:54px;padding:8px 24px;gap:14px;background:#0b1424;border-color:var(--line)}.main-bar .title{color:var(--ink);font-size:13px}.ws-quick-find{background:var(--bg-2);border-color:var(--line-2);color:var(--ink-2);min-height:36px}.ws-quick-find kbd{background:var(--card);border-color:var(--line-2)}.ws-help-link,.icon-button{color:var(--ink-2)}
.view{padding:22px 24px 48px;scroll-padding-top:20px}.view-inner,.ws-page,.api-inner,.we-page,.wa-page,#view-contracting{width:100%;max-width:none;margin-inline:0}.view h1,.page-head h1{font-size:28px;line-height:1.25;letter-spacing:-.7px}.page-head{margin-bottom:20px}.page-head p{max-width:85ch;color:var(--ink-2)}
.ws-page{padding:0}.ws-page h1{font-size:28px}.ws-lede{font-size:14px;max-width:85ch}.ws-directory{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.ws-directory-card{padding:18px;background:var(--card);border-color:var(--line);box-shadow:none}.ws-directory-card>strong{color:var(--ink)}.ws-directory-card>span{color:var(--ink-2)}.ws-card-icon{background:var(--accent-soft);color:var(--accent-ink)}.ws-task{background:var(--card);border-color:var(--line);padding:18px}.ws-task-grid{gap:14px}
.we-page{--we-host:var(--bad);--we-calm:var(--good);--we-new:#a4b9ff}.wa-page{--wa-buy:var(--good);--wa-sell:var(--bad);--wa-other:#a4b9ff}#view-contracting{--ct-brand:var(--accent);--ct-brand-hover:#b8f1fb;--ct-soft:var(--accent-soft)}.agent-guide{--ag-text:var(--ink-2);max-width:none}.ag-header h1{font-size:28px}.ag-toolbar,.ag-document{padding-inline:24px}.ag-section{padding-block:22px}
.we-card,.wa-card,.oh-card,.ct-card,.evidence-card,.stat{background:var(--card);border-color:var(--line);box-shadow:none}.oh-root{padding:22px 24px 48px}.oh-results{gap:14px}.oh-card{padding:18px}.oh-filters{padding:16px;gap:12px}.oh-card h2{font-size:19px}.ct-hero{padding:22px}.ct-stat,.ct-metric{background:var(--card)}
.settings-shell{max-width:1280px}.settings-nav{border-color:var(--line)}.account-page{max-width:1100px}.account-page h1,.settings-heading h1{font-family:var(--sans);font-size:30px}.auth-card{border-color:var(--line-2);background:var(--card)}.auth-card h1{font-family:var(--sans)}
/* Public entry: same brand, clear paths, no mock charts or decorative data art. */
/* Hosted developer surfaces and hard-coded legacy palette aliases. */
.dev-hero,.dev-section,.api-hero{background-color:var(--bg)}.api-tag,.api-step,.api-card,.api-metric{border-color:var(--line)}.dev-card,.dev-panel,.console-panel{background:var(--card);border-color:var(--line)}.dev-header,.dev-nav{border-color:var(--line)}.dev-kicker,.dev-eyebrow{color:var(--accent)}
@media(min-width:1800px){.view{padding-inline:32px}.oh-results{grid-template-columns:repeat(3,minmax(0,1fr))}.ws-directory{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px),(max-height:620px){.sidebar{display:none}.app.sidebar-open .sidebar{display:flex;background:#0b1424}.sidebar-backdrop{background:#020711b3}}
@media(max-width:760px){.view,.oh-root{padding:18px 14px 80px}.main-bar{padding:8px 14px;gap:10px;min-height:54px}.ws-quick-find{min-width:0}.view h1,.page-head h1,.ws-page h1{font-size:25px}.sidebar .nav-item{min-height:44px}.btn,.button,.rd-button{min-height:44px}.account-page{padding-inline:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){.rd-real-bar{background:Highlight!important}.btn,.nav-item.active{border:1px solid ButtonText}:focus-visible{outline-color:Highlight!important}}

.nav-more{margin:12px 0 0}.nav-more>summary{padding:9px 10px;color:var(--ink-2);font-size:13px;min-height:40px;border:1px solid var(--line);border-radius:7px;cursor:pointer}.nav-more[open]>summary{margin-bottom:5px}.rd-follow{font-size:12px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.rd-follow>summary{min-height:32px;cursor:pointer;color:var(--accent)}

.lq-page{--lq-up:var(--good);--lq-down:var(--bad);max-width:none}.fb-page{--fb-home:#a4b9ff;--fb-away:#8ce5f7;max-width:none}.fb-layout h2.fb-schedule-heading{font-size:16px;margin:0 0 10px}

#fb-rail-title{font-size:14px;margin:0;font-weight:650}.ct-profile-callout h2{font-size:16px;margin:0 0 5px;line-height:1.4}

.dev-request{padding:26px;border:1px solid var(--line);border-radius:10px;background:var(--card)}.dev-request h2{font-size:24px;line-height:1.3}.dev-request p{color:var(--ink-2)}.dev-request pre{font-size:13px;background:var(--bg);border-color:var(--line);padding:18px}.dev-hero{padding-block:48px;min-height:0}.dev-hero h1{font-size:clamp(36px,4vw,60px);line-height:1.12}.dev-section{padding-block:40px}

/* Scale the workspace with its CSS viewport, including browser zoom/reflow. */
:root,body.research-universe{--sidebar:clamp(256px,10vw + 112px,352px);--workspace-gutter:clamp(20px,2.2vw,80px);--workspace-text:clamp(16px,.25vw + 12px,22px);--workspace-small:clamp(14px,.2vw + 11px,18px)}
.app{min-width:0}.main,.view,.view-inner{min-width:0}
.sidebar .nav-item{font-size:clamp(14px,.3vw + 10px,20px);min-height:44px;padding:10px 12px;line-height:1.45}
.sidebar .nav-item .i{width:1.2em;height:1.2em;flex-basis:1.2em}
.sidebar .nav-label{font-size:clamp(11px,.15vw + 9px,14px);margin-block:18px 6px}
.brand{font-size:clamp(22px,.3vw + 16px,28px)}
.sidebar-foot,.sidebar .hosted-account,.sidebar .hosted-workspace{font-size:clamp(12px,.15vw + 10px,15px)}
.sidebar-foot [data-local-time-zone]{font-size:clamp(11px,.12vw + 9px,14px)}
.main-bar{min-height:clamp(56px,2vw + 28px,80px);padding-inline:var(--workspace-gutter);flex-shrink:0}
.main-bar .title,.ws-help-link{font-size:var(--workspace-small)}
.view{padding-inline:var(--workspace-gutter)}
#view-home{padding-block:clamp(16px,2.5vh,32px)}
.ask-layout{max-width:none;margin:0;grid-template-columns:clamp(240px,13vw,360px) minmax(0,1fr);gap:clamp(28px,3vw,96px)}
.ask-layout>.home-center{margin:0 auto;width:100%;max-width:clamp(760px,54vw,1440px);min-width:0;padding:0}
.ask-intro{text-align:center;margin-bottom:clamp(16px,2vh,24px)}
.ask-layout .greeting{display:block;max-width:none;margin:0;font-size:clamp(28px,1.6vw,48px)!important;line-height:1.18;text-align:center;text-wrap:balance;letter-spacing:-.035em}
.ask-layout .greeting span{display:block;color:var(--ink-2);font-weight:500}
.ask-layout .home-hint{text-align:center;font-size:clamp(15px,.2vw + 12px,20px);max-width:80ch;margin:12px auto 0;line-height:1.55;color:var(--ink-2)}
.ask-layout .composer{padding:clamp(14px,1vw,24px);border-radius:16px;transition:border-color .15s,box-shadow .15s}
.ask-layout .composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #8ce5f718}
.ask-layout .composer textarea{font-size:clamp(16px,.25vw + 12px,22px);min-height:clamp(64px,9vh,112px);max-height:25dvh;line-height:1.55;padding:2px 2px 8px;background:transparent}
.ask-layout .composer-row{font-size:var(--workspace-small);padding:8px 0 0}
.ask-layout .composer-status:empty{display:none}
.composer-actions{margin-left:auto}
.ask-layout .send{width:44px;height:44px}
.ask-layout .question-help{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.15fr);align-items:center;gap:clamp(16px,1.5vw,32px);width:100%;max-width:none;margin:clamp(16px,2vh,24px) 0 0;padding:clamp(16px,1vw,24px);border:1px solid var(--line);border-radius:16px;background:var(--bg-2);font-size:var(--workspace-text);line-height:1.55}
.question-help-info{min-width:0}
.ask-layout .question-help h2{font-size:clamp(18px,.3vw + 12px,24px);line-height:1.3;margin:0;text-wrap:balance}
.ask-layout .question-help-info>p{margin:10px 0 12px;max-width:52ch}
.question-help-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.question-help-actions a,.question-help-actions button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:14px;font-weight:600;color:var(--accent);background:transparent}
.question-help-actions a:hover,.question-help-actions button:hover{background:var(--accent-soft);border-color:var(--accent)}
#open-question-example{display:none}
.ask-layout .question-help blockquote{margin:0;padding:clamp(14px,1vw,20px);border:1px solid var(--line);border-radius:10px;background:var(--bg);font-size:clamp(14px,.15vw + 11px,18px);line-height:1.55;color:var(--ink-2)}
.ask-layout .question-help blockquote p{max-width:80ch;margin:0 0 12px}.ask-layout .question-help blockquote p:last-child{margin-bottom:0}.question-help blockquote strong{font-weight:600;color:var(--ink)}
.question-example-dialog{width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--line-2);border-radius:14px;background:var(--card);color:var(--ink);overflow:auto}
.question-example-dialog::backdrop{background:#020610bb}.question-example-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.question-example-dialog h2{font-size:20px;margin:0}.question-example-dialog .icon-button{width:44px;height:44px;flex:none;font-size:26px}.question-example-dialog blockquote{margin:0;padding:0;border:0;font-size:16px;line-height:1.6}.question-example-dialog blockquote p{margin:0 0 16px}.question-example-dialog blockquote p:last-child{margin:0}
.question-history{padding-right:clamp(16px,1vw,28px)}
.question-history h2,.history-search-button,.question-history .q{font-size:var(--workspace-small)}
.question-history .icon-button{width:44px;height:44px}
.history-search-button{min-height:44px;padding:10px 12px}
.history-rail-content>p,.question-history .history-meta{font-size:clamp(12px,.15vw + 10px,15px)}
.question-history .history-item{padding:12px 8px;gap:8px;min-height:64px}
.question-history .hosted-activity{font-size:var(--workspace-small)}
.conversation-search{width:min(760px,calc(100% - 32px))}
.conversation-search .icon-button,.conversation-search .btn{min-width:44px;min-height:44px}
@media(min-width:1800px){
 .view h1,.page-head h1,.ws-page h1{font-size:clamp(32px,1vw + 14px,46px)}
 .page-head p,.ws-lede{font-size:var(--workspace-text)}
}
@media(max-width:1100px),(max-height:620px){
 .app.sidebar-open .sidebar{width:min(320px,calc(100vw - 48px))}
 .sidebar .nav-item{font-size:15px}
}
@media(max-width:900px){
 :root{--workspace-gutter:clamp(16px,3vw,28px);--workspace-text:16px;--workspace-small:14px}
 .main-bar{padding-inline:16px;min-height:56px}
 #view-home{padding-block:12px}
 .ask-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .question-history{padding:0 0 8px}
 .history-mobile-toggle{font-size:14px}
 .ask-layout>.home-center{max-width:640px;padding:0}
 .ask-intro{margin-bottom:16px}
 .ask-layout .greeting{font-size:clamp(26px,4vw,32px)!important;margin:0;max-width:none}
 .ask-layout .home-hint{margin:10px auto 0;max-width:64ch;font-size:15px}
 .ask-layout .question-help{display:block;margin-top:0;padding:16px;border-radius:14px;font-size:15px}
 .ask-layout .question-help h2{font-size:18px}
 .ask-layout .question-help>blockquote{display:none}
 .question-help-actions #open-question-example{display:inline-flex}
 .composer-dock .composer{max-width:none}
 .conversation-search{max-height:calc(100dvh - 24px)}
 .conversation-search-head,.conversation-search form,.conversation-search footer{flex-shrink:0}
 .conversation-search-results{min-height:0}
 .lq-datasets{margin-inline:0;padding-inline:0;max-width:100%}
}
@media(max-width:900px) and (max-height:500px){
 #view-home{padding-top:8px}.ask-layout{gap:12px}
 .ask-intro{display:none}.ask-layout .question-help{padding:10px 12px}.ask-layout .question-help h2{font-size:16px}.ask-layout .question-help-info>p{display:none}.question-help-actions{margin-top:8px}
 .conversation-search-head{padding-block:6px}.conversation-search h2{font-size:18px}
 #conversation-search-status{margin-block:6px}.conversation-search footer{padding-block:6px}
}
@media(min-width:901px) and (max-height:800px){
 #view-home{padding-block:14px}.ask-intro{margin-bottom:14px}.ask-layout .greeting{font-size:28px!important;line-height:1.2}.ask-layout .greeting span{display:inline}.ask-layout .greeting span:before{content:' '}.ask-layout .home-hint{margin-top:8px;font-size:15px;line-height:1.5}.ask-layout .composer{padding:14px}.ask-layout .composer textarea{min-height:64px;max-height:clamp(64px,100dvh - 570px,25dvh)}.ask-layout .question-help{margin-top:14px;padding:14px;gap:16px;font-size:14px}.ask-layout .question-help h2{font-size:18px}.ask-layout .question-help blockquote{padding:12px;font-size:14px;line-height:1.5}.question-history .history-item{padding:6px 8px;min-height:52px}.question-history .q{font-size:13px;line-height:1.35}.question-history .history-meta{font-size:11px;line-height:1.4;margin-top:2px}.history-rail-content>p{margin:8px 0 6px}
}
@media(max-height:340px){
 .conversation-search[open]{display:block;overflow-y:auto}
 .conversation-search-results{overflow:visible}
}

body:has(.dev-nav){--panel:var(--card)}.dev-nav{background:#0b1424}.dev-brand{font-family:var(--sans);color:var(--ink)}.feature-grid>article,.price-grid>article{background:var(--card)}.dev-hero .lead{font:17px/1.7 var(--sans);color:var(--ink-2)}

.api-btn.primary,.api-btn.danger,.api-step.done .api-step-mark,.ins-steps button.done .ins-step-n{color:#081421}.api-btn.primary{background:var(--accent);border-color:var(--accent)}.api-btn.danger{background:var(--bad);border-color:var(--bad)}.ins{--ins-gold:var(--warn);--ins-teal:var(--good);--ins-navy:var(--bg)}.ins-hero-fig,.ins-stage-fig{display:none}.ins-hero,.ins-stage{grid-template-columns:1fr}.ins-hero{margin:0 0 20px}.ins-lede{max-width:85ch}.ins-section{margin-bottom:28px}
.settings-shell a.btn.accent{color:#081421}

/* Research uses the workspace; paragraphs keep a readable measure, tables can expand. */
body[data-view=thread]{--history-width:clamp(240px,13vw,360px);--history-gap:clamp(24px,2vw,48px)}
#view-thread:not(.hidden){display:grid;grid-template-columns:var(--history-width) minmax(0,1fr);gap:var(--history-gap);align-items:start}
#view-thread>.question-history{position:sticky;top:0;max-height:100%;overflow-y:auto;scrollbar-width:thin}
body[data-view=thread] .composer-dock{padding-left:calc(var(--workspace-gutter) + var(--history-width) + var(--history-gap))}
@media(max-width:900px){
 #view-thread:not(.hidden){display:block}
 #view-thread>.question-history{z-index:2;background:var(--bg);max-height:40dvh;margin-bottom:16px}
 body[data-view=thread] .composer-dock{padding-left:var(--workspace-gutter)}
}
body[data-view=thread]{--thread-width:clamp(960px,74vw,1800px);--thread-text:clamp(16px,.35vw + 12px,24px)}
#view-thread .thread{width:100%;max-width:var(--thread-width)}
body[data-view=thread] .composer-dock{padding-inline:var(--workspace-gutter);padding-left:calc(var(--workspace-gutter) + var(--history-width) + var(--history-gap))}
body[data-view=thread] .composer-dock .composer{width:100%;max-width:var(--thread-width)}
#view-thread .user-bubble{max-width:min(88%,100ch);font-size:var(--thread-text);overflow-wrap:anywhere}
#view-thread .answer-md,#view-thread .answer-prose{font-size:var(--thread-text)}
#view-thread .answer-md>p,#view-thread .answer-md>ul,#view-thread .answer-md>ol,#view-thread .answer-md>blockquote{max-width:90ch}
#view-thread .answer-md>p.answer-md-lead,#view-thread .answer-lead .answer-prose{font-size:clamp(18px,.4vw + 13px,26px)}
#view-thread .answer-reading{max-width:none}
#view-thread .answer-prose>p,#view-thread .answer-prose>.reading-list{max-width:90ch}
#view-thread .answer-heading .answer-title{font-size:clamp(27px,1vw + 16px,42px)}
#view-thread .answer-md-table-scroll{max-width:100%;overflow-x:auto}
#view-thread .answer-md-table{font-size:clamp(14px,.2vw + 11px,19px)}
#view-thread .answer-md-table thead th{font-size:inherit}
body[data-view=thread] #question{font-size:var(--thread-text)}
@media(max-width:900px){
 #view-thread .user-bubble{max-width:100%}
 body[data-view=thread] .composer-dock{padding-left:var(--workspace-gutter)}
}
