/* Product workspaces use the native Core sidebar, controls, cards and type tokens. */
.product-shell .product-brand-row{display:flex;align-items:center;gap:8px;padding:20px 18px 14px;min-width:0}
.product-shell .product-brand{display:flex;align-items:center;gap:10px;border:0;background:none;color:var(--visucio-text);font:inherit;font-size:21px;text-align:left;cursor:pointer;min-width:0;padding:5px 0}
.product-shell .product-brand strong{overflow-wrap:anywhere}
.product-shell .product-brand-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:12px;background:var(--visucio-primary-soft);color:var(--visucio-primary-strong)}
.product-shell .product-brand-icon .vis-icon{width:21px;height:21px}
.product-shell .product-menu-close{margin-left:auto;display:none;flex:none}
.product-shell .product-sidebar .nav{padding-top:4px;min-height:0}
.product-shell .sidebar-footer{display:grid;gap:12px}
.product-shell .product-return{width:100%;font-size:12px;justify-content:flex-start;gap:8px}
.product-shell .product-return svg{width:16px;height:16px;flex:none}
.product-shell .product-topbar .breadcrumbs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-shell .product-topbar>.top-actions:first-child{min-width:0;flex:1}
.product-shell .product-topbar>.top-actions:last-child{flex:none}
.product-shell .product-topbar .menu-toggle{display:none}
.product-shell .product-main{min-width:0}
.product-shell .product-main>.page{min-width:0}
.product-shell .product-brand:focus-visible{outline:3px solid var(--visucio-primary);outline-offset:4px;border-radius:8px}
.product-logo{display:block;width:160px;max-width:100%;height:auto;object-fit:contain}
html[data-theme="dark"] .product-logo{filter:invert(1) grayscale(1)}
.product-shell .product-brand .product-logo{width:164px;max-height:44px;object-position:left center}
.product-auth-brand{justify-content:space-between}
.product-auth-identity{display:inline-flex;align-items:center;gap:14px;font-size:30px;color:inherit;text-decoration:none}
.product-auth-identity .product-logo{width:190px;max-height:56px;object-position:left center;filter:invert(1) grayscale(1)}
.product-auth-identity>.vis-icon{width:38px;height:38px;flex:none}
.product-auth-account{font-size:13px;line-height:1.6;color:var(--auth-muted)}
.product-auth-mobile{text-decoration:none;color:inherit}
.product-auth-mobile .product-logo{width:160px;height:auto;max-height:48px;object-position:left center}
html[data-theme] .vis-ui .login-shell .login-form .mobile-logo.product-auth-mobile{content:normal;width:160px;max-width:100%}
html[data-theme] .vis-ui .login-shell #login-form .mobile-logo.product-auth-mobile{width:160px}
@media(max-width:1024px){
 .product-shell .product-menu-close,.product-shell .product-topbar .menu-toggle{display:inline-flex}
 .product-shell .product-sidebar{width:min(300px,calc(100vw - 24px))}
 .product-shell .product-topbar{padding:14px 16px;gap:8px}
 .product-shell .product-topbar .top-actions{gap:6px}
 .product-shell .product-topbar .breadcrumbs{font-size:12px}
 .product-shell .product-topbar .breadcrumbs>span{display:none}
 .product-shell .product-main{margin-left:0;padding-bottom:0}
}
@media(max-width:480px){
 .product-shell .product-main>.page{padding-left:14px;padding-right:14px}
 .product-shell .product-brand-row{padding-left:16px;padding-right:12px}
 .product-shell .product-topbar{padding:10px 12px}
}
.product-auth-mobile>.vis-icon{width:28px;height:28px;vertical-align:middle;margin-right:10px}
.product-auth-mobile strong{vertical-align:middle;font-size:24px}
@media(max-width:1024px){
 .product-shell .product-sidebar{transform:translateX(-105%);transition:transform .2s ease;z-index:50}
 .product-shell .product-sidebar.open{transform:translateX(0)}
 .product-shell .drawer-backdrop.open{display:block;position:fixed;inset:0;background:rgba(18,28,45,.42);z-index:49}
}
@media(prefers-reduced-motion:reduce){.product-shell .product-sidebar{transition:none}}
.product-shell [data-core-product]>[data-route][hidden]{display:none}
.product-shell .product-nav-section{margin:0;padding:0;border:0;min-width:0}
.workspace-chooser{min-height:100dvh;padding:32px clamp(20px,6vw,80px);background:var(--visucio-background);color:var(--visucio-text)}
.workspace-chooser-header{max-width:1120px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}
.workspace-chooser-header>img{width:155px;height:auto}
.workspace-chooser-content{max-width:1120px;margin:clamp(36px,8vh,80px) auto 0}
.workspace-chooser .page-header{margin-bottom:28px}
.workspace-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.workspace-choice{display:flex;flex-direction:column;align-items:flex-start;gap:14px;position:relative;min-height:180px;padding:24px;text-align:left;font:inherit;cursor:pointer;color:var(--visucio-text)}
.workspace-choice>.product-brand-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--visucio-primary-soft);color:var(--visucio-primary-strong)}
.workspace-choice strong{font-size:20px}
.workspace-choice .workspace-choice-logo{width:168px;height:48px;object-position:left center;margin-bottom:8px}
.workspace-choice>span:not(.product-brand-icon){font-size:12px;color:var(--visucio-text-secondary)}
.workspace-choice>.vis-icon{position:absolute;right:22px;top:26px;width:20px;height:20px}
.workspace-choice:hover:not(:disabled),.workspace-choice:focus-visible{border-color:var(--visucio-primary);outline:2px solid var(--visucio-primary-soft);outline-offset:2px}
.workspace-choice:disabled{cursor:not-allowed;opacity:.55}
.workspace-chooser-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:30px 0;font-size:12px;color:var(--visucio-text-secondary)}
.workspace-chooser-footer>span{overflow-wrap:anywhere;min-width:0}
@media(max-width:760px){.workspace-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-choice{padding:18px;min-height:166px}.workspace-choice strong{font-size:17px}.workspace-choice>.vis-icon{right:15px;top:22px}.workspace-chooser{padding:22px 18px}}
@media(max-width:400px){.workspace-choice-grid{grid-template-columns:1fr}.workspace-choice{min-height:140px}.workspace-chooser-footer{align-items:flex-start;flex-direction:column}}
.product-shell .product-nav-group-title{padding-top:14px;margin:6px 0 4px;font-size:10px;letter-spacing:.07em}
.product-command-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:min(600px,calc(100dvh - 48px));margin:clamp(24px,12vh,120px) auto auto;padding:20px;border:1px solid var(--visucio-border);border-radius:18px;color:var(--visucio-text);background:var(--visucio-surface);box-shadow:var(--visucio-shadow-lg,0 18px 60px rgba(0,0,0,.22));overflow:auto;font:inherit}
.product-command-dialog::backdrop{background:rgba(18,28,45,.48);backdrop-filter:blur(3px)}
.product-command-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.product-command-header h2{margin:0;font-size:18px;line-height:1.3}
.product-command-dialog .field{margin-bottom:10px}
.product-command-dialog input{width:100%;box-sizing:border-box;min-height:44px}
.product-command-results{display:grid;gap:4px;max-height:330px;overflow-y:auto;overscroll-behavior:contain}
.product-command-option{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--visucio-text);font:inherit;text-align:left;cursor:pointer}
.product-command-option.active,.product-command-option:hover,.product-command-option:focus-visible{background:var(--visucio-primary-soft);border-color:var(--visucio-border);outline:none}
.product-command-option>.vis-icon,.product-command-option>span>.vis-icon{width:19px;height:19px;flex:none}
.product-command-option>span:last-child{display:grid;gap:3px;min-width:0}
.product-command-option strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.product-command-option small,.product-command-status{font-size:11px;color:var(--visucio-text-secondary)}
.product-command-status{margin:13px 0 0;line-height:1.5}
@media(max-width:480px){.product-command-dialog{padding:16px;margin-top:16px;max-height:calc(100dvh - 32px)}.product-command-results{max-height:45dvh}}

/* 1.58.1 · the personal Visucio header, with product-local destinations. */
.vis-ui .product-customer-shell{--product-header:80px;--product-sidebar:248px;padding-top:var(--product-header);min-height:100dvh;background:var(--vis-bg)}
.vis-ui .product-customer-shell>.product-topbar{position:fixed;z-index:40;inset:0 0 auto;height:var(--product-header);padding:14px clamp(18px,2.4vw,38px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--vis-glass);border-bottom:1px solid color-mix(in srgb,var(--vis-border) 65%,transparent);backdrop-filter:blur(var(--vis-blur))}
.vis-ui .product-customer-shell .product-topbar>.product-header-brand:first-child{flex:0 0 auto;gap:14px}
.vis-ui .product-customer-shell .product-brand{font-size:22px;letter-spacing:-.04em;font-weight:600}
.vis-ui .product-customer-shell .product-brand strong{white-space:nowrap;overflow-wrap:normal}
.vis-ui .product-customer-shell .product-brand .product-logo{width:151px;max-height:42px}
.vis-ui .product-customer-shell .menu-toggle{display:inline-flex}
.vis-ui .product-customer-shell .product-main{padding:0;min-height:calc(100dvh - var(--product-header));margin-left:0;background:var(--vis-bg)}
.vis-ui .product-customer-shell .product-main>.page{max-width:1260px;padding:32px clamp(20px,3vw,44px) 54px}
.vis-ui .product-customer-shell .product-sidebar{inset:var(--product-header) auto 0 0;width:var(--product-sidebar);height:calc(100dvh - var(--product-header));padding:12px 14px 18px;border-right:1px solid color-mix(in srgb,var(--vis-border) 60%,transparent);background:var(--vis-glass);transform:translateX(-105%);z-index:50;transition:transform .2s ease}
.vis-ui .product-customer-shell .product-brand-row{padding:10px 10px 15px;min-height:52px}
.vis-ui .product-customer-shell .product-brand-row>strong{font-size:12px;font-weight:600;color:var(--vis-muted)}
.vis-ui .product-customer-shell .product-menu-close{display:inline-flex;margin-left:auto}
.vis-ui .product-customer-shell .product-sidebar.open{transform:translateX(0)}
.vis-ui .product-customer-shell .drawer-backdrop.open{display:block;position:fixed;inset:0;background:rgb(18 28 45 / 32%);backdrop-filter:blur(4px);z-index:49}
.vis-ui .product-customer-shell .sidebar .nav-button{min-height:44px;font-size:12px;border-radius:12px;padding:10px 12px}
.vis-ui .product-customer-shell .product-nav-group-title{font-size:10px;text-transform:none;letter-spacing:0;color:var(--vis-muted);font-weight:500}
.product-primary-nav{display:flex;align-items:center;gap:4px;min-width:0;padding:4px;border:1px solid color-mix(in srgb,var(--vis-border) 65%,transparent);border-radius:14px;background:color-mix(in srgb,var(--vis-surface-soft) 75%,transparent)}
.product-primary-nav:empty{display:none}
.product-primary-nav button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:var(--vis-muted);font:500 11px/1.5 var(--vis-font);white-space:nowrap;cursor:pointer}
.product-primary-nav button.active{background:var(--vis-surface);color:var(--vis-accent-ink);box-shadow:0 2px 8px rgb(20 35 60 / 4%)}
.product-primary-nav button:hover{color:var(--vis-ink);background:var(--vis-surface)}
.product-primary-nav .vis-icon{display:block;width:17px;height:17px}
.product-primary-nav button:focus-visible,.product-profile-button:focus-visible{outline:2px solid var(--vis-brand);outline-offset:3px}
.product-profile-button{display:inline-flex;align-items:center;gap:10px;border:0;background:none;color:var(--vis-ink);font:500 12px/1.5 var(--vis-font);cursor:pointer;border-radius:13px;padding:0}
.product-profile-greeting{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-profile-button .client-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;font-size:12px}
@media(min-width:1025px){
 .vis-ui .product-flow-layout:not(.product-sidebar-collapsed) .product-sidebar{transform:none}
 .vis-ui .product-flow-layout:not(.product-sidebar-collapsed) .product-main{margin-left:var(--product-sidebar)}
 .vis-ui .product-flow-layout .product-menu-close{display:none}
 .vis-ui .product-flow-layout .product-main>.page{max-width:1320px;padding-inline:clamp(24px,3vw,42px)}
}
@media(max-width:1200px){.product-profile-greeting{display:none}.product-primary-nav button{padding-inline:10px}.product-primary-nav .vis-icon{display:none}.vis-ui .product-customer-shell>.product-topbar{gap:12px}}
@media(max-width:1024px){
 .vis-ui .product-customer-shell{--product-header:128px}
 .vis-ui .product-customer-shell>.product-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:10px;padding:12px 20px}
 .product-primary-nav{order:3;grid-column:1/-1;width:max-content;max-width:100%;margin:auto;overflow:auto;scrollbar-width:none}
 .vis-ui .product-customer-shell .product-topbar>.top-actions:last-child{margin-left:auto}
 .vis-ui .product-customer-shell .product-sidebar{width:min(300px,calc(100vw - 24px));inset:0 auto 0;height:100dvh}
 .vis-ui .product-customer-shell .product-main>.page{padding-top:24px}
}
@media(max-width:600px){
 .vis-ui .product-customer-shell>.product-topbar{padding:10px 14px;gap:8px}
 .vis-ui .product-customer-shell .product-brand .product-logo{width:130px;max-height:38px}
 .vis-ui .product-customer-shell .product-topbar>.product-header-brand:first-child{gap:8px}
 .vis-ui .product-customer-shell .product-brand{font-size:19px;gap:8px}
 .vis-ui .product-customer-shell .product-brand-icon{width:32px;height:32px}
 .vis-ui .product-customer-shell .product-topbar>.top-actions:last-child{gap:5px}
 .vis-ui .product-customer-shell .product-main>.page{padding:20px 16px 40px}
 .product-primary-nav{gap:0;padding:3px}
 .product-primary-nav button{font-size:10px;padding:7px 9px;min-height:36px}
 .product-profile-button .client-avatar{width:32px;height:32px;border-radius:11px;font-size:10px}
 .vis-ui .product-customer-shell .product-topbar .icon-button{width:32px;min-width:32px;height:32px;min-height:32px;padding:7px}
}
@media(max-width:360px){.vis-ui .product-customer-shell .product-brand .product-logo{width:110px}.product-primary-nav button{padding-inline:7px;font-size:9px}.vis-ui .product-customer-shell .product-main>.page{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.vis-ui .product-customer-shell .product-sidebar{transition:none}}
html.drawer-open:has(.product-customer-shell){overflow:hidden}
@media(max-width:1024px){.vis-ui .product-customer-shell:has(.product-primary-nav:empty){--product-header:72px}}

/* 1.58.3 · Flow shares the client header and its server-backed hub picker. */
.vis-ui .product-flow-layout{--product-header:82px}
.vis-ui .product-flow-layout>.product-topbar{padding-inline:clamp(18px,3vw,46px);gap:20px;background:color-mix(in srgb,var(--vis-surface) 88%,transparent);border-bottom-color:color-mix(in srgb,var(--vis-border) 72%,transparent);backdrop-filter:blur(22px)}
.vis-ui .product-flow-layout .product-context-slot{min-width:135px;max-width:215px;flex:0 1 200px}
.vis-ui .product-flow-layout .product-context-slot[hidden]{display:none}
.vis-ui .product-flow-layout .product-primary-nav{margin-inline:auto;border:0;background:transparent;padding:4px;gap:2px}
.vis-ui .product-flow-layout .product-primary-nav button{min-height:44px;padding:10px 13px;font-size:13px;font-weight:550;letter-spacing:-.015em;border-radius:12px}
.vis-ui .product-flow-layout .product-primary-nav button.active{color:var(--vis-accent-ink);background:var(--vis-accent-soft);box-shadow:none}
.vis-ui .product-flow-layout .product-profile-button .client-avatar{width:35px;height:35px;border:1px solid var(--vis-border);border-radius:50%;background:var(--vis-accent-soft);color:var(--vis-accent-ink);font-size:11px}
@media(min-width:1025px){
 .vis-ui .product-flow-layout.product-drawer-layout .product-sidebar{inset:0 auto 0;width:min(320px,88vw);height:100dvh;padding:22px 18px;background:var(--vis-surface)}
 .vis-ui .product-flow-layout.product-drawer-layout .product-menu-close{display:inline-flex}
 .vis-ui .product-flow-layout.product-drawer-layout .product-sidebar.open{box-shadow:20px 0 80px rgb(5 12 30 / 12%)}
}
@media(min-width:1025px) and (max-width:1250px){
 .vis-ui .product-flow-layout>.product-topbar{gap:12px;padding-inline:22px}
 .vis-ui .product-flow-layout .product-context-slot{max-width:170px;min-width:110px;flex-basis:160px}
 .vis-ui .product-flow-layout .product-brand .product-logo{width:126px}
 .vis-ui .product-flow-layout .product-primary-nav button{padding-inline:9px;font-size:12px}
}
@media(max-width:1024px){
 .vis-ui .product-flow-layout:has(.product-context-slot:not([hidden])){--product-header:178px}
 .vis-ui .product-flow-layout>.product-topbar{height:var(--product-header);padding:12px 20px;gap:9px 12px}
 .vis-ui .product-flow-layout .product-context-slot{grid-row:2;grid-column:1/-1;min-width:0;max-width:100%;width:100%;order:3}
 .vis-ui .product-flow-layout .product-primary-nav{grid-row:3;order:4}
 .vis-ui .product-flow-layout .product-topbar>.top-actions:last-child{grid-column:2;grid-row:1}
 .vis-ui .product-flow-layout .product-context-slot .context-picker-trigger{min-height:42px;padding:5px 10px}
 .vis-ui .product-flow-layout .product-context-slot .context-picker-copy{flex-direction:row;align-items:center;gap:10px}
 .vis-ui .product-flow-layout .product-context-slot .context-picker-popover{width:100%;max-width:100%}
}
@media(max-width:600px){
 .vis-ui .product-flow-layout>.product-topbar{padding:10px 14px;gap:8px}
 .vis-ui .product-flow-layout .product-primary-nav button{min-height:40px;padding:7px 9px;font-size:12px}
 .vis-ui .product-flow-layout .product-context-slot .context-picker-caption{flex:none}
}
@media(max-width:360px){.vis-ui .product-flow-layout .product-primary-nav button{padding-inline:7px;font-size:11px}}
