/* Shared navigation and menu overlays. */
.landing-link{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;text-decoration:none;font-weight:650;padding:8px 10px;border-radius:7px;color:var(--aniyer-fg-3654a0, #3654a0);}.landing-link:hover{background:var(--aniyer-bg-eaf0ff, #eaf0ff);}.studio-topbar .landing-link,.app-header .landing-link,.login-page .top .landing-link,.topbar .landing-link,header:has(.profile-menu) .landing-link{color:inherit;}.studio-topbar .landing-link:hover,.app-header .landing-link:hover,.login-page .top .landing-link:hover,header:has(.profile-menu) .landing-link:hover{background:#ffffff15;}
details.studio-menu,details.profile-menu,details[data-menu]{position:relative;}details.studio-menu[open],details.profile-menu[open],details[data-menu][open]{z-index:1000;}.studio-menu-panel,.profile-popover,[data-menu-panel]{z-index:1001;max-width:calc(100vw - 24px);max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 12px 35px #1421452b;}.studio-menu-panel :is(button,a),.profile-popover :is(button,a){white-space:normal;overflow-wrap:anywhere;line-height:1.4;}.studio-menu-panel[hidden],.profile-popover[hidden]{display:none!important;}summary:focus-visible,.landing-link:focus-visible{outline:3px solid var(--aniyer-line-8da5eb, #8da5eb);outline-offset:3px;}@media(max-width:650px){.studio-topbar .landing-link{font-size:10px;padding:7px 5px;}}

header a.nav-icon-link:not(.nav-menu-item),.studio-topbar a.nav-icon-link:not(.nav-menu-item){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:36px;height:36px;min-width:36px;padding:0!important;border:1px solid #8fa3c44d;border-radius:8px;text-decoration:none;vertical-align:middle;color:inherit;}a.nav-icon-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0;}a.nav-icon-link[aria-current=page]{background:#7190cc28;border-color:var(--aniyer-line-7999d4, #7999d4);}a.nav-icon-link:hover,a.nav-icon-link:focus-visible{background:#7190cc33;outline:2px solid var(--aniyer-line-819bd8, #819bd8);outline-offset:2px;}a.nav-menu-item{display:flex!important;align-items:center;gap:10px;width:auto!important;height:auto!important;padding:9px!important;border:0!important;}a.nav-icon-link[hidden]{display:none!important;}header nav{flex-wrap:wrap;gap:6px;}

/* v4.3 shared corporate shell; scoped to top-level application headers. */
body > header:has(.alarise-logo){display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:8px!important;padding:10px 20px!important;min-height:66px!important;background:#0b1025!important;color:#e6e9fb!important;border-bottom:1px solid #252b48!important;}
body > header:has(.alarise-logo)>a:has(.alarise-logo){display:flex!important;align-items:center;gap:12px;flex-shrink:0;margin-right:auto;color:#e6e9fb!important;}
body > header .alarise-logo img{content:url("/brand-dark.png");}
body > header .aniyer-wordmark{display:flex;flex-direction:column;gap:1px;white-space:nowrap;color:#e6e9fb!important;border-left:1px solid #414b70;padding-left:12px;margin:0;line-height:1.1;letter-spacing:0;}
body > header .aniyer-wordmark b{font-size:19px;font-weight:700;}
body > header .aniyer-wordmark small{font-size:9px;font-weight:600;letter-spacing:.1em;color:#bac6e7;}
body > header:has(.alarise-logo)>:is(nav,.top-right,.workflow-actions){display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:8px!important;width:auto!important;max-width:none!important;}
body > header a.nav-icon-link:not(.nav-menu-item){width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;margin:0!important;color:#e6e9fb!important;border-color:#414b70;background:transparent;}
body > header a.nav-icon-link:not(.nav-menu-item):hover,body > header a.nav-icon-link[aria-current=page]:not(.nav-menu-item){background:#33446d;color:white!important;}
body > header .workspace-switch{order:999!important;width:165px!important;max-width:165px!important;height:36px!important;flex-shrink:0;margin:0 0 0 8px!important;background:var(--aniyer-bg-ffffff, white);color:var(--aniyer-fg-142145, #142145);}
body > header .profile-menu{flex-shrink:0;margin:0!important;white-space:nowrap;}
#account-menu .studio-menu-panel,body > header .profile-popover{width:300px!important;min-width:0!important;max-width:calc(100vw - 24px)!important;padding:8px;box-sizing:border-box;}
#account-menu .studio-menu-panel :is(a,button),body > header .profile-popover :is(a,button){display:flex!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;width:100%!important;box-sizing:border-box;padding:10px 12px!important;gap:12px!important;white-space:nowrap!important;overflow-wrap:normal!important;font-size:13px;color:var(--aniyer-fg-142145, #142145);}
#account-menu .studio-menu-panel [hidden],body > header .profile-popover [hidden]{display:none!important;}
#account-menu .studio-menu-panel svg,body > header .profile-popover svg{width:20px!important;height:20px!important;flex:0 0 20px!important;margin:0!important;}
#account-menu #sign-out{order:999;border-top:1px solid var(--aniyer-line-dbe3f4, #dbe3f4);}
.studio-page .workflow-name-stack{min-width:0!important;}.studio-page .workflow-identity{min-width:100px;flex:1 1 150px;}.studio-page .workflow-actions{flex-shrink:0;}.studio-page .studio-brand{margin-right:0!important;}.studio-page .studio-topbar .alarise-logo{width:145px;}
.studio-page #viewport{background-color:var(--aniyer-bg-f8faff, #f8faff);background-image:radial-gradient(circle,rgba(117,143,186,.24) .8px,transparent 1px);background-size:20px 20px;background-position:0 0;}
@media(max-width:1200px){body > header:has(.alarise-logo),body > header:has(.alarise-logo)>:is(nav,.top-right,.workflow-actions){flex-wrap:wrap!important;}body > header .aniyer-wordmark b{font-size:16px;}.studio-page .workflow-actions{flex-shrink:1;}}
.mapping-review{border:1px solid var(--aniyer-line-dbe3f4, #dbe3f4);border-radius:8px;padding:12px;grid-column:1/-1;}.mapping-review label{display:grid;grid-template-columns:minmax(110px,1fr) minmax(140px,2fr);gap:8px;align-items:center;margin:8px 0;}.mapping-review h3{margin:12px 0 6px;}.mapping-review p{font-size:13px;}.mapping-review button{margin:8px 0;}
.workflow-list-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:10px 0 18px;font-size:13px;}.workflow-list-controls label{display:flex;align-items:center;gap:6px;}.compact-list{display:grid!important;grid-template-columns:1fr!important;}.compact-list .workflow-card{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}.compact-list .workflow-card .actions{margin-left:auto;}.workflow-card .actions{flex-wrap:wrap;}
.studio-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}.studio-result-card{grid-column:1/-1;background:var(--aniyer-bg-ffffff, #fff);border:1px solid var(--aniyer-line-dbe3f4, #dbe3f4);border-radius:8px;padding:12px;min-width:0;overflow:auto;}.studio-result-card h4{margin:0 0 8px;}.studio-result-kpi{grid-column:auto;}.studio-result-kpi p{font-size:22px;font-weight:650;margin:0;}.studio-result-card table{border-collapse:collapse;width:100%;font-size:12px;}.studio-result-card td,.studio-result-card th{padding:7px;border-bottom:1px solid var(--aniyer-line-dbe3f4, #dbe3f4);text-align:left;white-space:nowrap;}@media(max-width:800px){.studio-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
/* v4.7 shared application shell: preserve the existing rail icons and studio activity controls. */
body > header .aniyer-wordmark{gap:5px!important;line-height:1.16!important;}body > header .aniyer-wordmark b{line-height:1.15!important;}body > header .aniyer-wordmark small{line-height:1.2!important;}
body.rail47{--header47:66px;--global-rail:54px;padding-left:var(--global-rail);box-sizing:border-box;}body.rail47>header{margin-left:calc(-1 * var(--global-rail));min-width:0;}body.rail47 .module-rail{position:fixed;box-sizing:border-box;left:0;top:var(--header47);bottom:0;width:var(--global-rail);display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;background:var(--aniyer-bg-ffffff, #fff);border-right:1px solid var(--aniyer-line-dce4ee, #dce4ee);z-index:20;overflow-y:auto;}body.rail47 .module-rail a{color:var(--aniyer-fg-536780, #536780)!important;border:1px solid transparent!important;display:grid;place-items:center;width:38px;height:38px;min-height:38px;border-radius:8px;}body.rail47 .module-rail a[aria-current=page]{color:var(--aniyer-fg-3153ba, #3153ba)!important;background:var(--aniyer-bg-e6edfc, #e6edfc);}body.rail47 .module-rail a:hover{background:var(--aniyer-bg-f0f4fa, #f0f4fa);}body.rail47 .module-rail a svg{width:20px;height:20px;}body.rail47 .module-rail a[hidden]{display:none!important;}body.rail47 .module-rail a:focus-visible{outline:2px solid var(--aniyer-line-3659ba, #3659ba);}
body.rail47>header :is(nav,.workflow-actions,.top-right)>a.nav-icon-link:is([href="/landing.html"],[href="/"],[href="/apps.html"],[href="/aiva.html"],[href="/intelligence.html"],[href="/connections.html"],[href="/queries.html"],[href="/settings.html"],[href="/api-services.html"],[href="/policies.html"]){display:none!important;}
body.rail47 .chat-shell{height:calc(100dvh - var(--header47));max-height:calc(100dvh - var(--header47));}body.rail47.studio-page{width:100%;max-width:100%;min-width:0;}body.rail47.studio-page .studio-workspace{min-width:0;}
@media(max-width:700px){body.rail47{--global-rail:42px;}body.rail47 .module-rail{padding:6px 2px;}body.rail47 .module-rail a{width:32px;min-height:32px;height:32px;}}
/* Account menu on every shared-shell page, not just Workspace. */
body.rail47>header .profile-menu>summary{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:pointer;list-style:none;border:1px solid #414b70;border-radius:8px;color:#e6e9fb;font-size:13px;}body.rail47>header .profile-menu>summary::-webkit-details-marker{display:none;}body.rail47>header .profile-popover{position:absolute;right:0;top:calc(100% + 8px);background:var(--aniyer-bg-ffffff, #fff);border:1px solid var(--aniyer-line-dce4ee, #dce4ee);border-radius:9px;color:var(--aniyer-fg-142145, #142145);box-shadow:0 8px 24px #14214530;}body.rail47>header .profile-popover a,body.rail47>header .profile-popover button{background:var(--aniyer-bg-ffffff, #fff);color:var(--aniyer-fg-142145, #142145)!important;border:0;text-decoration:none;border-radius:6px;}body.rail47>header .profile-popover :is(a,button):hover{background:var(--aniyer-bg-eaf0fa, #eaf0fa);}body.rail47>header .topbar-inner{max-width:none;width:100%;padding:10px 20px;}body.rail47>header .topbar-inner .aniyer-wordmark{display:flex;flex-direction:column;gap:5px;}
/* v4.8 application shell: one fixed brand geometry at each breakpoint. */
body.shell48>header:has(.alarise-logo){height:72px!important;min-height:72px!important;max-height:72px!important;width:100%!important;box-sizing:border-box!important;padding:0 20px!important;gap:12px!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;background:#0b1025!important;color:#e6e9fb!important;position:relative!important;z-index:30!important;}
body.shell48>header .alarise-logo{width:164px!important;height:38px!important;flex:0 0 164px!important;aspect-ratio:auto!important;}
body.shell48>header a:has(>.alarise-logo){height:52px!important;display:flex!important;align-items:center!important;gap:12px!important;margin:0 auto 0 0!important;padding:0!important;flex:0 0 auto!important;}
body.shell48>header .aniyer-wordmark{gap:5px!important;padding:0 0 0 12px!important;margin:0!important;line-height:1.15!important;border-left:1px solid #414b70!important;min-width:0!important;}
body.shell48>header .aniyer-wordmark b{font-size:19px!important;font-weight:700!important;line-height:22px!important;margin:0!important;color:#e6e9fb!important;}
body.shell48>header .aniyer-wordmark small{font-size:9px!important;font-weight:600!important;line-height:12px!important;letter-spacing:.10em!important;margin:0!important;color:#bac6e7!important;}
body.shell48>header>:is(nav,.workflow-actions,.top-right){flex-wrap:nowrap!important;min-width:0!important;gap:6px!important;padding:0!important;margin:0!important;}
body.shell48>header .topbar-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;gap:8px!important;max-width:none!important;}
body.shell48>header .workflow-identity{flex:1 1 180px!important;min-width:80px!important;max-width:400px!important;overflow:hidden;}
body.shell48>header .workflow-name-stack input{min-width:0!important;width:100%!important;}
body.shell48>header .workspace-switch{width:150px!important;max-width:150px!important;min-width:0!important;margin:0!important;}
body.shell48>header .profile-menu>summary{max-width:180px;overflow:hidden;text-overflow:ellipsis;}
body.rail47{--header47:72px;}
@media(max-width:1050px){body.shell48>header:has(.alarise-logo){padding:0 12px!important;gap:6px!important;}body.shell48>header .alarise-logo{width:122px!important;height:28px!important;flex-basis:122px!important;}body.shell48>header .workspace-switch{width:105px!important;}body.shell48>header .workflow-identity .save-state{display:none;}body.shell48>header #run-label{display:none;}body.shell48>header #run{padding:8px!important;}}
@media(max-width:680px){body.shell48>header:has(.alarise-logo){height:104px!important;min-height:104px!important;max-height:104px!important;flex-wrap:wrap!important;justify-content:flex-start!important;padding:4px 10px!important;gap:4px!important;}body.shell48>header a:has(>.alarise-logo){height:42px!important;}body.shell48>header>:is(nav,.workflow-actions,.top-right){flex:1 1 auto!important;justify-content:flex-end!important;}body.shell48>header .workflow-identity{display:none!important;}body.shell48>header .aniyer-wordmark b{font-size:16px!important;}body.shell48>header .profile-menu>summary{max-width:84px;}body.shell48>header .topbar-inner{flex-wrap:wrap!important;}body.rail47{--header47:104px;}}
/* Shared resource-management surfaces. */
.management-page{max-width:1440px!important;margin:0 auto!important;padding:22px 24px!important;box-sizing:border-box;background:var(--aniyer-bg-f5f7fb, #f5f7fb);min-height:calc(100vh - var(--header47,72px));}
.manage-head,.manage-tools,.manage-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}.manage-head h1{font-size:25px;margin:0;color:var(--aniyer-fg-17263e, #17263e);}.manage-head p{font-size:13px;color:var(--aniyer-fg-63748b, #63748b);margin:5px 0 0;}.manage-tools{justify-content:flex-start;margin:22px 0 12px;}.manage-tools input{flex:1 1 220px;max-width:440px;}.manage-tools :is(input,select){padding:9px 12px;border:1px solid var(--aniyer-line-cbd6e5, #cbd6e5);border-radius:7px;background:var(--aniyer-bg-ffffff, #fff);color:var(--aniyer-fg-17263e, #17263e);font:inherit;}.manage-tools span{font-size:12px;color:var(--aniyer-fg-63748b, #63748b);margin-left:auto;}.manage-table-wrap{overflow:auto;background:var(--aniyer-bg-ffffff, #fff);border:1px solid var(--aniyer-line-dce4ee, #dce4ee);border-radius:10px;}.manage-table{width:100%;border-collapse:collapse;font-size:13px;color:var(--aniyer-fg-17263e, #17263e);}.manage-table th,.manage-table td{padding:13px 14px;border-bottom:1px solid var(--aniyer-line-e5eaf2, #e5eaf2);text-align:left;vertical-align:middle;}.manage-table th{background:var(--aniyer-bg-eef2f8, #eef2f8);font-weight:650;white-space:nowrap;}.manage-table tr:last-child td{border:0;}.manage-table tbody tr:hover{background:var(--aniyer-bg-f8faff, #f8faff);}.manage-actions{white-space:nowrap;}.manage-actions button{margin:0 4px 0 0;}.management-page button,.manage-dialog button{padding:8px 12px;border-radius:7px;border:1px solid var(--aniyer-line-cbd6e5, #cbd6e5);background:var(--aniyer-bg-ffffff, #fff);color:var(--aniyer-fg-17263e, #17263e);cursor:pointer;font:inherit;font-size:13px;}.management-page button.primary,.manage-dialog button.primary{background:#3659ba;color:#fff;border-color:var(--aniyer-line-3659ba, #3659ba);}.management-page .danger-text{color:var(--aniyer-fg-a52f42, #a52f42);}.manage-empty{padding:30px 16px;border:1px dashed var(--aniyer-line-cbd6e5, #cbd6e5);border-radius:9px;background:var(--aniyer-bg-ffffff, #fff);color:var(--aniyer-fg-63748b, #63748b);text-align:center;}.manage-dialog{border:1px solid var(--aniyer-line-dce4ee, #dce4ee);border-radius:12px;width:min(600px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:20px;color:var(--aniyer-fg-17263e, #17263e);box-shadow:0 18px 60px #14214530;}.manage-dialog::backdrop{background:#0b10256b;}.manage-dialog-head{border-bottom:1px solid var(--aniyer-line-dce4ee, #dce4ee);margin-bottom:16px;padding-bottom:10px;}.manage-dialog-head h2{font-size:19px;margin:0;}.manage-form{display:grid;gap:12px;}.manage-form label{font-size:13px;font-weight:600;display:grid;gap:6px;}.manage-form :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--aniyer-line-cbd6e5, #cbd6e5);border-radius:7px;padding:9px;background:var(--aniyer-bg-ffffff, white);color:var(--aniyer-fg-17263e, #17263e);font:inherit;}.manage-form input[type=checkbox]{width:16px;height:16px;justify-self:start;}.manage-form textarea{min-height:80px;resize:vertical;}.manage-form pre{max-height:250px;overflow:auto;white-space:pre-wrap;font-size:12px;}.manage-form [hidden],.management-page [hidden]{display:none!important;}

.manage-dialog #foundation-errors{position:static!important;max-width:100%!important;margin:10px 0!important;box-sizing:border-box!important;display:flex!important;gap:8px;align-items:center;background:var(--aniyer-bg-fff0f1, #fff0f1);color:var(--aniyer-fg-a52f42, #a52f42);padding:10px;border:1px solid var(--aniyer-line-e8b9c0, #e8b9c0);border-radius:7px;}

body.rail47>header.studio-topbar::after{display:none!important;}body.rail47>header:has(.alarise-logo){border-bottom:1px solid #252b48!important;}body.rail47>header .workflow-name-stack{min-width:0!important;max-width:100%!important;}body.rail47>header .workflow-identity{border-left:0!important;padding-left:0!important;}body.rail47>header .topbar-inner>nav{margin-left:auto;display:flex!important;align-items:center;gap:6px;flex-wrap:nowrap!important;}

body.rail47>header>a.nav-icon-link:is([href="/landing.html"],[href="/"],[href="/apps.html"],[href="/aiva.html"],[href="/intelligence.html"],[href="/connections.html"],[href="/queries.html"],[href="/settings.html"],[href="/api-services.html"],[href="/policies.html"]),body.rail47>header .topbar-inner>nav>a.nav-icon-link:is([href="/landing.html"],[href="/"],[href="/apps.html"],[href="/aiva.html"],[href="/intelligence.html"],[href="/connections.html"],[href="/queries.html"],[href="/settings.html"],[href="/api-services.html"],[href="/policies.html"]){display:none!important;}

body.rail47>header:has(.alarise-logo){width:calc(100% + var(--global-rail))!important;}body.shell48>header.studio-topbar::after{display:none!important;}body.shell48>header:has(.alarise-logo){border-bottom:1px solid #252b48!important;}
