/* TuLiApp 0.4: scoped application layout; legacy shortcodes and theme remain. */
body:has(.tuli-shell) #main{padding:0!important}
body:has(.tuli-shell) :is(.fusion-page-title-bar){display:none!important}
body:has(.tuli-shell) :is(#main>.fusion-row,.fusion-builder-row,.fusion-layout-column,.fusion-column-wrapper):has(.tuli-shell){max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
:is(html body #main,html body) .tuli-app.tuli-shell{--td-fluid-body:var(--td-body-size);--td-fluid-heading:var(--td-heading-size);--td-fluid-small:var(--td-small-size);--td-body-size:clamp(.85rem,.78rem + .15vw,.94rem);--td-heading-size:1.04rem;--td-small-size:.78rem;--td-control-height:40px;--td-radius:10px;--td-gap:16px;--td-card-padding:20px;--td-line-height:1.45;--td-ink:#172438;--td-primary:#24364b;--td-muted:#586779;--td-accent:#315987;--td-background:#f5f7fa;--td-surface:#fff;--td-border:#dde4ed;--td-button-bg:#fff;--td-active-bg:#e7edf7;--td-button-ink:#26394e;display:grid!important;grid-template-columns:244px minmax(0,1fr)!important;gap:0!important;max-width:none!important;width:100%!important;padding:0!important;margin:0!important;height:calc(100dvh - var(--tuli-top,100px));min-height:480px;overflow:hidden;border-top:1px solid #dde4ed;border-bottom:1px solid #dde4ed;text-align:left}
:is(html body #main,html body) .tuli-app.tuli-shell *{box-sizing:border-box}
:is(html body #main,html body) .tuli-app.tuli-shell [hidden]{display:none!important}
:is(html body #main,html body) .tuli-app.tuli-shell :is(button,a,input,select,textarea){touch-action:manipulation}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-sidebar{height:100%;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px;padding:18px 14px;background:#f1f4f8;border-right:1px solid #dce3ec;min-width:0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-profile-card{display:grid;gap:8px;padding:12px;background:#fff;border:1px solid #dce3ec;border-radius:12px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-account-link{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere;font-weight:600;text-decoration:none!important;color:#1e324a!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#e5ebf5;font-size:22px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-profile-card button{font-size:.8rem!important;min-height:32px!important;padding:4px 8px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-profile-card small{font-size:.7rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-brand{display:grid;padding:0 10px;gap:0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-brand strong{font-size:1.65rem!important;font-weight:700!important;letter-spacing:-.06em!important;color:#23364c}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-brand strong span{color:#8c79b3!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-side-nav{display:flex;flex-direction:column;gap:4px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-nav-label{font-size:.64rem!important;letter-spacing:.1em;font-weight:700;color:#69778a;margin:14px 10px 5px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-side-nav button{display:flex;align-items:center;text-align:left;gap:10px;width:100%;border:1px solid transparent!important;background:transparent!important;padding:10px!important;min-height:42px!important;font-size:.82rem!important;white-space:normal;line-height:1.3!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-side-nav button>span:first-child{font-size:19px!important;width:20px;text-align:center;flex-shrink:0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-side-nav button.is-active{background:#e2e9f4!important;color:#1e385b!important;border-color:#d1dced!important;font-weight:650}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-side-nav button:hover{background:#e7ecf3!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-side-nav :is(b,button[data-compare]>span:last-child){margin-left:auto;background:#fff;padding:1px 6px;border-radius:5px;font-size:.75rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-sidebar-bottom{display:grid;gap:8px;margin-top:auto;padding-top:16px;border-top:1px solid #dce3ec}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-sidebar-bottom :is(button,a){text-align:left;font-size:.76rem!important;min-height:32px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-main{height:100%;min-width:0;overflow:auto;overscroll-behavior:contain;padding:0 26px 26px;scroll-padding-top:210px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 0 18px;background:transparent}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading p{font-size:.62rem!important;letter-spacing:.13em;color:#66788e;margin:0 0 3px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading h1{font-size:1.5rem!important;line-height:1.2!important;margin:0!important;letter-spacing:-.02em!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-live{color:#51657a;font-size:.75rem!important;white-space:nowrap}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filter-dock{position:sticky;top:0;z-index:12;background:#f5f7fa;padding:10px 0 12px;border-bottom:1px solid #dce3ec;box-shadow:0 8px 12px -12px #64748b}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar{display:flex;gap:10px;border:1px solid #cdd7e5;padding:6px;background:#fff;border-radius:10px;box-shadow:none}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar input{border:0!important;background:transparent!important;min-width:0;width:100%;font-size:.92rem!important;padding:8px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar>span{align-self:center;padding-left:10px;font-size:22px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar button{min-width:95px;background:#293e58!important;color:#fff!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-quick{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0 0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-quick button{font-size:.75rem!important;min-height:34px!important;padding:6px 10px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-state-switch{display:flex!important;gap:4px;flex-wrap:wrap;flex:1}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filter-toggle{display:inline-flex!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:10px 0 0!important;margin:0;max-height:52vh;overflow-y:auto}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filter-heading{display:none!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters details{min-width:0;align-self:start;border:1px solid #dce3ec!important;border-radius:8px!important;padding:9px 11px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters summary{font-size:.77rem!important;cursor:pointer;font-weight:600;min-height:20px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters details[open] summary{margin-bottom:14px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters :is(input,select){width:100%;max-width:100%;font-size:.78rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters label{display:grid;gap:5px;font-size:.75rem!important;margin:0 0 10px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters .tuli-check{display:flex;align-items:center}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters input[type=checkbox]{width:18px;min-height:18px!important;flex-shrink:0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-apply{grid-column:1/-1;display:none}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters:has(details[open]) .tuli-apply{display:block}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-active-filters{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-active-filters:empty{display:none}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-active-filters button{font-size:.71rem!important;min-height:28px!important;padding:4px 7px!important;background:#e8edf5!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-workspace{display:block!important;margin-top:18px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-bottom:12px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-toolbar h2{font-size:1rem!important;margin:0!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-toolbar label{display:flex;align-items:center;gap:8px;font-size:.75rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-toolbar select{font-size:.77rem!important;max-width:215px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-actions{margin:10px 0 14px;gap:8px;display:flex;justify-content:space-between;flex-wrap:wrap}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-actions button{font-size:.74rem!important;min-height:32px!important;padding:6px 9px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result{display:grid!important;grid-template-columns:minmax(0,1fr) 218px;gap:22px!important;padding:22px!important;margin:0 0 14px!important;border:1px solid #dce3ec!important;border-radius:12px!important;box-shadow:0 2px 3px #1e293b03!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result:hover{border-color:#b7c5d8!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result h3{margin:12px 0!important;line-height:1.45!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result h3 a{font-size:1rem!important;line-height:1.45!important;color:#243b55!important;text-decoration:none!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result p{margin:8px 0!important;line-height:1.4!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.74rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-buyer{font-weight:600;font-size:.82rem!important;color:#495d75}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-footer{border-top:1px solid #edf0f5;margin-top:16px;padding-top:12px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-side{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;text-align:right;border-left:1px solid #e5eaf1;padding-left:20px;gap:7px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-side>strong{font-size:1.35rem!important;font-weight:650;color:#263a52;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-status-pill{display:inline-flex;align-self:flex-end;padding:3px 9px;background:#e8f2ec;border-radius:20px;font-size:.71rem!important;color:#326048}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-status-pill.is-closed{background:#edf0f4;color:#566375}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons{display:flex;justify-content:flex-end;gap:6px;margin-top:auto;padding-top:12px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons button{min-height:36px!important;padding:6px 10px!important;font-size:.78rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons button[data-detail]{background:#e4ebf6!important;flex:1}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-tag{background:#edf0fa!important;color:#4a5177!important;border:0!important;border-radius:5px!important;padding:4px 8px!important;font-size:.68rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-deadline{font-size:.76rem!important;background:transparent!important;white-space:normal}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-link{font-size:.72rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-status-line{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px 0 0;font-size:.7rem!important;color:#67778b}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-status-line button{min-height:28px!important;font-size:.7rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell :is(.tuli-analysis,.tuli-personal,.tuli-alerts-pane){margin:20px 0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-analysis>.tuli-charts{margin:16px 0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-analysis .tuli-observatory-extra{display:block}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-dialog{width:min(1040px,94vw);max-width:94vw;max-height:90dvh;overflow:auto;padding:30px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-dialog-body>h2{padding-right:30px;font-size:1.25rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-detail-sections{display:flex;gap:7px;flex-wrap:wrap;padding:12px 0;border-block:1px solid #dce3ec;margin:18px 0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-personal-body article{padding:20px!important;margin-bottom:12px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-follow-form{display:grid;grid-template-columns:180px minmax(0,1fr) auto;gap:12px;align-items:end;margin:12px 0 0}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-follow-form label{display:grid;gap:5px;font-size:.76rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-follow-form textarea{resize:vertical;min-height:70px;padding:8px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-profile-form{display:grid;gap:14px;max-width:620px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-profile-form label{display:grid;gap:6px}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-stage-filter{margin-bottom:15px;display:flex;gap:12px;align-items:center}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-stage-filter select{max-width:250px}
:is(html body #main,html body) .tuli-app.tuli-shell :is(.tuli-mobile-bar,.tuli-menu-shade){display:none!important}
:is(html body #main,html body) .tuli-app.tuli-shell.tuli-compact .tuli-result{padding:14px!important;margin-bottom:10px!important}
@media(min-width:1024px){:is(html body #main,html body) .tuli-app.tuli-shell.filters-collapsed .tuli-filters{display:none!important}}
@media(max-width:1023px){
 :is(html body #main,html body) .tuli-app.tuli-shell{display:flex!important;flex-direction:column;min-height:500px;height:auto;overflow:visible;max-width:100%!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-mobile-bar{display:flex!important;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;background:#eef2f7;border-bottom:1px solid #dce3ec}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-mobile-bar button{min-height:40px!important;font-size:.8rem!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-sidebar{display:none;position:fixed;left:0;top:0;bottom:0;width:min(290px,88vw);height:100dvh;z-index:100001;box-shadow:8px 0 30px #17243833}
 :is(html body #main,html body) .tuli-app.tuli-shell.menu-open .tuli-sidebar{display:flex}
 :is(html body #main,html body) .tuli-app.tuli-shell.menu-open .tuli-menu-shade{display:block!important;position:fixed;inset:0;z-index:100000;background:#17243866!important;border:0!important;border-radius:0!important;width:100vw;height:100dvh}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-main{height:auto;overflow:visible;padding:0 14px 22px}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading{padding:18px 0}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading h1{font-size:1.25rem!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading>.tuli-live{display:none}
 :is(html body #main,html body) .tuli-app.tuli-shell.tuli-enhanced .tuli-filter-dock{position:static;display:none;padding-top:0}
 :is(html body #main,html body) .tuli-app.tuli-shell.tuli-enhanced.mobile-filters-open .tuli-filter-dock{display:block}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters{display:none!important;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}
 :is(html body #main,html body) .tuli-app.tuli-shell.mobile-advanced .tuli-filters{display:grid!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-result{grid-template-columns:minmax(0,1fr) 190px;padding:17px!important;gap:15px!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-follow-form{grid-template-columns:1fr}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-charts{grid-template-columns:1fr!important}
}
@media(max-width:600px){
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-result{grid-template-columns:1fr;gap:14px!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-side{border-left:0;border-top:1px solid #e5eaf1;padding:14px 0 0;display:grid;grid-template-columns:1fr auto;text-align:left;align-items:center;gap:6px}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-side>small{grid-column:1;grid-row:2}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-status-pill{grid-column:2;grid-row:1;align-self:center}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons{grid-column:1/-1;width:100%}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-filters{grid-template-columns:1fr}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar{gap:4px}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar>span{display:none}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-searchbar button{min-width:66px;padding:8px!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-dialog{padding:22px 16px!important}
}
@media(prefers-reduced-motion:reduce){.tuli-shell *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body:has(.tuli-shell) :is(.fusion-tb-header,.fusion-tb-footer){display:none!important}:is(html body #main,html body) .tuli-app.tuli-shell{display:block!important;height:auto!important;overflow:visible}:is(html body #main,html body) .tuli-app.tuli-shell :is(.tuli-sidebar,.tuli-mobile-bar,.tuli-filter-dock){display:none!important}:is(html body #main,html body) .tuli-app.tuli-shell .tuli-main{height:auto;overflow:visible}:is(html body #main,html body) .tuli-app.tuli-shell .tuli-dialog[open]{position:static;max-height:none;overflow:visible;width:100%;max-width:100%}}

:is(html body #main,html body) .tuli-app.tuli-shell .tuli-quick button{flex:0 1 auto!important;white-space:nowrap!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-state-switch{background:transparent!important;padding:0!important;border:0!important;flex:1!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-actions>div{display:flex!important;gap:6px;flex-wrap:wrap}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-actions button{flex:0 1 auto!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-live{display:flex!important;gap:6px!important;font-size:.75rem!important;color:#52657a!important;background:transparent!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result h3{font-size:1rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-follow-summary{margin:-4px 0 20px;font-size:.8rem!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-side>strong{font-weight:650!important}
@media(max-width:1023px){:is(html body #main,html body) .tuli-app.tuli-shell .tuli-app-heading>.tuli-live{display:none!important}}
/* Typography is managed centrally by ui.css. */
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons{flex-wrap:nowrap!important;gap:6px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons :is(button[data-save],button[data-select]){flex:0 0 36px!important;width:36px!important;min-width:36px!important}
:is(html body #main,html body) .tuli-app.tuli-shell .tuli-result-buttons button[data-detail]{min-width:85px!important;white-space:nowrap!important;flex:1!important}

@media(min-width:1024px){
 html:has(.tuli-shell),body:has(.tuli-shell){overflow:hidden!important}
 :is(html body #main,html body) .tuli-app.tuli-shell{position:fixed!important;left:0;right:0;bottom:0;top:var(--tuli-top,77px);height:calc(100dvh - var(--tuli-top,77px));min-height:0;z-index:30}
 :is(html body #main,html body) .tuli-app.tuli-shell .tuli-sidebar{position:relative!important}
 :is(html body #main,html body) .tuli-app.tuli-shell #tuli-global-footer{margin:28px -26px -26px!important;width:calc(100% + 52px)!important;max-width:none!important}
}
