/* Meson Science enterprise branding for the continuous-flow workbench. */
.brand .brand-logo { max-width: 100%; width: 154px; height: 42.7px; object-fit: contain; object-position: left center; }
.ui-new-chat-start h1 { letter-spacing: -.025em; }
.ui-new-chat-start p { max-width: 620px; line-height: 1.8; }
#desktopEntry { display: none !important; }
.np-scenarios button span { color: #227568; }
.mesonflow-context { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; color:var(--text-dim); font-size:12px; }
.mesonflow-context span { border:1px solid var(--border); border-radius:20px; padding:5px 10px; }

.ml-shell { width:min(980px,94vw)!important; max-height:88vh; overflow:auto; padding:26px!important; }
.ml-head,.ml-run header {display:flex;justify-content:space-between;align-items:center;gap:12px;}
.ml-head small {font-size:10px;letter-spacing:1.5px;color:#227568;}
.ml-head h3 {margin:6px 0 12px;}
.ml-boundary {font-size:12px;line-height:1.8;background:#f0f7f4;color:#365d51;padding:12px;border-radius:8px;}
.ml-actions {display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0;font-size:12px;}
.ml-actions input:not([type=checkbox]) {border:1px solid var(--border);padding:6px;border-radius:6px;width:150px;background:var(--panel);color:var(--text);}
.ml-run {border:1px solid var(--border);border-radius:10px;padding:16px;margin:14px 0;}
.ml-run table {width:100%;font-size:12px;border-collapse:collapse;}
.ml-run th,.ml-run td {text-align:left;border-bottom:1px solid var(--border);padding:8px 4px;}
.ml-notice,.ml-result {font-size:12px;line-height:1.8;color:var(--text);padding:10px;background:var(--bg);border-radius:6px;}
.ml-shell footer {font-size:11px;line-height:1.8;color:var(--text-dim);}

:root[data-ui="v1"][data-skin] .sidebar>.brand .brand-logo{width:131.6px;height:36.4px;max-width:131.6px;}
/* Resource workspace: independent scrolling in the native center panel. */
.mr-view{box-sizing:border-box;width:100%;height:100%;overflow-y:auto;padding:28px clamp(18px,3vw,44px);background:var(--bg,#f5f8f7);font-size:14px;line-height:1.65}
.mr-view .mr-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:16px}
.mr-view .mr-head small{color:#287866;font-size:11px;letter-spacing:.12em;font-weight:700}
.mr-view h2{font-size:25px;line-height:1.4;margin:4px 0 6px}.mr-view h3{font-size:18px;margin:0 0 12px}.mr-view h4{font-size:15px;margin:0 0 5px}
.mr-view p{margin:6px 0 12px}.mr-view .panel{background:var(--panel,#fff);border:1px solid var(--border,#dae5df);border-radius:14px;padding:22px;margin:22px 0;box-shadow:0 2px 8px #153c2810}
.mr-view #mrSources label{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;margin:0}.mr-view #mrSources input{width:auto;margin:0}
.mr-view input,.mr-view select{font:inherit;padding:9px 12px;border:1px solid var(--border,#cad8d1);border-radius:8px;max-width:100%;color:var(--text,#17382d);background:var(--panel,#fff)}
.mr-view a{color:#18745b;text-decoration:underline;text-underline-offset:3px}.mr-view small{color:var(--muted,#62756b)}
.mr-view pre{padding:12px;background:var(--bg,#f2f6f4);border-radius:8px;font-size:12px;overflow-wrap:anywhere}.mr-view #mrMessage{margin-top:14px;color:var(--text,#214f3d);overflow-wrap:anywhere}
@media(max-width:700px){.mr-view .mr-head{align-items:flex-start;flex-direction:column}.mr-view .panel{padding:16px}.mr-view{padding:18px}}

.brand .brand-logo,.auth-card .auth-logo{background:transparent;border-radius:0;}
:root[data-ui="v1"][data-skin] .sidebar>.brand{min-height:72px;height:auto;flex-direction:column;align-items:flex-start;gap:5px;}
:root[data-ui="v1"][data-skin] .sidebar>.brand .brand-sub{font-size:11px;letter-spacing:.4px;}
.auth-card .auth-logo{width:220px;height:61px;max-width:100%;object-fit:contain;}

/* Keep the desktop chrome override at the same 70% sidebar-logo scale. */
@media(min-width:900px){
  :root[data-ui="v1"][data-desktop-chrome="windows"][data-skin] .sidebar>.brand .brand-logo{height:calc(16.8px / var(--ui-fs-zoom,1))}
}
