/* ==============================================================
   DERIOX PULSE MODULE SHELL R2
   Wide shared shell aligned with Home R6
   ============================================================== */

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
    background:#f5f7fa;
}

body{
    margin:0;
    min-width:320px;
    min-height:100vh;
    background:
        radial-gradient(
            circle at 64% 0%,
            rgba(222,233,250,.42),
            transparent 28%
        ),
        #f5f7fa;
    color:#101318;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size:14px;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input{
    font:inherit;
}


/* ==============================================================
   APP
   ============================================================== */

.pulse-module-app{
    width:min(1680px,calc(100% - 44px));
    min-height:100vh;
    margin:0 auto;
    padding:18px 0 32px;
    display:grid;
    grid-template-columns:230px minmax(0,1fr);
    gap:24px;
}


/* ==============================================================
   SIDEBAR
   ============================================================== */

.pulse-module-sidebar{
    min-height:calc(100vh - 50px);
    display:flex;
    flex-direction:column;
    align-self:start;
}

.pulse-module-brand{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:4px 8px 25px;
}

.pulse-module-logo{
    width:43px;
    height:43px;
    flex:0 0 43px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:#11151b;
    color:#fff;
    font-weight:900;
    font-size:16px;
    box-shadow:
        0 8px 22px rgba(19,27,39,.15);
}

.pulse-module-brand-name{
    margin-top:1px;
    font-size:17.5px;
    line-height:1.05;
    font-weight:900;
    letter-spacing:-.35px;
}

.pulse-module-brand-tagline{
    max-width:150px;
    margin-top:5px;
    color:#78869a;
    font-size:10.8px;
    line-height:1.38;
}

.pulse-module-nav{
    display:flex;
    flex-direction:column;
    gap:7px;
}

.pulse-module-nav a{
    min-height:47px;
    display:grid;
    grid-template-columns:30px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:7px 12px;
    border:1px solid transparent;
    border-radius:14px;
    color:#344154;
    font-size:13px;
    font-weight:760;
    transition:
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.pulse-module-nav a:hover{
    background:#fff;
    border-color:#e4e9ef;
    transform:translateX(2px);
}

.pulse-module-nav a.active{
    background:#fff;
    border-color:#dce3ea;
    color:#101318;
    box-shadow:
        0 7px 21px rgba(26,35,48,.055);
}

.pulse-module-nav-icon{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#eef2f7;
    color:#607089;
    font-size:13px;
}

.pulse-module-nav a.active .pulse-module-nav-icon{
    background:#e9f2ff;
    color:#2870e8;
}

.pulse-module-nav-badge{
    min-width:22px;
    height:22px;
    display:grid;
    place-items:center;
    padding:0 6px;
    border-radius:999px;
    background:#2e70e8;
    color:#fff;
    font-size:10px;
    font-weight:900;
}

.pulse-module-sidebar-foot{
    margin-top:auto;
    padding:34px 8px 0;
    color:#93a0b2;
    font-size:10.5px;
    line-height:1.45;
}


/* ==============================================================
   MAIN / TOPBAR
   ============================================================== */

.pulse-module-main{
    min-width:0;
}

.pulse-module-topbar{
    min-height:66px;
    display:grid;
    grid-template-columns:180px minmax(320px,500px) auto;
    align-items:center;
    gap:16px;
    padding:10px 13px 10px 18px;
    border:1px solid #dfe5ec;
    border-radius:17px;
    background:rgba(255,255,255,.92);
    box-shadow:
        0 7px 22px rgba(28,39,54,.035);
}

.pulse-module-page-name{
    min-width:0;
}

.pulse-module-eyebrow{
    color:#8b96a7;
    font-size:9.5px;
    line-height:1;
    font-weight:900;
    letter-spacing:1.3px;
}

.pulse-module-page-name strong{
    display:block;
    margin-top:5px;
    font-size:20px;
    line-height:1.05;
    font-weight:900;
}

.pulse-module-search{
    width:100%;
    height:40px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 14px;
    border:1px solid #e0e6ee;
    border-radius:12px;
    background:#f7f9fc;
    color:#78869a;
}

.pulse-module-search input{
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    color:#49576b;
    font-size:11.5px;
}

.pulse-module-search input::placeholder{
    color:#8793a5;
    opacity:1;
}

.pulse-module-top-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    white-space:nowrap;
}

.pulse-module-lang{
    height:36px;
    display:flex;
    align-items:center;
    gap:3px;
    padding:3px;
    border:1px solid #e1e6ed;
    border-radius:999px;
    background:#f7f9fc;
}

.pulse-module-lang a{
    min-width:36px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:999px;
    color:#68758a;
    font-size:10px;
    font-weight:900;
}

.pulse-module-lang a.active{
    background:#11151b;
    color:#fff;
}

.pulse-module-create-post,
.pulse-module-logout{
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 15px;
    border-radius:11px;
    font-size:10.7px;
    font-weight:850;
}

.pulse-module-create-post{
    border:1px solid #2b6ee8;
    background:
        linear-gradient(
            180deg,
            #3a7af3,
            #2969e4
        );
    color:#fff;
    box-shadow:
        0 8px 18px rgba(45,109,233,.16);
}

.pulse-module-logout{
    border:1px solid #dce3eb;
    background:#fff;
    color:#243145;
}


/* ==============================================================
   LAYOUT
   ============================================================== */

.pulse-module-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:18px;
    margin-top:16px;
    align-items:start;
}

.pulse-module-content{
    min-width:0;
}

.pulse-module-right{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:15px;
}

.pulse-module-card{
    border:1px solid #dde4eb;
    border-radius:17px;
    background:#fff;
    box-shadow:
        0 9px 28px rgba(28,39,54,.035);
}


/* ==============================================================
   HERO
   ============================================================== */

.pulse-module-hero{
    position:relative;
    min-height:230px;
    overflow:hidden;
    padding:32px 340px 29px 29px;
    background:
        linear-gradient(
            118deg,
            #fff 0%,
            #fbfdff 53%,
            #edf5ff 100%
        );
}

.pulse-module-current,
.pulse-module-small-label{
    color:#8e99aa;
    font-size:9.6px;
    line-height:1;
    font-weight:900;
    letter-spacing:1.25px;
    text-transform:uppercase;
}

.pulse-module-hero h1{
    margin:12px 0 0;
    font-size:34px;
    line-height:1.03;
    letter-spacing:-1.15px;
    font-weight:950;
}

.pulse-module-description{
    max-width:720px;
    margin:10px 0 0;
    color:#68758a;
    font-size:13px;
    line-height:1.55;
}

.pulse-module-pills{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:21px;
}

.pulse-module-pills span{
    min-height:31px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border:1px solid #dfe5ec;
    border-radius:999px;
    background:#f8fafc;
    color:#6c788a;
    font-size:10.5px;
    font-weight:800;
}

.pulse-module-pills span.dark{
    border-color:#11151b;
    background:#11151b;
    color:#fff;
}

.pulse-module-hero-art{
    position:absolute;
    top:0;
    right:0;
    width:315px;
    height:100%;
}

.pulse-module-hero-art .orb{
    position:absolute;
    display:block;
    border-radius:50%;
}

.pulse-module-hero-art .orb-a{
    top:31px;
    right:165px;
    width:62px;
    height:62px;
    background:#c9e0ff;
}

.pulse-module-hero-art .orb-b{
    top:70px;
    right:65px;
    width:135px;
    height:135px;
    background:#dbeaff;
}

.pulse-module-hero-art .orb-c{
    right:-16px;
    bottom:-20px;
    width:160px;
    height:160px;
    background:#e8f2ff;
}

.pulse-module-hero-mark{
    position:absolute;
    top:83px;
    right:93px;
    width:76px;
    height:76px;
    display:grid;
    place-items:center;
    border:4px solid #fff;
    border-radius:50%;
    background:
        linear-gradient(
            145deg,
            #526177,
            #9b7765
        );
    color:#fff;
    font-size:22px;
    font-weight:950;
    box-shadow:
        0 10px 24px rgba(47,61,80,.2);
}


/* ==============================================================
   LOWER CONTENT
   ============================================================== */

.pulse-module-two-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:15px;
    margin-top:15px;
}

.pulse-module-info-card{
    min-height:160px;
    padding:20px;
}

.pulse-module-info-card h2,
.pulse-module-workspace h2{
    margin:10px 0 0;
    font-size:17px;
    font-weight:900;
}

.pulse-module-info-card p{
    max-width:630px;
    margin:9px 0 0;
    color:#6d788a;
    font-size:11.5px;
    line-height:1.55;
}

.pulse-module-workspace{
    min-height:250px;
    margin-top:15px;
    padding:21px;
}

.pulse-module-workspace-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
}

.pulse-module-ready-chip{
    min-height:30px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:0 11px;
    border-radius:999px;
    background:#eaf8f1;
    color:#1a9362;
    font-size:10px;
    font-weight:850;
}

.pulse-module-workspace-panel{
    min-height:135px;
    margin-top:19px;
    display:grid;
    grid-template-columns:58px minmax(0,1fr);
    align-items:center;
    gap:17px;
    padding:22px;
    border:1px dashed #d6dee8;
    border-radius:14px;
    background:#f8fafc;
}

.pulse-module-workspace-icon{
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:#11151b;
    color:#fff;
    font-size:21px;
    font-weight:950;
}

.pulse-module-workspace-panel strong{
    font-size:14px;
}

.pulse-module-workspace-panel p{
    max-width:780px;
    margin:7px 0 0;
    color:#6e7a8c;
    font-size:11px;
    line-height:1.5;
}


/* ==============================================================
   RIGHT RAIL
   ============================================================== */

.pulse-module-side-card{
    padding:17px;
}

.pulse-module-side-card h3{
    margin:0 0 12px;
    font-size:14px;
    font-weight:950;
}

.pulse-module-system-row{
    min-height:43px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    border-top:1px solid #e8edf2;
    color:#7a8799;
    font-size:10.5px;
}

.pulse-module-system-row strong{
    color:#15191f;
    font-size:10.5px;
    text-align:right;
}

.pulse-module-current-box{
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:11px;
    margin-bottom:11px;
    padding:12px;
    border-radius:13px;
    background:#f6f9fd;
}

.pulse-module-current-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#11151b;
    color:#fff;
    font-weight:950;
}

.pulse-module-current-box strong{
    display:block;
    font-size:11.5px;
}

.pulse-module-current-box span{
    display:block;
    margin-top:3px;
    color:#8290a3;
    font-size:9.5px;
}

.pulse-module-quick-link{
    min-height:42px;
    display:grid;
    grid-template-columns:25px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    margin-top:6px;
    padding:7px 9px;
    border-radius:11px;
    background:#f8fafc;
    color:#39465a;
    font-size:10.5px;
}

.pulse-module-quick-link:hover{
    background:#f0f5fb;
}

.pulse-module-quick-link.active{
    background:#edf4ff;
    color:#1f67df;
}


/* ==============================================================
   RESPONSIVE
   ============================================================== */

@media(max-width:1450px){

    .pulse-module-app{
        width:calc(100% - 28px);
        grid-template-columns:210px minmax(0,1fr);
        gap:18px;
    }

    .pulse-module-topbar{
        grid-template-columns:165px minmax(220px,380px) auto;
        gap:12px;
    }

    .pulse-module-layout{
        grid-template-columns:minmax(0,1fr) 285px;
        gap:15px;
    }
}


@media(max-width:1180px){

    .pulse-module-layout{
        grid-template-columns:1fr;
    }

    .pulse-module-right{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}


@media(max-width:980px){

    .pulse-module-app{
        grid-template-columns:1fr;
    }

    .pulse-module-sidebar{
        min-height:auto;
    }

    .pulse-module-topbar{
        grid-template-columns:1fr auto;
    }

    .pulse-module-search{
        grid-column:1 / -1;
    }

    .pulse-module-two-cards{
        grid-template-columns:1fr;
    }
}


@media(max-width:680px){

    .pulse-module-app{
        width:calc(100% - 18px);
        padding-top:9px;
    }

    .pulse-module-topbar{
        display:flex;
        flex-wrap:wrap;
    }

    .pulse-module-search{
        order:3;
        flex:0 0 100%;
    }

    .pulse-module-create-post{
        display:none;
    }

    .pulse-module-hero{
        padding:24px;
    }

    .pulse-module-hero-art{
        display:none;
    }

    .pulse-module-right{
        grid-template-columns:1fr;
    }
}
