/* SYNERGY ATELIER — a unified additive visual system for all 42 legacy/new surfaces.
   Does not override legacy application positioning or input controls globally. */
:root{
 --syn-ink:#050806;--syn-elevated:#101914;--syn-panel:#111b16;--syn-panel-hover:#17251b;
 --syn-line:rgba(135,207,153,.17);--syn-strong-line:rgba(0,230,100,.43);
 --syn-mint:#00e664;--syn-deep-mint:#005e32;--syn-amber:#f2c15b;
 --syn-title:#f4fff4;--syn-copy:#c2d4c6;--syn-dim:#8ca498;
 --syn-ease:cubic-bezier(.22,1,.36,1);
}
html.syn-premium{color-scheme:dark;scrollbar-color:#365b43 #081009}
html.syn-premium body{background-image:radial-gradient(ellipse 42% 30% at 92% -3%,rgba(0,230,100,.047),transparent 75%),radial-gradient(ellipse 38% 30% at 2% 95%,rgba(230,179,67,.024),transparent 65%)}
html.syn-premium ::selection{background:rgba(0,230,100,.37);color:white}
html.syn-premium :is(input,textarea,select){accent-color:var(--syn-mint)}
html.syn-premium :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--syn-mint)!important;outline-offset:3px!important}
/* Compact global suite dock that overlays without modifying 42 disparate legacy layout trees */
.syn-dock{position:fixed;z-index:2147481900;left:18px;bottom:18px;display:flex;align-items:center;gap:4px;background:rgba(7,17,11,.94);border:1px solid #63876a55;border-radius:18px;padding:6px;box-shadow:0 20px 60px rgba(0,0,0,.56),0 0 36px #00e66411;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);font-family:Manrope,system-ui,sans-serif}
.syn-dock a{display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:11px 14px;text-decoration:none!important;color:#c6e4ca!important;font-size:11px!important;font-weight:750!important;line-height:1.2;letter-spacing:.01em;white-space:nowrap}
.syn-dock a:hover,.syn-dock a[aria-current="page"]{background:#1a3120!important;color:#fff!important}
.syn-dock-icon{color:var(--syn-mint);font-size:16px;line-height:1}
.syn-dock-sep{height:20px;width:1px;background:#66796655;margin:0 2px}
.syn-dock-status{width:7px;height:7px;border-radius:50%;background:#f2c15b;box-shadow:0 0 12px #f2c15b70;flex:none}
.syn-dock .syn-dock-label{font-size:9px;letter-spacing:.11em;color:#b5cbba;text-transform:uppercase;margin-right:4px}
/* Surface enhancements opt in to known legacy component classes, avoiding content destruction */
html.syn-premium[data-syn-app="smm"] :is(.tile,.task-card,.catalog-card,.panel,.step,.quick,.workspace-card),
html.syn-premium[data-syn-app="nexus"] :is(.module,.metric,.feature,.ops-panel,.readout),
html.syn-premium[data-syn-app="riskguard"] :is(.panel,.metric,.connect-card,.inner-panel),
html.syn-premium[data-syn-app="investor-folio"] :is(.box,.chartbox,.result-card,.stat),
html.syn-premium[data-syn-app="broker-mesh"] :is(.node,.card,.diagnostic){
 border-color:var(--syn-line);box-shadow:0 24px 76px rgba(0,0,0,.25),inset 0 1px 0 rgba(234,255,237,.035);
 transition:box-shadow .26s var(--syn-ease),border-color .26s var(--syn-ease),transform .26s var(--syn-ease)}
@media (hover:hover){
 html.syn-premium[data-syn-app="smm"] :is(.tile,.task-card,.catalog-card,.workspace-card):hover,
 html.syn-premium[data-syn-app="nexus"] :is(.module,.feature):hover,
 html.syn-premium[data-syn-app="riskguard"] :is(.panel,.connect-card):hover,
 html.syn-premium[data-syn-app="investor-folio"] :is(.box,.chartbox):hover,
 html.syn-premium[data-syn-app="broker-mesh"] :is(.node,.card):hover{
 transform:translateY(-2px);border-color:var(--syn-strong-line)!important;box-shadow:0 32px 80px rgba(0,0,0,.4),0 0 28px rgba(0,230,100,.055)}
}
/* The command palette must remain accessible above the dock with consistent proportions */
.syn-cover{font-synthesis:none}.syn-modal{box-shadow:0 50px 150px #000f,0 0 80px rgba(0,230,100,.07)}
.syn-launch{bottom:18px!important;right:18px!important;padding:14px 18px!important;border-radius:17px!important}
.syn-launch .syn-hotkey{color:#9db9a5;font:10px 'DM Mono',monospace}
.syn-link{min-height:104px!important}
.syn-link b{font-size:14px!important}
/* Universal helpful system hint, deliberately non-modal */
.syn-environment{position:fixed;z-index:2147481890;right:20px;top:18px;pointer-events:none;opacity:0;transition:opacity .24s;font:10px 'DM Mono',monospace;color:#a7c5ad}
@media(max-width:950px){.syn-dock{left:10px;bottom:10px;padding:4px;border-radius:14px}.syn-dock a{font-size:10px!important;padding:10px 8px}.syn-dock .syn-dock-hide{display:none}.syn-launch{bottom:10px!important;right:10px!important}}
@media(max-width:560px){.syn-dock .syn-dock-label{display:none}.syn-dock .syn-dock-sep{display:none}.syn-dock a{font-size:0!important;padding:11px!important}.syn-dock-icon{font-size:19px}.syn-launch{font-size:0!important;padding:9px 11px!important;min-width:49px;min-height:49px}.syn-launch .syn-hotkey{display:none!important}.syn-modal{max-height:91dvh}}
@media (prefers-reduced-motion:reduce){html.syn-premium *{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
/* V8.8 audited legacy mobile compatibility: keep navigation and tables inside scrollable surfaces. */
@media(max-width:730px){
 html.syn-premium,html.syn-premium body{max-width:100%;overflow-x:clip}
 html.syn-premium :is(pre,table,code){max-width:100%}
 html.syn-premium :is(pre,textarea,.table-wrap,.table-scroll){overflow-x:auto;overscroll-behavior-inline:contain}
 html.syn-premium[data-syn-app="investor"] :is(.hero,.hero-grid),
 html.syn-premium[data-syn-app="market"] :is(.hero,.hero-grid){grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important}
 html.syn-premium[data-syn-app="investor"] .hero>div,
 html.syn-premium[data-syn-app="market"] .hero>div{min-width:0!important;max-width:100%!important;width:auto!important}
 html.syn-premium[data-syn-app="investor"] .hero h1,
 html.syn-premium[data-syn-app="market"] .hero h1{font-size:clamp(64px,15vw,102px)!important;overflow-wrap:anywhere;letter-spacing:-.02em}
 html.syn-premium[data-syn-path^="smm/"] :is(nav,header,.nav,.nav-links){min-width:0;max-width:100%;}
 html.syn-premium[data-syn-path^="smm/"] .nav-links{max-width:calc(100vw - 28px)!important;flex-wrap:wrap!important;white-space:normal!important;overflow-x:auto;overscroll-behavior-inline:contain}
 html.syn-premium[data-syn-path^="smm/"] input{min-width:0;max-width:100%}
 html.syn-premium[data-syn-path^="smm/SMMV2/"] .mq{max-width:100vw;overflow:hidden}
 html.syn-premium[data-syn-path^="smm/SMMV2/"] #v2SearchInput{width:100%!important;min-width:0!important}
 html.syn-premium[data-syn-path="riskguard/institutional/index.html"] .header-actions{max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-start}
 html.syn-premium[data-syn-path="riskguard/institutional/index.html"] select{max-width:100%;min-width:0}
}
@media(max-width:730px){
 html.syn-premium[data-syn-path^="smm/"] .nav-in{flex-wrap:wrap!important;max-width:100vw!important;min-width:0!important;gap:8px!important}
 html.syn-premium[data-syn-path^="smm/"] .nav-in>.nav-links{order:99!important;flex:1 1 100%!important;max-width:100%!important;min-width:0!important;width:100%!important;overflow-x:auto}
 html.syn-premium[data-syn-path^="smm/SMMV2/"] [style*="max-width:700px"]{max-width:calc(100vw - 75px)!important;min-width:0!important;width:100%!important}
 html.syn-premium[data-syn-path^="smm/SMMV2/"] #v2SearchInput{max-width:calc(100vw - 75px)!important}
}
