/* DERIOX Pulse B52 — canonical visual shell, additive, design lock 2026-10-12 */
:root{
 --pulse-b52-blue:#1366f8;
 --pulse-b52-ink:#10223f;
 --pulse-b52-muted:#647696;
 --pulse-b52-bg:#f6f8fc;
 --pulse-b52-line:#e5ebf4;
 --pulse-b52-white:#fff;
}
body:has(.pulse-home-app),body:has(.pulse-module-app){
 margin:0!important;background:var(--pulse-b52-bg)!important;color:var(--pulse-b52-ink);
}
.pulse-home-app,.pulse-module-app{
 display:grid!important;grid-template-columns:246px minmax(0,1fr)!important;
 min-height:100vh!important;width:100%!important;max-width:none!important;
 background:var(--pulse-b52-bg)!important;
}
.pulse-home-sidebar,.pulse-module-sidebar{
 position:sticky!important;top:0!important;align-self:start!important;height:100vh!important;
 overflow-y:auto!important;background:#fff!important;
 border-right:1px solid var(--pulse-b52-line)!important;
 box-sizing:border-box!important;padding:20px 14px!important;
 box-shadow:none!important;border-radius:0!important;
}
.pulse-home-logo,.pulse-module-logo{margin-bottom:22px!important;}
.pulse-home-brand-name,.pulse-module-brand-name{
 color:#112247!important;font-weight:800!important;letter-spacing:-.03em!important;
}
.pulse-home-nav,.pulse-module-nav{display:flex!important;flex-direction:column!important;gap:5px!important;}
.pulse-home-nav a,.pulse-module-nav a{
 border-radius:10px!important;min-height:41px!important;color:#344767!important;
 font-weight:600!important;text-decoration:none!important;
}
.pulse-home-nav a[aria-current="page"],.pulse-module-nav a[aria-current="page"],
.pulse-home-nav .active,.pulse-module-nav .active,
.pulse-home-nav a:hover,.pulse-module-nav a:hover{
 background:#eaf1ff!important;color:var(--pulse-b52-blue)!important;
}
.pulse-home-main,.pulse-module-main{min-width:0!important;width:100%!important;max-width:none!important;}
.pulse-home-topbar,.pulse-module-topbar{
 background:#fff!important;border:0!important;border-bottom:1px solid var(--pulse-b52-line)!important;
 border-radius:0!important;box-shadow:none!important;min-height:76px!important;
 padding:12px clamp(18px,2.2vw,36px)!important;position:relative;z-index:4;
}
.pulse-home-title,.pulse-module-page-name{font-weight:800!important;color:#0f2140!important;}
.pulse-home-search,.pulse-module-search{
 background:#f2f5fb!important;border:1px solid #edf1f8!important;
 border-radius:10px!important;
}
.pulse-home-layout{
 display:block!important;max-width:1560px!important;margin:0 auto!important;
 padding:18px clamp(14px,2vw,32px) 36px!important;
}
.pulse-home-center{display:flex!important;flex-direction:column!important;gap:18px!important;min-width:0!important;}
/* Put the real composer + feed first, without deleting welcome/stats/modules. */
.pulse-home-lower-grid{
 display:grid!important;grid-template-columns:minmax(0,1fr) 306px!important;
 gap:18px!important;align-items:start!important;order:1!important;
}
.pulse-home-primary-column{
 display:flex!important;flex-direction:column!important;gap:12px!important;
 min-width:0!important;grid-column:1!important;
}
.pulse-home-discovery-column{
 display:flex!important;flex-direction:column!important;gap:14px!important;
 min-width:0!important;grid-column:2!important;
}
.pulse-home-hero{order:3!important;min-height:unset!important;}
.pulse-home-secondary-grid{order:4!important;}
.pulse-home-stats{order:5!important;}
.pulse-home-section{order:2!important;}
.pulse-home-real-feed{display:flex!important;flex-direction:column!important;gap:10px!important;}
.pulse-home-card,.pulse-module-card,.pulse-home-post,.pulse-a4-feed-post,
.pulse-b52-composer,.pulse-home-right > *{
 background:#fff!important;border:1px solid var(--pulse-b52-line)!important;
 border-radius:13px!important;box-shadow:0 2px 8px rgba(17,42,83,.035)!important;
}
.pulse-home-post,.pulse-a4-feed-post{padding:16px!important;}
.pulse-home-real-feed .pulse-a4-feed-post-body{font-size:14px!important;line-height:1.58!important;}
.pulse-home-right{position:static!important;width:auto!important;max-width:none!important;}
.pulse-home-discovery-column .pulse-home-right{display:flex!important;flex-direction:column!important;gap:13px!important;}
.pulse-b52-composer{
 order:1!important;padding:16px!important;margin:0!important;
 display:flex!important;flex-direction:column!important;gap:12px!important;
}
.pulse-b52-composer-head{display:flex;align-items:center;gap:12px;min-width:0;}
.pulse-b52-composer-avatar{
 flex:0 0 38px;width:38px;height:38px;border-radius:50%;
 display:grid;place-items:center;font-weight:800;color:#fff;
 background:linear-gradient(135deg,#1e69f5,#4d49ba);
}
.pulse-b52-editor-launch{
 flex:1;display:flex;align-items:center;min-height:43px;padding:10px 14px;
 border:1px solid #dce5f1!important;border-radius:10px!important;
 background:#f9fbff!important;color:#7a8ba8!important;text-align:left;
 cursor:pointer;font:inherit!important;min-width:0;
}
.pulse-b52-editor-launch:focus-visible,.pulse-b52-action:focus-visible{
 outline:3px solid #93b5fc!important;outline-offset:2px!important;
}
.pulse-b52-composer-actions{display:flex;gap:11px;align-items:center;flex-wrap:wrap;}
.pulse-b52-action{
 display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;
 color:#36577f;cursor:pointer;border-radius:9px;min-height:36px;
 padding:7px 9px;font:inherit;font-weight:600;font-size:13px;
}
.pulse-b52-action:hover{background:#eff5ff;color:#105bf1;}
.pulse-b52-action svg{width:18px;height:18px;stroke:#1764f3;stroke-width:1.8;fill:none;}
.pulse-b52-publish{
 background:var(--pulse-b52-blue)!important;color:#fff!important;
 border:0!important;border-radius:9px!important;min-width:111px;
 justify-content:center;margin-left:auto;font-weight:700!important;
 box-shadow:0 4px 10px #1465f826;
}
.pulse-b52-publish:hover{background:#0a54d7!important;color:#fff!important;}
.pulse-b52-composer-note{color:var(--pulse-b52-muted);font-size:12px;}
.pulse-b52-return-home{
 color:#155ee5;font-size:13px;font-weight:700;text-decoration:none;
 padding:8px 10px;border-radius:8px;background:#eff5ff;white-space:nowrap;
}
.pulse-b52-return-home:hover{text-decoration:underline;}
.pulse-home-discovery-column .pulse-a4-feed-post{max-width:100%;}
.pulse-home-real-feed img,.pulse-home-real-feed video,
.pulse-home-real-feed iframe{max-width:100%;}
@media(max-width:1250px){
 .pulse-home-lower-grid{grid-template-columns:minmax(0,1fr) 270px!important;}
}
@media(max-width:1050px){
 .pulse-home-lower-grid{grid-template-columns:minmax(0,1fr)!important;}
 .pulse-home-discovery-column{grid-column:1!important;}
 .pulse-home-discovery-column .pulse-home-right{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
 .pulse-home-app,.pulse-module-app{grid-template-columns:minmax(0,1fr)!important;}
 .pulse-home-sidebar,.pulse-module-sidebar{
  position:relative!important;top:auto!important;height:auto!important;
  max-height:none!important;width:100%!important;overflow:visible!important;
  padding:12px!important;border-right:0!important;
  border-bottom:1px solid var(--pulse-b52-line)!important;
 }
 .pulse-home-nav,.pulse-module-nav{flex-direction:row!important;overflow-x:auto!important;gap:6px!important;}
 .pulse-home-nav a,.pulse-module-nav a{flex:0 0 auto;}
 .pulse-home-topbar,.pulse-module-topbar{padding:12px!important;}
 .pulse-home-layout{padding:12px 10px!important;}
 .pulse-b52-composer{padding:12px!important;}
 .pulse-b52-composer-actions{gap:4px!important;}
 .pulse-b52-publish{min-width:94px;margin-left:auto;}
 .pulse-home-discovery-column .pulse-home-right{grid-template-columns:1fr!important;}
}
