/* Web-only shell. Business controls and embedded miniapp layout are unchanged. */
body[data-theme="blue"][data-web-layout="top"] { --workbench-width:1200px; }
body[data-theme="blue"][data-web-layout="top"] .workbench-web-header { position:sticky;top:0;z-index:40;background:var(--crm-surface);border-bottom:1px solid var(--crm-border); }
body[data-theme="blue"][data-web-layout="top"] .workbench-web-topline { max-width:var(--workbench-width);margin:auto;padding:12px 24px;display:flex;align-items:center;gap:24px; }
body[data-theme="blue"][data-web-layout="top"] .brand { flex:none;margin:0;color:var(--crm-brand);font-size:18px;gap:10px; }
body[data-theme="blue"][data-web-layout="top"] .brand small { color:var(--crm-text-muted);font-size:11px;line-height:16px; }
body[data-theme="blue"][data-web-layout="top"] .brand-mark { width:36px;height:36px; }
body[data-theme="blue"][data-web-layout="top"] .preview-bar { flex:1;min-width:0;justify-content:flex-end;gap:8px;padding:0;border:0;min-height:36px;background:transparent; }
body[data-theme="blue"][data-web-layout="top"] .preview-hint { margin-right:12px;line-height:18px; }
body[data-theme="blue"][data-web-layout="top"] .preview-bar :is(.btn,.local-data-button) { min-height:36px;font-size:13px;line-height:20px;padding:6px 12px;border-radius:8px; }
body[data-theme="blue"][data-web-layout="top"] #desktop-nav { max-width:var(--workbench-width);margin:auto;padding:0 24px;display:flex;gap:4px;overflow-x:auto;scroll-padding-inline:24px;scrollbar-width:thin; }
body[data-theme="blue"][data-web-layout="top"] .nav-link { flex:none;gap:7px;min-height:46px;margin:0;padding:8px 14px;border-radius:8px 8px 0 0;border-bottom:3px solid transparent;font-size:14px;line-height:24px;font-weight:500;color:var(--crm-text-muted);white-space:nowrap; }
body[data-theme="blue"][data-web-layout="top"] .nav-link>svg { width:18px;height:18px;color:currentColor; }
body[data-theme="blue"][data-web-layout="top"] .nav-link.active { color:var(--crm-brand);background:var(--crm-brand-soft);border-bottom-color:var(--crm-gold);font-weight:600; }
body[data-theme="blue"][data-web-layout="top"] .nav-divider { flex:0 0 1px;align-self:center;height:18px;margin:0 8px; }
body[data-theme="blue"][data-web-layout="top"] .nav-link .badge { margin:0;min-width:18px;height:18px;font-size:10px; }
body[data-theme="blue"][data-web-layout="top"] .mobile-nav { display:none; }
body[data-theme="blue"][data-web-layout="top"] .workspace { margin:0;padding-bottom:0; }
body[data-theme="blue"][data-web-layout="top"] #view { max-width:var(--workbench-width);padding:20px 24px 40px;min-height:calc(100dvh - var(--workbench-header-height)); }
body[data-theme="blue"][data-web-layout="top"] .toolbar { gap:10px;padding:12px;margin-bottom:16px;border:1px solid var(--crm-border);border-radius:12px;background:var(--crm-surface); }
body[data-theme="blue"][data-web-layout="top"] .toolbar :is(.btn,.grade,.search,.prop-sort select) { min-height:38px;height:38px;font-size:14px; }
body[data-theme="blue"][data-web-layout="top"] .toolbar .search { flex:1 1 200px;max-width:300px; }
body[data-theme="blue"][data-web-layout="top"] .prop-grid { gap:16px; }
body[data-theme="blue"][data-web-layout="top"] :is(.prop-card,.customer-preview-card,.resource-card,.contact-card,.community-card) { box-shadow:0 2px 8px rgb(16 42 67 / 3%); }
body[data-theme="blue"][data-web-layout="top"] .today-header { padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--crm-border); }
body[data-theme="blue"][data-web-layout="top"] .today-date h1 { font-size:24px;line-height:32px; }
body[data-theme="blue"][data-web-layout="top"] .blue-agenda-layout { gap:24px; }
@media(min-width:1100px) {
 body[data-theme="blue"][data-web-layout="top"] .blue-agenda-layout { grid-template-columns:minmax(0,1fr) 400px; }
 body[data-theme="blue"][data-web-layout="top"] :is(.blue-calendar,.blue-related) { top:calc(var(--workbench-header-height) + 16px); }
 body[data-theme="blue"][data-web-layout="top"] .blue-related nav { max-height:calc(100dvh - var(--workbench-header-height) - 110px); }
}
@media(max-width:767px) {
 body[data-theme="blue"][data-web-layout="top"] .workbench-web-topline { padding:10px 12px;gap:8px;flex-wrap:wrap; }
 body[data-theme="blue"][data-web-layout="top"] .brand small { display:none; }
 body[data-theme="blue"][data-web-layout="top"] .preview-bar { flex-wrap:wrap;gap:6px; }
 body[data-theme="blue"][data-web-layout="top"] .preview-hint { flex-basis:100%;margin:0;text-align:right;font-size:11px; }
 body[data-theme="blue"][data-web-layout="top"] .preview-bar :is(.btn,.local-data-button) { min-height:36px;padding:6px 8px;font-size:12px; }
 body[data-theme="blue"][data-web-layout="top"] #desktop-nav { padding-inline:12px;scroll-padding-inline:12px; }
 body[data-theme="blue"][data-web-layout="top"] .nav-link { padding:8px 10px;gap:5px; }
 body[data-theme="blue"][data-web-layout="top"] #view { padding:14px 12px 28px; }
 body[data-theme="blue"][data-web-layout="top"] .toolbar { padding:8px;gap:8px; }
 body[data-theme="blue"][data-web-layout="top"] .toolbar :is(.btn,.grade,.search,.prop-sort select) { min-height:40px;height:40px; }
 body[data-theme="blue"][data-web-layout="top"] .toolbar .search { flex:1 1 150px; }
 body[data-theme="blue"][data-web-layout="top"] :is(.prop-toolbar,.customer-preview-toolbar) { display:grid;grid-template-columns:minmax(0,1fr) 120px; }
 body[data-theme="blue"][data-web-layout="top"] :is(.prop-toolbar,.customer-preview-toolbar)>.btn { justify-self:end; }
 body[data-theme="blue"][data-web-layout="top"] .toolbar .search input::placeholder { font-size:13px; }
 body[data-theme="blue"][data-web-layout="top"] .prop-sort { width:auto; }
 body[data-theme="blue"][data-web-layout="top"] .prop-sort::before { display:none; }
 body[data-theme="blue"][data-web-layout="top"] .prop-sort select { width:100%;padding:6px;color:var(--crm-text);appearance:auto; }
 body[data-theme="blue"][data-web-layout="top"] .prop-grid { gap:10px; }
 body[data-theme="blue"][data-web-layout="top"] .today-date h1 { font-size:20px;line-height:28px; }
}
@media(hover:hover) {
 body[data-theme="blue"][data-web-layout="top"] .nav-link:not(.active):hover { color:var(--crm-brand);background:var(--crm-surface-subtle); }
}

@media(min-width:768px){body[data-theme="blue"][data-web-layout="top"] .toolbar>.web-create-action{order:2;margin-left:auto;flex-shrink:0}}
