:root{
  --v3green:#173d26;
  --v3green2:#276b42;
  --v3bg:#f4f6f4;
  --v3border:#dfe6e1;
  --v3text:#1f2923;
}

.v3-top{
  background:#fff;
  border:1px solid var(--v3border);
  border-radius:10px;
  padding:14px;
  margin-bottom:14px;
}

.v3-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:10px;
}

.v3-stats{
  display:grid;
  grid-template-columns:repeat(6,minmax(110px,1fr));
  gap:8px;
}

.v3-stat{
  background:#f7f9f7;
  border-radius:8px;
  padding:10px;
}

.v3-stat strong{
  display:block;
  font-size:22px;
}

.v3-stat span{
  font-size:11px;
  color:#66736a;
}

.v3-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.v3-actions button{
  border:1px solid var(--v3border);
  background:#fff;
  color:var(--v3text);
  padding:8px 12px;
  border-radius:7px;
  cursor:pointer;
}

.v3-actions button.active{
  background:var(--v3green2);
  color:#fff;
  border-color:var(--v3green2);
}

#v3Overview{
  display:none;
}

.v3-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:12px;
}

.v3-card{
  background:#fff;
  border:1px solid var(--v3border);
  border-radius:10px;
  padding:14px;
}

.v3-card-name{
  font-size:16px;
  font-weight:700;
  margin-bottom:6px;
}

.v3-line{
  font-size:13px;
  margin:5px 0;
  color:#48544d;
}

.v3-badges{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:8px 0;
}

.v3-badge{
  font-size:11px;
  background:#edf2ee;
  padding:4px 7px;
  border-radius:10px;
}

.v3-card-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:10px;
}

.v3-card-actions button,
.v3-card-actions a{
  border:0;
  border-radius:6px;
  padding:8px 10px;
  background:var(--v3green2);
  color:#fff;
  text-decoration:none;
  font-size:12px;
  cursor:pointer;
}

#v3Drawer{
  position:fixed;
  top:0;
  right:-520px;
  width:500px;
  max-width:92vw;
  height:100vh;
  background:#fff;
  box-shadow:-5px 0 22px #0002;
  z-index:12000;
  transition:right .2s ease;
  overflow:auto;
}

#v3Drawer.open{
  right:0;
}

.v3-drawer-head{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--v3border);
  padding:15px;
  z-index:2;
}

.v3-drawer-body{
  padding:16px;
}

.v3-close{
  float:right;
  border:0;
  background:#eee;
  padding:7px 10px;
  border-radius:6px;
  cursor:pointer;
}

.v3-detail-row{
  border-bottom:1px solid #eee;
  padding:9px 0;
}

.v3-detail-label{
  font-size:11px;
  color:#778078;
}

.v3-detail-value{
  margin-top:3px;
  word-break:break-word;
}

.v3-follow{
  margin-top:10px;
  padding:10px;
  background:#fff8dc;
  border-radius:7px;
}

@media(max-width:900px){
  .v3-stats{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:700px){
  body{
    overflow-x:hidden;
  }

  .v3-stats{
    display:flex;
    overflow-x:auto;
    padding-bottom:5px;
  }

  .v3-stat{
    min-width:115px;
  }

  .v3-card-grid{
    grid-template-columns:1fr;
  }

  #v3Drawer{
    width:100vw;
    max-width:100vw;
    right:-100vw;
  }

  #v3Drawer.open{
    right:0;
  }

  .wrap{
    overflow:auto;
  }

  body.v3-overview .wrap{
    display:none !important;
  }

  .v3-card-actions button,
  .v3-card-actions a{
    min-height:44px;
    display:flex;
    align-items:center;
  }
}
