:root{
    --primary:#4F39F6;
    --primary-dark:#3526B8;
    --indigo:#4F39F6;
    --indigo-hover:#3526B8;
    --ink:#1f1f26;
    --slate-500:#73737f;
    --slate-400:#9494a2;
    --slate-200:#e5e5ea;
    --slate-100:#f1f1f4;
    --slate-50:#f7f7f8;
    --amber:#a88f55;
  }

  *{
    box-sizing:border-box;
  }

  body{
    margin:0;
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    background:var(--slate-50);
    color:var(--ink);
    -webkit-font-smoothing:antialiased;
  }


  /* ---------- FluidOps header ---------- */

  .site-header{
    background:#fff;
    border-bottom:1px solid #e5e5ea;
    position:sticky;
    top:0;
    z-index:100;
  }

  .site-header-inner{
    max-width:1080px;
    margin:0 auto;
    min-height:62px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
  }

  .brand{
    display:flex;
    align-items:center;
    gap:9px;
    text-decoration:none;
    color:#1f1f26;
    font-size:17px;
    font-weight:800;
    letter-spacing:-0.02em;
  }

  .brand-mark{
    width:29px;
    height:29px;
    border-radius:8px;
    background:#4F39F6;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:14px;
    font-weight:800;
  }

  .site-nav{
    display:flex;
    align-items:center;
    gap:22px;
  }

  .site-nav a{
    color:#73737f;
    text-decoration:none;
    font-size:12.5px;
    font-weight:600;
    transition:.15s;
  }

  .site-nav a:hover{
    color:#4F39F6;
  }

  .site-nav .header-cta{
    background:#4F39F6;
    color:#fff;
    padding:8px 14px;
    border-radius:9px;
  }

  .site-nav .header-cta:hover{
    background:#3526B8;
    color:#fff;
  }


  /* ---------- main ---------- */

  .wrap{
    max-width:1080px;
    margin:0 auto;
    padding:40px 20px 64px;
  }


  /* ---------- demo header ---------- */

  .head-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:22px;
  }

  .head .tag{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12.5px;
    font-weight:600;
    color:var(--indigo);
    background:#F3F1FF;
    border:1px solid #DDD8FF;
    padding:4px 10px;
    border-radius:999px;
    margin-bottom:14px;
  }

  .head-title{
    display:flex;
    align-items:center;
    gap:9px;
  }

  .head-title svg{
    color:var(--indigo);
    flex:none;
  }

  .head h1{
    font-size:clamp(22px,3.6vw,28px);
    font-weight:800;
    line-height:1.2;
    margin:0;
    letter-spacing:-0.02em;
  }

  .head p{
    font-size:14.5px;
    color:var(--slate-500);
    margin:6px 0 0;
    max-width:56ch;
    line-height:1.55;
  }

  .tabs{
    display:flex;
    align-items:center;
    background:#e9e8ed;
    padding:4px;
    border-radius:13px;
    flex:none;
  }

  .tab-btn{
    display:flex;
    align-items:center;
    gap:6px;
    border:none;
    background:transparent;
    padding:8px 14px;
    border-radius:10px;
    font-size:12.5px;
    font-weight:700;
    color:#5f5f69;
    cursor:pointer;
    font-family:inherit;
    transition:.15s;
  }

  .tab-btn.active{
    background:#fff;
    color:var(--ink);
    box-shadow:0 1px 2px rgba(31,31,38,.08);
  }


  /* ---------- layout ---------- */

  .layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
    align-items:start;
  }

  .for-you-hint{
    background:#F3F1FF;
    border:1px solid #DDD8FF;
    border-radius:16px;
    padding:14px 16px;
    margin-bottom:14px;
  }

  .for-you-hint .t1{
    font-size:12.5px;
    font-weight:700;
    color:#3526B8;
  }

  .for-you-hint .t2{
    font-size:11.5px;
    color:#4F39F6;
    margin-top:3px;
  }

  .feed{
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .empty-feed{
    background:#fff;
    border:1px solid var(--slate-200);
    border-radius:18px;
    padding:40px 20px;
    text-align:center;
  }

  .empty-feed .t1{
    font-size:13.5px;
    font-weight:700;
    color:#45454f;
  }

  .empty-feed .t2{
    font-size:12px;
    color:var(--slate-400);
    margin-top:4px;
  }

  .project-card{
    background:#fff;
    border:1px solid var(--slate-200);
    border-radius:18px;
    padding:20px;
    box-shadow:0 1px 2px rgba(31,31,38,.04);
    display:flex;
    flex-direction:column;
    gap:12px;
    transition:box-shadow .15s,border-color .15s;
  }

  .project-card:hover{
    box-shadow:0 4px 12px rgba(31,31,38,.06);
    border-color:#C9C3F4;
  }

  .project-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
  }

  .project-name-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
  }

  .project-name{
    font-size:14.5px;
    font-weight:800;
  }

  .project-key{
    font-size:10.5px;
    font-weight:700;
    color:var(--slate-400);
  }

  .project-desc{
    font-size:12.5px;
    color:var(--slate-500);
    margin-top:5px;
    line-height:1.55;
  }

  .project-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex:none;
  }

  .follow-btn{
    display:flex;
    align-items:center;
    gap:5px;
    padding:7px 13px;
    border-radius:11px;
    font-size:11px;
    font-weight:700;
    border:1px solid var(--slate-200);
    background:#fff;
    color:#45454f;
    cursor:pointer;
    font-family:inherit;
    transition:.15s;
  }

  .follow-btn.following{
    background:#F3F1FF;
    color:#3526B8;
    border-color:#C9C3F4;
  }

  .bell-btn{
    width:29px;
    height:29px;
    border-radius:10px;
    border:1px solid var(--slate-200);
    background:#fff;
    color:var(--slate-400);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.15s;
    flex:none;
  }

  .bell-btn.active{
    background:#F3F1FF;
    color:var(--indigo);
    border-color:#C9C3F4;
  }

  .tag-row{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  .tag-pill{
    font-size:10px;
    font-weight:700;
    background:var(--slate-100);
    color:#5f5f69;
    padding:3px 9px;
    border-radius:7px;
  }

  .project-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:11px;
    border-top:1px solid var(--slate-100);
    flex-wrap:wrap;
    gap:8px;
  }

  .author{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
  }

  .author img{
    width:26px;
    height:26px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid var(--slate-200);
    flex:none;
  }

  .author .name{
    font-size:12px;
    font-weight:600;
    color:#45454f;
  }

  .author .handle{
    font-size:10.5px;
    color:var(--slate-400);
    margin-left:2px;
  }

  .project-meta{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:11px;
    color:var(--slate-400);
    font-weight:500;
  }


  /* ---------- right rail ---------- */

  .rail-card{
    background:#fff;
    border:1px solid var(--slate-200);
    border-radius:18px;
    padding:18px;
    box-shadow:0 1px 2px rgba(31,31,38,.04);
  }

  .rail-card + .rail-card{
    margin-top:14px;
  }

  .rail-head{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:14px;
  }

  .rail-head svg{
    color:var(--indigo);
  }

  .rail-head h3{
    font-size:12.5px;
    font-weight:700;
    margin:0;
  }

  .account-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
  }

  .account-row + .account-row{
    margin-top:13px;
  }

  .account-left{
    display:flex;
    align-items:flex-start;
    gap:9px;
    min-width:0;
  }

  .account-left img{
    width:32px;
    height:32px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid var(--slate-200);
    flex:none;
  }

  .account-name{
    font-size:12px;
    font-weight:700;
    color:#303039;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    display:block;
  }

  .account-sub{
    font-size:10.5px;
    color:var(--slate-400);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    display:block;
    max-width:150px;
  }

  .icon-follow-btn{
    width:29px;
    height:29px;
    border-radius:10px;
    border:1px solid var(--slate-200);
    background:#fff;
    color:var(--slate-500);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.15s;
    flex:none;
  }

  .icon-follow-btn.following{
    background:#F3F1FF;
    color:var(--indigo);
    border-color:#C9C3F4;
  }

  .interests-hint{
    font-size:11px;
    color:var(--slate-400);
    line-height:1.5;
    margin:0 0 10px;
  }

  .interest-pill{
    font-size:10px;
    font-weight:700;
    background:#F3F1FF;
    color:#3526B8;
    padding:3px 9px;
    border-radius:7px;
  }

  .interests-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  .no-interests{
    font-size:11px;
    color:var(--slate-400);
  }


  /* ---------- cta ---------- */

  .cta-band{
    margin-top:16px;
    padding:18px 20px;
    border-radius:14px;
    background:linear-gradient(135deg,#4F39F6,#7565F7);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }

  .cta-title{
    font-size:14px;
    font-weight:700;
    color:#fff;
  }

  .cta-sub{
    font-size:12px;
    color:#e8e5f7;
    margin-top:2px;
  }

  .btn-primary{
    border:none;
    border-radius:11px;
    padding:10px 18px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:.15s;
    font-family:inherit;
    text-decoration:none;
    display:inline-block;
    background:#fff;
    color:var(--primary);
  }

  .btn-primary:hover{
    background:#f4f4f6;
  }


  /* ---------- db simulation ---------- */

  .db-toggle{
    margin-top:22px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12.5px;
    font-weight:600;
    color:var(--slate-500);
    cursor:pointer;
    user-select:none;
  }

  .db-toggle .dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#6f9b86;
    box-shadow:0 0 0 3px #6f9b861f;
  }

  .db-toggle svg.chevron{
    transition:transform .15s;
  }

  .db-toggle.open svg.chevron{
    transform:rotate(90deg);
  }

  .db-panel{
    display:none;
    margin-top:10px;
    background:var(--ink);
    border-radius:14px;
    overflow:hidden;
  }

  .db-panel.open{
    display:block;
  }

  .db-panel-bar{
    display:flex;
    gap:6px;
    padding:10px 14px;
    border-bottom:1px solid #303039;
  }

  .db-panel-bar span{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#45454f;
  }

  .db-panel pre{
    margin:0;
    padding:16px;
    font-family:'JetBrains Mono',monospace;
    font-size:11.5px;
    color:#b9b1e8;
    overflow-x:auto;
    line-height:1.6;
    max-height:280px;
    overflow-y:auto;
  }

  .db-panel .caption{
    padding:8px 14px 14px;
    font-size:11px;
    color:#73737f;
    border-top:1px solid #303039;
  }


  /* ---------- FluidOps footer ---------- */

  .site-footer{
    border-top:1px solid #e5e5ea;
    background:#fff;
  }

  .site-footer-inner{
    max-width:1080px;
    margin:0 auto;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }

  .footer-brand{
    font-size:11.5px;
    font-weight:700;
    color:#45454f;
  }

  .footer-made{
    display:flex;
    align-items:center;
    gap:7px;
    color:#73737f;
    font-size:11px;
    font-weight:500;
  }

  .footer-made svg{
    width:21px;
    height:21px;
    flex:none;
  }


  /* ---------- responsive ---------- */

  @media (max-width:820px){
    .layout{
      grid-template-columns:1fr;
    }
  }

  @media (max-width:700px){
    .site-nav a:not(.header-cta){
      display:none;
    }

    .site-nav{
      gap:0;
    }

    .site-header-inner{
      min-height:58px;
    }

    .site-footer-inner{
      justify-content:center;
      text-align:center;
    }
  }
